Skip to content

Commit

Permalink
ts - enable use code watcher by default (#213450)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed May 25, 2024
1 parent 3e8b60f commit 2188b46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,5 @@
},
"css.format.spaceAroundSelectorSeparator": true,
"inlineChat.mode": "live",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsserver.experimental.useVsCodeWatcher": true
"typescript.enablePromptUseWorkspaceTsdk": true
}
5 changes: 1 addition & 4 deletions extensions/typescript-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/files/browser/workspaceWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2188b46

Please sign in to comment.