From b98a014647c1d502afabbc51ba0038821701dc40 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 17 Apr 2025 12:16:00 -0700 Subject: [PATCH] Update names --- extensions/typescript-language-features/package.json | 2 +- .../src/commands/index.ts | 2 +- .../src/commands/{disableExtension.ts => useTsgo.ts} | 11 +---------- .../typescript-language-features/src/extension.ts | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) rename extensions/typescript-language-features/src/commands/{disableExtension.ts => useTsgo.ts} (89%) diff --git a/extensions/typescript-language-features/package.json b/extensions/typescript-language-features/package.json index 6a2daba6ad6..f4a5c1a9079 100644 --- a/extensions/typescript-language-features/package.json +++ b/extensions/typescript-language-features/package.json @@ -202,7 +202,7 @@ "description": "%typescript.implementationsCodeLens.enabled%", "scope": "window" }, - "typescript.unstable.useTsgo": { + "typescript.useTsgo": { "type": "boolean", "default": false, "markdownDescription": "%typescript.useTsgo%", diff --git a/extensions/typescript-language-features/src/commands/index.ts b/extensions/typescript-language-features/src/commands/index.ts index 276e03533b2..6131d9b985f 100644 --- a/extensions/typescript-language-features/src/commands/index.ts +++ b/extensions/typescript-language-features/src/commands/index.ts @@ -9,7 +9,7 @@ import { ActiveJsTsEditorTracker } from '../ui/activeJsTsEditorTracker'; import { Lazy } from '../utils/lazy'; import { CommandManager } from './commandManager'; import { ConfigurePluginCommand } from './configurePlugin'; -import { EnableTsgoCommand, DisableTsgoCommand } from './disableExtension'; +import { EnableTsgoCommand, DisableTsgoCommand } from './useTsgo'; import { JavaScriptGoToProjectConfigCommand, TypeScriptGoToProjectConfigCommand } from './goToProjectConfiguration'; import { LearnMoreAboutRefactoringsCommand } from './learnMoreAboutRefactorings'; import { OpenJsDocLinkCommand } from './openJsDocLink'; diff --git a/extensions/typescript-language-features/src/commands/disableExtension.ts b/extensions/typescript-language-features/src/commands/useTsgo.ts similarity index 89% rename from extensions/typescript-language-features/src/commands/disableExtension.ts rename to extensions/typescript-language-features/src/commands/useTsgo.ts index bb8b9090c74..5c43381f729 100644 --- a/extensions/typescript-language-features/src/commands/disableExtension.ts +++ b/extensions/typescript-language-features/src/commands/useTsgo.ts @@ -6,10 +6,6 @@ import * as vscode from 'vscode'; import { Command } from './commandManager'; -/** - * Command that enables TypeScript Go by modifying the configuration setting - * and prompting the user to reload VS Code. - */ export class EnableTsgoCommand implements Command { public readonly id = 'typescript.enableTsgo'; @@ -18,10 +14,6 @@ export class EnableTsgoCommand implements Command { } } -/** - * Command that disables TypeScript Go by modifying the configuration setting - * and prompting the user to reload VS Code. - */ export class DisableTsgoCommand implements Command { public readonly id = 'typescript.disableTsgo'; @@ -31,8 +23,7 @@ export class DisableTsgoCommand implements Command { } /** - * Updates the TypeScript Go setting and prompts for reload. - * + * Updates the TypeScript Go setting and reloads extension host. * @param enable Whether to enable or disable TypeScript Go */ async function updateTsgoSetting(enable: boolean): Promise { diff --git a/extensions/typescript-language-features/src/extension.ts b/extensions/typescript-language-features/src/extension.ts index fcf4484f023..aa749cab47e 100644 --- a/extensions/typescript-language-features/src/extension.ts +++ b/extensions/typescript-language-features/src/extension.ts @@ -8,7 +8,7 @@ import * as fs from 'fs'; import * as vscode from 'vscode'; import { Api, getExtensionApi } from './api'; import { CommandManager } from './commands/commandManager'; -import { DisableTsgoCommand } from './commands/disableExtension'; +import { DisableTsgoCommand } from './commands/useTsgo'; import { registerBaseCommands } from './commands/index'; import { ElectronServiceConfigurationProvider } from './configuration/configuration.electron'; import { ExperimentationTelemetryReporter, IExperimentationTelemetryReporter } from './experimentTelemetryReporter';