Standalone service instance #5215
Unanswered
Rubankumar205
asked this question in
Q&A
Replies: 1 comment
-
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices';
import { ILanguageFeaturesService } from 'monaco-editor/esm/vs/editor/common/services/languageFeatures';
const languageFeaturesService = StandaloneServices.get(ILanguageFeaturesService);
const providers = languageFeaturesService.documentSymbolProviderRegistry.all;
// providers now contains every registered DocumentSymbolProvider
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Previously using AMD loader we consumed StandaloneService from monaco.standaloneServices.StandaloneServices and used this to get the languagefeaturesService and get all documentsymbolproviders that are registered to monaco. So that we could show those documentsymbols in our UI.
In ESM loader, how to get standaloneservice instance to handle this use case?
Beta Was this translation helpful? Give feedback.
All reactions