Commit Graph

1372 Commits

Author SHA1 Message Date
Jonathan Hähne
11a5d99c93 No stack frame capture for non-debug modes 2021-03-30 12:38:07 +02:00
Jonathan Hähne
b7cbb10610 Fix memory leaks
Closes #262.
2021-03-30 12:33:31 +02:00
Alexandros Naskos
2bf5a7cfc9
Merge pull request #270 from InterplanetaryEngineer/master
Fix some crashes & find all @imports
2021-03-30 02:29:55 -07:00
Jonathan Hähne
c7158f7625 Remove checks again 2021-03-30 11:23:09 +02:00
Jonathan Hähne
83f153e87e Actually make it build (sem-token support has regressed previously!) 2021-03-30 11:07:29 +02:00
Jonathan Hähne
aab9ca18f2 Fix some crashes & find all @imports
If there are parse errors, an AST can contain uninitialized nodes.
Walking the tree in this case can lead to horribly nasty crashes.
2021-03-30 10:33:21 +02:00
Alexandros Naskos
a5dbb56945
Merge pull request #269 from austinclem1/master
Add check for semantic tokens client capability
2021-03-30 01:23:27 -07:00
Austin Clements
ec7ed30e65 Add check for semantic tokens client capability 2021-03-29 19:04:55 -05:00
Alexandros Naskos
bdac0899ca
Add logo and badge to github readme 2021-03-30 02:05:35 +03:00
Alexandros Naskos
c7e55b82e9
Updated github readme 2021-03-30 01:56:09 +03:00
Alexandros Naskos
b417e64e10
Do not show tests in container completions 2021-03-29 15:41:58 +03:00
Alexandros Naskos
bd3f0460ba
Merge pull request #267 from InterplanetaryEngineer/master
Accelerate symbolReferencesInternal further and improve refreshDocument algorithm
2021-03-29 05:38:46 -07:00
Alexandros Naskos
e770e2bead
Fixed regression from latest commit 2021-03-29 15:35:14 +03:00
Jonathan Hähne
ec1ee55dee Accelerate symbolReferencesInternal by another factor of 2 and activate unit tests 2021-03-29 14:08:38 +02:00
Jonathan Hähne
9a2695ecdb Improve refreshDocument algorithm
Do not use an arena, orderedRemove or bool array.

Also, rudimentary tests suggest the config parser does not account for
a substantial amount of the compile time.
2021-03-29 14:08:37 +02:00
Alexandros Naskos
962327425d
Fixed enum completion generation 2021-03-29 14:57:16 +03:00
Alexandros Naskos
4e753338af
Added error set and enum completion deduplication 2021-03-29 14:02:58 +03:00
Alexandros Naskos
360c437d6a
Some style fixes in analysis.zig 2021-03-29 13:01:24 +03:00
Alexandros Naskos
81500697db
Fixed crash in makeScopeInternal 2021-03-29 12:40:52 +03:00
Alexandros Naskos
2d168ed63e
Fixed error completion generation when making document scopes 2021-03-29 12:28:52 +03:00
Alexandros Naskos
4529b056cd
Merge pull request #264 from InterplanetaryEngineer/master
Improve textDocument/references performance
2021-03-28 15:25:25 -07:00
Jonathan Hähne
826172edeb Improve textDocument/references performance
Filtering out documents in symbolReferences that do not @import the file
defining the symbol led to an order of magnitude speedup in the projects
that I tested.
2021-03-28 17:05:22 +02:00
Alexandros Naskos
3a8d4c7bfb
Fix completions test 2021-03-28 17:47:10 +03:00
Alexandros Naskos
48b5ca5385
Always send an insertText field in completion items 2021-03-28 17:02:48 +03:00
Alexandros Naskos
c063ca4c60
Merge pull request #261 from InterplanetaryEngineer/master
Add option to truncate long completions
2021-03-27 16:56:02 -07:00
Jonathan Hähne
b33e26612a Add option to truncate long completions
The detail entries for big structs such as std.zig.CrossTarget were
bricking the preview window in Sublime Text.
2021-03-27 20:37:51 +01:00
Alexandros Naskos
3e300e4d74
Added our own ifFull implementation, fixes some crashes 2021-03-26 21:46:49 +02:00
Alexandros Naskos
9eece0985b
Fixed crash while typing error. 2021-03-26 21:14:47 +02:00
Alexandros Naskos
2fd8ab7626
Fixed error.<Foo> highlighting 2021-03-26 21:11:35 +02:00
Alexandros Naskos
06518778c1
Removed comment preprocessing code from the semantic tokens gap highlighter,
Fixed various comment semantic highlighting issues.
Refactored some minor parts of the analysis code.
2021-03-26 21:04:51 +02:00
Alexandros Naskos
2a57789be8
Merge pull request #260 from InterplanetaryEngineer/master
Add option for builtin completion insert text
2021-03-26 11:32:01 +02:00
Jonathan Hähne
a2620d7f69 Add option for builtin completion insert text 2021-03-26 10:20:20 +01:00
Alexandros Naskos
eb0a31d282
Reversed builtin completion insert text 2021-03-26 09:23:40 +02:00
Alexandros Naskos
2ff6476ce1
Merge pull request #259 from KevinGConyers/master
Added YouCompleteMe Instructions
2021-03-26 09:16:26 +02:00
Kevin
e67d4c6ecd Added YouCompleteInstructions 2021-03-25 23:37:14 -04:00
Alexandros Naskos
1120cef011
Merge pull request #256 from InterplanetaryEngineer/master
Fix completion of builtins and very slightly simplify a piece of logic
2021-03-25 12:53:58 +02:00
Jonathan Hähne
8d34232c7a Fix completion of builtins and a piece of slightly overcomplicated logic 2021-03-24 22:40:15 +01:00
Alexandros Naskos
4198edbdaa
Merge pull request #255 from bnjmnt4n/docs/emacs
Emacs: update setup instructions
2021-03-21 12:16:54 +02:00
Benjamin Tan
add0c567ad
Emacs: update setup instructions
`lsp-mode` now has built-in configuration for zls, so the only
configuration that might be required is setting the location of the zls
executable (or placing it in the PATH).

`doom-emacs` has not updated to use the latest version of `lsp-mode`
yet, so its configuration cannot be simplified. However, I've updated
the snippet for configuration to avoid loading `lsp-mode` on startup,
which can cause significant slowdown to Emacs startup, and instead defer
loading it until it is required.
2021-03-21 17:29:30 +08:00
Alexandros Naskos
55ad1028fc
Fixed crash in analysis of variable declaration aliases 2021-03-21 02:31:32 +02:00
Alexandros Naskos
3ad218b3ad
Merge pull request #253 from Ominitay/master
Doom Emacs Changes
2021-03-18 13:36:26 +02:00
Ominitay
9e36b7aef4
Change Doom in README to match other instructions 2021-03-18 10:53:45 +00:00
Ominitay
88033a159f
Added Doom Emacs instructions to config 2021-03-18 10:44:24 +00:00
Auguste Rame
2db3c6f5a0
Fix small README typo 2021-03-17 19:51:39 -04:00
Auguste Rame
92831bedf5
Merge pull request #252 from Ominitay/master
Add usage for Doom Emacs.
2021-03-17 17:57:09 -04:00
Ominitay
29049bc467
Add usage for Doom Emacs.
All credit goes to @g-w1 for this :3
2021-03-17 21:37:51 +00:00
Auguste Rame
8c7a93fdf3
Merge pull request #249 from NotNite/resolve-paths
Use fs.path.resolve to find Zig binary during config
2021-03-15 09:01:17 -04:00
Auguste Rame
ef4a60541e
Merge pull request #251 from rhysd/filterText-insertText-falsy
Fix falsy value for filterText and insertText
2021-03-15 08:59:59 -04:00
rhysd
6057d290b4 Fix falsy value for filterText and insertText
'filterText' and 'insertText' fields of 'CompletionItem' can only have
"" or undefined as falsy value.

https://github.com/microsoft/language-server-protocol/issues/1222
2021-03-15 20:20:38 +09:00
Auguste Rame
521b795201
Merge pull request #247 from Luukdegram/stability
Fix crashes when still editing/inserting invalid code
2021-03-14 11:47:25 -04:00