File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ interface ServerCapabilities {
21
21
* The server provides extended text document definition support.
22
22
*/
23
23
xdefinitionProvider? : boolean ;
24
+
25
+ /**
26
+ * The server provides support for querying symbols by properties
27
+ * with WorkspaceSymbolParams.symbol
28
+ */
29
+ xworkspaceSymbolByProperties? : boolean ;
24
30
}
25
31
```
26
32
@@ -117,3 +123,36 @@ interface SymbolLocationInformation {
117
123
}
118
124
```
119
125
* error: code and message set in case an exception happens during the definition request.
126
+
127
+
128
+ ### Extended Workspace Symbol Request
129
+
130
+ The ` workspace/symbol ` request takes an optional parameter ` symbol ` that allows you to query by known properties about the symbol.
131
+ The string ` query ` parameter becomes optional.
132
+ If both ` query ` and ` symbol ` are provided, both should both be matched with AND semantics.
133
+
134
+ #### Differences between ` symbol ` and ` query `
135
+
136
+ ` query ` | ` symbol `
137
+ -------------------------------------|------------------------------------
138
+ comes from user input in UI | used programmatically
139
+ matches as fuzzily as possible | matches as exact as possible
140
+ returns as many results as possible | returns as few results as possible
141
+
142
+
143
+ ``` typescript
144
+ /**
145
+ * The parameters of a Workspace Symbol Request.
146
+ */
147
+ interface WorkspaceSymbolParams {
148
+ /**
149
+ * A query string
150
+ */
151
+ query? : string ;
152
+
153
+ /**
154
+ * Known properties about the symbol.
155
+ */
156
+ symbol? : Partial <SymbolDescriptor >;
157
+ }
158
+ ```
You can’t perform that action at this time.
0 commit comments