mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
[css] use findDocumentSymbols (#161847)
[css] use findDocumentSymbols. For #157356
This commit is contained in:
committed by
GitHub
parent
9e0e4a2d1f
commit
06bd7ae776
@@ -223,7 +223,7 @@ export function startServer(connection: Connection, runtime: RuntimeEnvironment)
|
||||
if (document) {
|
||||
await dataProvidersReady;
|
||||
const stylesheet = stylesheets.get(document);
|
||||
return getLanguageService(document).findDocumentSymbols(document, stylesheet);
|
||||
return getLanguageService(document).findDocumentSymbols2(document, stylesheet);
|
||||
}
|
||||
return [];
|
||||
}, [], `Error while computing document symbols for ${documentSymbolParams.textDocument.uri}`, token);
|
||||
|
||||
Reference in New Issue
Block a user