Created
May 12, 2020 03:49
-
-
Save amazzalel-habib/f949e3294c4e4b50e7b3c79b003b6e3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monaco.languages.onLanguage(languageID, () => { | |
monaco.languages.setMonarchTokensProvider(languageID, monarchLanguage); | |
monaco.languages.setLanguageConfiguration(languageID, richLanguageConfiguration); | |
const client = new WorkerManager(); | |
const worker: WorkerAccessor = (...uris: monaco.Uri[]): Promise<TodoLangWorker> => { | |
return client.getLanguageServiceWorker(...uris); | |
}; | |
//Call the errors provider | |
new DiagnosticsAdapter(worker); | |
}); | |
} | |
export type WorkerAccessor = (...uris: monaco.Uri[]) => Promise<TodoLangWorker>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment