Skip to content

Commit

Permalink
Remove treeSitterTelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Sep 12, 2024
1 parent 086d2c2 commit 03eb933
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { canASAR } from '../../../../base/common/amd.js';
import { CancellationError, isCancellationError } from '../../../../base/common/errors.js';
import { PromiseResult } from '../../../../base/common/observable.js';

const EDITOR_TREESITTER_TELEMETRY = 'editor.experimental.treeSitterTelemetry';
// const EDITOR_TREESITTER_TELEMETRY = 'editor.experimental.treeSitterTelemetry';
const MODULE_LOCATION_SUBPATH = `@vscode/tree-sitter-wasm/wasm`;
const FILENAME_TREESITTER_WASM = `tree-sitter.wasm`;

Expand Down Expand Up @@ -396,7 +396,8 @@ export class TreeSitterTextModelService extends Disposable implements ITreeSitte
if (setting && setting.length > 0) {
return setting;
} else {
const expSetting = this._configurationService.getValue<boolean>(EDITOR_TREESITTER_TELEMETRY);
// const expSetting = this._configurationService.getValue<boolean>(EDITOR_TREESITTER_TELEMETRY);
const expSetting = false;
if (expSetting) {
return ['typescript'];
}
Expand Down
12 changes: 6 additions & 6 deletions src/vs/editor/common/config/editorConfigurationSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ const editorConfiguration: IConfigurationNode = {
description: nls.localize('editor.experimental.asyncTokenizationVerification', "Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),
tags: ['experimental'],
},
'editor.experimental.treeSitterTelemetry': {
type: 'boolean',
default: false,
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."),
tags: ['experimental']
},
// 'editor.experimental.treeSitterTelemetry': {
// type: 'boolean',
// default: false,
// 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."),
// tags: ['experimental']
// },
'editor.language.brackets': {
type: ['array', 'null'],
default: null, // We want to distinguish the empty array from not configured.
Expand Down

0 comments on commit 03eb933

Please sign in to comment.