summaryrefslogtreecommitdiff
path: root/script
AgeCommit message (Collapse)Author
2024-06-22Only call workspace/configuration when availablefix/honour_configuration_capability-3.9.3cos
Not all clients implement the client capability: `configuration`, which was added in version 3.6.0 of the Language Server Protocol. The LSP Specification also states: > A missing property should be interpreted as an absence of the capability. Above claims are possible to verify by reading the mentioned spec. at: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration Hence this change modifies behaviour to only call the method on clients explicitly announcing to support it. Most affected test-cases are updated to work with this commit, however one test gets disabled. That disabled test suite is in serious need of added documentation explaining its design. The few comments which are there seem highly unsufficient, and since they are written in simplified chinese they practically are of no use to most potential contributors. This commit makes the lua-language-server work with vim-ale.
2024-06-11改用更好的判断方式最萌小汐
2024-06-11`FIX` Sometimes providing incorrect autocompletion when chaining calls最萌小汐
2024-06-05`FIX` Autocompletion for enum values ​​is not available in some cases最萌小汐
2024-06-05获取工作区符号改为同步最萌小汐
2024-06-05修复thread的meta文件最萌小汐
2024-06-05Revert "适配 bee.sys"最萌小汐
This reverts commit c59bd7f4765a8016dfbbf3c8c9879387ca86acfd.
2024-06-05Revert "update bee"最萌小汐
This reverts commit 719d7c2ba63c5a0207604a40cdf0b78a02b0eb78.
2024-06-05Revert "update bee"最萌小汐
This reverts commit a47b432b13f1d4bfa415185bb305b3672bc22d7d.
2024-06-05Revert "Revert "没必要sleep""最萌小汐
This reverts commit e00877e09dd86208f18dd11d6aab444301ce8b03.
2024-06-04don't do diagnostics when workspace is not readyFolke Lemaitre
2024-05-27Merge pull request #2680 from emmericp/throttle-awaits最萌小汐
Throttle calls to await.delay() in some diagnostics
2024-05-25fix: restore completion ordercarsakiller
2024-05-25fix: remove callbackcarsakiller
2024-05-24Throttle calls to await.delay() in some diagnosticsPaul Emmerich
These 5 diagnostics cause ~70% of all calls to await.delay() by diagnostics which in turn is about ~20% of the total runtime of diagnostics. Out of these diagnostics only assign-type-mismatch commonly exceeds runtimes of 100ms (worst observed in my dataset was 7 seconds) and even then it still attempts to call await.delay() over 1500 times per second, so throttling by a factor of 15 is still fine.
2024-05-23Merge branch 'master' into 2175-md-symbol-referencecarsakiller
2024-05-23fix: greedy matchcarsakiller
2024-05-23add: completion of lua symbol referencescarsakiller
2024-05-16Merge pull request #2664 from emmericp/faster-checks最萌小汐
Disable await.delay() when running --check
2024-05-13Disable await.delay() when running --checkPaul Emmerich
This makes --check about 25% faster.
2024-05-13优化性能最萌小汐
2024-05-11Revert "没必要sleep"最萌小汐
This reverts commit 739449db06a48ba511b0044934f98e9bfe40e30d.
2024-05-11没必要sleep最萌小汐
2024-05-11整理代码最萌小汐
2024-05-11支持根据参数类型选择函数定义最萌小汐
2024-05-11支持转到实现最萌小汐
2024-05-11暂存-转到实现最萌小汐
2024-05-10漏了一处最萌小汐
2024-05-10跟进修改最萌小汐
2024-05-10适配 bee.sys最萌小汐
2024-05-10添加一些参数定义最萌小汐
2024-05-10fix: convert ENV value to boolcarsakiller
2024-05-10add: load ENV variables as argscarsakiller
2024-05-09Merge pull request #2629 from comedinha/master最萌小汐
Add setting to find globals using regex
2024-05-09Merge pull request #2638 from emmericp/multi-threaded-check最萌小汐
Add multi-process support to --check.
2024-05-08add: resolve links to symbols in markdown descriptionscarsakiller
Links like [mySymbol](lua://mySymbol) in a comment will now be resolved to a URI pointing to the actual file where `mySymbol` can be found.
2024-05-08update beeactboy168
2024-05-07update beeactboy168
2024-04-27Add multi-process support to --check.Paul Emmerich
Set the parameter --num_threads to the desired number of worker tasks to potentially speed up --check. This works by spawning multiple sub-proccesses that each run the desired diagnostics on a subset of the workspace. Each process will still load and compile the entire workspace, so there are diminishing returns and memory usage increases linearly with the number of threads. Overall this can reduce the runtime by about ~50% for my projects, example results: Workspace 1, dominated by a few large/complex files 1 thread: 49.7 seconds 2 threads: 31.8 seconds 4 threads: 23.6 seconds 8 threads: 24.4 seconds Workspace 2, large number of small-ish files 1 thread: 96.0 seconds 2 threads: 76.5 seconds 4 threads: 49.5 seconds 8 threads: 38.1 seconds
2024-04-23Add globalsRegex to diagnosticsBruno Carvalho
Improve checkIsUndefinedGlobal to avoid unecessary checks and tables
2024-04-22Merge pull request #2622 from emmericp/check-output最萌小汐
Output more details while running --check
2024-04-20--check: Attempt to write output even if an error occursPaul Emmerich
This enables writing partial output if you press ctrl-c after seeing the first errors show up.
2024-04-20Output more details while running --checkPaul Emmerich
2024-04-20Run diagnostics on unopened files when explicitly requested by the userPaul Emmerich
If I explicitly click on "Diagnose workspace" I would expect it to show me *all* the diagnostics similar to how --check in a CI would check my project. This makes it easier for users to check their whole workspace after making changes to some library or core function that potentially affects a large number of files that are usually only checked once opened.
2024-04-19socket连接把错误打印到日志中最萌小汐
2024-04-18fixes bugactboy168
2024-04-18和客户端连接模式的日志最萌小汐
2024-04-18`merge` 改叫 `partial`最萌小汐
2024-04-18每个线程只进行一次update最萌小汐
2024-04-18补充测试和更新说明最萌小汐