-
Notifications
You must be signed in to change notification settings - Fork 76
LSP: Add autocomplete & hover functionality, and jump to target name #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 7 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
490c847
feat: first implementation of auto-complete
MaartenStaa 32dfb2d
feat: update existing load when inserting load from same module
MaartenStaa 43ed7b1
chore: tidy up
MaartenStaa f248479
feat: de-duplicate already loaded symbols in auto-complete
MaartenStaa 16872c9
feat: don't autocomplete variables from other methods
MaartenStaa fdbdd11
fix: handle windows file paths for inserted load statements
MaartenStaa b28e1e5
feat: show correct symbol kind when suggesting exported symbol from o…
MaartenStaa df738bd
fix: correctly set exported symbol kind in both assign and assign mod…
MaartenStaa 372bdaa
feat: refactor find_symbols_at_location to its own module, including …
MaartenStaa 60d1491
docs: add comment to show that `ResolvedSpan::contains` means 'entire…
MaartenStaa 41b66ab
chore: remove commented out code
MaartenStaa 086c0ba
feat: autocomplete keywords
MaartenStaa 2370723
Merge remote-tracking branch 'origin/main' into add-autocomplete
MaartenStaa 369325f
feat: add function to get symbols loaded in a module
MaartenStaa e3db1d6
feat: add autocomplete options from symbols loaded in open files
MaartenStaa a5694a5
feat: autocomplete global symbols
MaartenStaa 6bb196c
feat: add `LspContext::render_as_load`
MaartenStaa cb0fc26
chore: remove old `format_as_load` in LSP and use the new function on…
MaartenStaa c6b6cc9
fix: correctly handle `render_as_load` and `resolve_load`, and add tests
MaartenStaa 4246c32
fix: resolve load paths when discovering symbols loaded in other open…
MaartenStaa e518e90
fix: correctly determine workspace root from `LspUrl`
MaartenStaa 78c2e9c
fix: support `resolve_load` for relative paths with subfolder
MaartenStaa f3af9e3
feat: retrieve info about the build system
MaartenStaa 3d45a62
feat: use build system info to resolve load paths containing reposito…
MaartenStaa 6933b9d
fix: when inserting first load statement, add line breaks after it
MaartenStaa d05fe29
feat: improve docs rendering and include older `detail`
MaartenStaa d5cd6c8
fix: make tests work again and clean up old comment
MaartenStaa 47134b4
feat: allow creating `DocItem::Param` variant
MaartenStaa 0778b88
feat: render docs for functions and arguments in the current file
MaartenStaa 3fc4ae0
fix: improve handling of remote repositories during resolving and ren…
MaartenStaa 7a1138b
Merge remote-tracking branch 'origin/main' into add-autocomplete
MaartenStaa 14cb731
feat: jump to definition for labels in build files
MaartenStaa bacf4d0
chore: move doc item extraction from AST into its own file
MaartenStaa 2a61284
feat: show documentation for completion options exported from open files
MaartenStaa 88824f2
feat: implement rudimentary hover support
MaartenStaa 78cd4a6
test: make tests pass again
MaartenStaa 1415d9e
feat: provide argument names for exported function symbols
MaartenStaa 8497455
feat: add module that inspects AST and decides type of autocomplete
MaartenStaa e598992
feat: provide more information from build systems
MaartenStaa fdaa22b
feat: implement hover for string literal & location, and go to string…
MaartenStaa 7200b14
feat: ability to autocomplete all sorts of different things
MaartenStaa 1d745b9
chore: allow parsing incomplete load statements
MaartenStaa 1ec491a
Merge branch 'main' into add-autocomplete
ndmitchell 384b9c1
fix: target for load insertion was incorrect
MaartenStaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.