File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ import { loadConfigurationForExtension } from '@codingame/monaco-editor-wrapper/dist/features/extensionConfigurations'
2+ import staticOptions , { LanguageClientId } from './staticOptions'
3+
4+ export async function loadExtensionConfigurations ( forLanguageClientIds : LanguageClientId [ ] , nonMutualizableOnly : boolean ) : Promise < void > {
5+ const extensionConfigurationToLoad = new Set < string > ( )
6+ for ( const languageClientId of forLanguageClientIds ) {
7+ const config = staticOptions [ languageClientId ]
8+ if ( ! config . mutualizable || ! nonMutualizableOnly ) {
9+ ( config . vscodeExtensionIds ?? [ ] ) . forEach ( extensionId => {
10+ extensionConfigurationToLoad . add ( extensionId )
11+ } )
12+ }
13+ }
14+
15+ await Promise . all ( Array . from ( extensionConfigurationToLoad ) . map ( extensionId => loadConfigurationForExtension ( extensionId ) ) )
16+ }
Original file line number Diff line number Diff line change 11import 'proxy-polyfill'
2+ import { loadExtensionConfigurations } from './extensionConfiguration'
23import './hacks'
34import { createLanguageClientManager , StatusChangeEvent } from './languageClient'
45import { LanguageClientId } from './staticOptions'
56
67export {
8+ loadExtensionConfigurations ,
79 createLanguageClientManager
810}
911
You can’t perform that action at this time.
0 commit comments