mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
@@ -13,6 +13,7 @@ import { OpenTsServerLogCommand } from './openTsServerLog';
|
||||
import { ReloadJavaScriptProjectsCommand, ReloadTypeScriptProjectsCommand } from './reloadProject';
|
||||
import { RestartTsServerCommand } from './restartTsServer';
|
||||
import { SelectTypeScriptVersionCommand } from './selectTypeScriptVersion';
|
||||
import { LearnMoreAboutRefactoringsCommand } from './learnMoreAboutRefactorings';
|
||||
|
||||
export function registerCommands(
|
||||
commandManager: CommandManager,
|
||||
@@ -27,4 +28,5 @@ export function registerCommands(
|
||||
commandManager.register(new TypeScriptGoToProjectConfigCommand(lazyClientHost));
|
||||
commandManager.register(new JavaScriptGoToProjectConfigCommand(lazyClientHost));
|
||||
commandManager.register(new ConfigurePluginCommand(pluginManager));
|
||||
}
|
||||
commandManager.register(new LearnMoreAboutRefactoringsCommand());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { Command } from '../utils/commandManager';
|
||||
|
||||
export class LearnMoreAboutRefactoringsCommand implements Command {
|
||||
public readonly id = '_typescript.learnMoreAboutRefactorings';
|
||||
|
||||
public execute() {
|
||||
vscode.env.openExternal(vscode.Uri.parse('https://go.microsoft.com/fwlink/?linkid=2114477'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user