Commit 31929fd
authored
Index declarations as symbols for LSP symbol search (#87)
Index procedure declarations as "symbols" in the language server, making
them available for document and project-wide symbol searches.
Among other things this involved a bit of cleanup in the initialization
code path, and exposing the `textDocument/documentSymbol` and
`workspace/symbol` capabilities.
To facilitate project-wide symbol search by a user, we add a cache and
populate it with symbols from _all_ Technique files in the local
project. The **ignore** crate is used so that files ignored by e.g.
_.gitignore_ are omitted when searching.
Procedure declarations are sent as `SymbolKind::CONSTRUCTOR`, matching
the context used in syntax highlighting.4 files changed
+456
-37
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments