[css] use findDocumentSymbols (#161847)

[css] use findDocumentSymbols. For #157356
This commit is contained in:
Martin Aeschlimann 2022-09-26 23:16:07 +02:00 committed by GitHub
parent 9e0e4a2d1f
commit 06bd7ae776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);