From 48989e3d43803f0477853360355fe63771c46255 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Tue, 2 Jul 2024 11:16:17 +0200 Subject: [PATCH] Change TS Example configuration. Set suppressSemanticErrors to false --- packages/examples/src/ts/wrapperTs.ts | 29 +++++++++------------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/packages/examples/src/ts/wrapperTs.ts b/packages/examples/src/ts/wrapperTs.ts index 3caeecf63..edc3a23d4 100644 --- a/packages/examples/src/ts/wrapperTs.ts +++ b/packages/examples/src/ts/wrapperTs.ts @@ -4,7 +4,6 @@ * ------------------------------------------------------------------------------------------ */ import * as vscode from 'vscode'; -import * as monaco from 'monaco-editor'; import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override'; import '@codingame/monaco-vscode-theme-defaults-default-extension'; import '@codingame/monaco-vscode-typescript-basics-default-extension'; @@ -32,22 +31,6 @@ export const runTsWrapper = async () => { return "Goodbye"; };`; - const monacoEditorConfig = { - glyphMargin: true, - guides: { - bracketPairs: true - }, - lightbulb: { - enabled: monaco.editor.ShowLightbulbIconMode.On - }, - theme: 'vs-dark' - }; - - const monacoDiffEditorConfig = { - ...monacoEditorConfig, - renderSideBySide: false - }; - const userConfig: UserConfig = { wrapperConfig: { serviceConfig: { @@ -70,8 +53,16 @@ export const runTsWrapper = async () => { } }, useDiffEditor: false, - editorOptions: monacoEditorConfig, - diffEditorOptions: monacoDiffEditorConfig + userConfiguration: { + json: JSON.stringify({ + 'workbench.colorTheme': 'Default Dark Modern', + 'typescript.tsserver.web.projectWideIntellisense.suppressSemanticErrors': false, + 'diffEditor.renderSideBySide': false, + 'editor.lightbulb.enabled': 'on', + 'editor.glyphMargin': true, + 'editor.guides.bracketPairsHorizontal': true + }) + } } } };