Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Langium Example: WA enable semantic tokens in classic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Sep 7, 2023
1 parent 33fd28f commit 66c7ca0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/examples/src/langium/wrapperLangium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */

import { buildWorkerDefinition } from 'monaco-editor-workers';
import 'vscode/default-extensions/theme-defaults';
import { updateUserConfiguration } from 'vscode/service-override/configuration';
import { buildWorkerDefinition } from 'monaco-editor-workers';
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
import { setupLangiumClientVscodeApi } from './config/wrapperLangiumVscode.js';
import { setupLangiumClientClassic } from './config/wrapperLangiumClassic.js';
Expand Down Expand Up @@ -45,7 +46,10 @@ export const startLangiumClientClassic = async () => {
if (checkStarted()) return;
const config = await setupLangiumClientClassic();
wrapper = new MonacoEditorLanguageClientWrapper();
wrapper.start(config);
await wrapper.start(config);
updateUserConfiguration(`{
"editor.semanticHighlighting.enabled": true
}`);
} catch (e) {
console.log(e);
}
Expand Down

0 comments on commit 66c7ca0

Please sign in to comment.