Skip to content

Commit

Permalink
Change TS Example configuration. Set suppressSemanticErrors to false
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Jul 2, 2024
1 parent 3c1c0ac commit 48989e3
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions packages/examples/src/ts/wrapperTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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: {
Expand All @@ -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
})
}
}
}
};
Expand Down

0 comments on commit 48989e3

Please sign in to comment.