fix: pass workspace symbol query to experimental LSP tool (#24576)
This commit is contained in:
@@ -5,7 +5,7 @@ Supported operations:
|
||||
- findReferences: Find all references to a symbol
|
||||
- hover: Get hover information (documentation, type info) for a symbol
|
||||
- documentSymbol: Get all symbols (functions, classes, variables) in a document
|
||||
- workspaceSymbol: Search for symbols across the entire workspace
|
||||
- workspaceSymbol: List project-wide symbols matching a query string
|
||||
- goToImplementation: Find implementations of an interface or abstract method
|
||||
- prepareCallHierarchy: Get call hierarchy item at a position (functions/methods)
|
||||
- incomingCalls: Find all functions/methods that call the function at a position
|
||||
@@ -16,4 +16,9 @@ All operations require:
|
||||
- line: The line number (1-based, as shown in editors)
|
||||
- character: The character offset (1-based, as shown in editors)
|
||||
|
||||
workspaceSymbol also accepts:
|
||||
- query: A query string to filter symbols by. Empty string requests all symbols.
|
||||
|
||||
For workspaceSymbol, filePath is not sent in the LSP workspace/symbol request. It is used by opencode to select and start the matching LSP server.
|
||||
|
||||
Note: LSP servers must be configured for the file type. If no server is available, an error will be returned.
|
||||
|
||||
Reference in New Issue
Block a user