ts - enable use code watcher by default (#213450)

This commit is contained in:
Benjamin Pasero 2024-05-25 12:48:33 +02:00 committed by GitHub
parent 3e8b60f276
commit 2188b46e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 8 deletions

View file

@ -170,6 +170,5 @@
},
"css.format.spaceAroundSelectorSeparator": true,
"inlineChat.mode": "live",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsserver.experimental.useVsCodeWatcher": true
"typescript.enablePromptUseWorkspaceTsdk": true
}

View file

@ -1177,10 +1177,7 @@
"typescript.tsserver.experimental.useVsCodeWatcher": {
"type": "boolean",
"description": "%configuration.tsserver.useVsCodeWatcher%",
"default": false,
"tags": [
"experimental"
]
"default": true
},
"typescript.tsserver.watchOptions": {
"type": "object",

View file

@ -117,7 +117,7 @@ export interface TypeScriptServiceConfiguration {
readonly enableProjectDiagnostics: boolean;
readonly maxTsServerMemory: number;
readonly enablePromptUseWorkspaceTsdk: boolean;
readonly useVsCodeWatcher: boolean;
readonly useVsCodeWatcher: boolean; // TODO@bpasero remove this setting eventually
readonly watchOptions: Proto.WatchOptions | undefined;
readonly includePackageJsonAutoImports: 'auto' | 'on' | 'off' | undefined;
readonly enableTsServerTracing: boolean;

View file

@ -115,7 +115,8 @@ export class WorkspaceWatcher extends Disposable {
reason = 'ETERM';
}
// Log telemetry if we gathered a reason (TODO@bpasero remove me once the TS experiment is over)
// Log telemetry if we gathered a reason (logging it from the renderer
// allows us to investigate this situation in context of experiments)
if (reason) {
type WatchErrorClassification = {
owner: 'bpasero';