Skip to content

Commit 8f18615

Browse files
committed
Remove treeSitterTelemetry
1 parent 5efe98c commit 8f18615

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/vs/editor/browser/services/treeSitter/treeSitterParserService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { canASAR } from 'vs/base/common/amd';
2323
import { CancellationError, isCancellationError } from 'vs/base/common/errors';
2424
import { PromiseResult } from 'vs/base/common/observableInternal/promise';
2525

26-
const EDITOR_TREESITTER_TELEMETRY = 'editor.experimental.treeSitterTelemetry';
26+
// const EDITOR_TREESITTER_TELEMETRY = 'editor.experimental.treeSitterTelemetry';
2727
const MODULE_LOCATION_SUBPATH = `@vscode/tree-sitter-wasm/wasm`;
2828
const FILENAME_TREESITTER_WASM = `tree-sitter.wasm`;
2929

@@ -396,7 +396,8 @@ export class TreeSitterTextModelService extends Disposable implements ITreeSitte
396396
if (setting && setting.length > 0) {
397397
return setting;
398398
} else {
399-
const expSetting = this._configurationService.getValue<boolean>(EDITOR_TREESITTER_TELEMETRY);
399+
// const expSetting = this._configurationService.getValue<boolean>(EDITOR_TREESITTER_TELEMETRY);
400+
const expSetting = false;
400401
if (expSetting) {
401402
return ['typescript'];
402403
}

src/vs/editor/common/config/editorConfigurationSchema.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ const editorConfiguration: IConfigurationNode = {
109109
description: nls.localize('editor.experimental.asyncTokenizationVerification', "Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),
110110
tags: ['experimental'],
111111
},
112-
'editor.experimental.treeSitterTelemetry': {
113-
type: 'boolean',
114-
default: false,
115-
markdownDescription: nls.localize('editor.experimental.treeSitterTelemetry', "Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),
116-
tags: ['experimental']
117-
},
112+
// 'editor.experimental.treeSitterTelemetry': {
113+
// type: 'boolean',
114+
// default: false,
115+
// markdownDescription: nls.localize('editor.experimental.treeSitterTelemetry', "Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),
116+
// tags: ['experimental']
117+
// },
118118
'editor.language.brackets': {
119119
type: ['array', 'null'],
120120
default: null, // We want to distinguish the empty array from not configured.

0 commit comments

Comments
 (0)