Skip to content

Commit

Permalink
Enable editor.experimental.asyncTokenization and configure userDataDi…
Browse files Browse the repository at this point in the history
…r for chrome launch config
  • Loading branch information
kaisalmen committed Sep 26, 2024
1 parent 4896120 commit 72447e8
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
*.tsbuildinfo
.angular
__screenshots__
.vscode/profile
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"type": "chrome",
"request": "launch",
"url": "http://localhost:20001",
"webRoot": "${workspaceFolder}"
"webRoot": "${workspaceFolder}",
"userDataDir": "${workspaceFolder}/.vscode/profile"
}
]
}
2 changes: 1 addition & 1 deletion packages/examples/src/bare/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const runClient = async () => {
});

updateUserConfiguration(JSON.stringify({
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
}));

// register the JSON language with Monaco
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/browser/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const runBrowserEditor = async () => {
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.lightbulb.enabled': 'On',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/eclipse.jdt.ls/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const runEclipseJdtLsClient = () => {
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/groovy/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const userConfig: WrapperConfig = {
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/json/client/wrapperWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const jsonClientUserConfig: WrapperConfig = {
'editor.guides.bracketPairsHorizontal': 'active',
'editor.lightbulb.enabled': 'On',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const setupLangiumClientExtended = async (): Promise<WrapperConfig> => {
'workbench.colorTheme': 'GitHub Dark High Contrast',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const createLangiumGlobalConfig = async (params: {
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/multi/twoLanguageClients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ print("Hello Moon!")
json: JSON.stringify({
'workbench.colorTheme': 'Default Dark Modern',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/python/client/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const createUserConfig = (workspaceRoot: string, code: string, codeUri: s
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
useDiffEditor: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/ts/wrapperTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const runTsWrapper = async () => {
'editor.lightbulb.enabled': 'on',
'editor.glyphMargin': true,
'editor.guides.bracketPairsHorizontal': true,
'editor.experimental.asyncTokenization': false
'editor.experimental.asyncTokenization': true
})
},
monacoWorkerFactory: configureMonacoWorkers
Expand Down
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ const viteConfig = defineViteConfig({
plugins: [
importMetaUrlPlugin
]
}
},
include: [
'vscode-textmate',
'vscode-oniguruma'
]
},
plugins: [
vsixPlugin(),
Expand Down

0 comments on commit 72447e8

Please sign in to comment.