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 6, 2024
1 parent a97a3cd commit c1efae7
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 'vs/base/common/amd';
import { CancellationError, isCancellationError } from 'vs/base/common/errors';
import { PromiseResult } from 'vs/base/common/observableInternal/promise';

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 c1efae7

Please sign in to comment.