Move command manager into commands folder
This commit is contained in:
parent
3b15049759
commit
f9224c26cb
19 changed files with 24 additions and 24 deletions
|
@ -3,8 +3,8 @@
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { PluginManager } from '../utils/plugins';
|
import { PluginManager } from '../utils/plugins';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class ConfigurePluginCommand implements Command {
|
export class ConfigurePluginCommand implements Command {
|
||||||
public readonly id = '_typescript.configurePlugin';
|
public readonly id = '_typescript.configurePlugin';
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
import { openProjectConfigForFile, ProjectType } from '../utils/tsconfig';
|
import { openProjectConfigForFile, ProjectType } from '../utils/tsconfig';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class TypeScriptGoToProjectConfigCommand implements Command {
|
export class TypeScriptGoToProjectConfigCommand implements Command {
|
||||||
public readonly id = 'typescript.goToProjectConfig';
|
public readonly id = 'typescript.goToProjectConfig';
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { CommandManager } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
import { PluginManager } from '../utils/plugins';
|
import { PluginManager } from '../utils/plugins';
|
||||||
|
import { CommandManager } from './commandManager';
|
||||||
import { ConfigurePluginCommand } from './configurePlugin';
|
import { ConfigurePluginCommand } from './configurePlugin';
|
||||||
import { JavaScriptGoToProjectConfigCommand, TypeScriptGoToProjectConfigCommand } from './goToProjectConfiguration';
|
import { JavaScriptGoToProjectConfigCommand, TypeScriptGoToProjectConfigCommand } from './goToProjectConfiguration';
|
||||||
import { LearnMoreAboutRefactoringsCommand } from './learnMoreAboutRefactorings';
|
import { LearnMoreAboutRefactoringsCommand } from './learnMoreAboutRefactorings';
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class LearnMoreAboutRefactoringsCommand implements Command {
|
export class LearnMoreAboutRefactoringsCommand implements Command {
|
||||||
public static readonly id = '_typescript.learnMoreAboutRefactorings';
|
public static readonly id = '_typescript.learnMoreAboutRefactorings';
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class OpenTsServerLogCommand implements Command {
|
export class OpenTsServerLogCommand implements Command {
|
||||||
public readonly id = 'typescript.openTsServerLog';
|
public readonly id = 'typescript.openTsServerLog';
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class ReloadTypeScriptProjectsCommand implements Command {
|
export class ReloadTypeScriptProjectsCommand implements Command {
|
||||||
public readonly id = 'typescript.reloadProjects';
|
public readonly id = 'typescript.reloadProjects';
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class RestartTsServerCommand implements Command {
|
export class RestartTsServerCommand implements Command {
|
||||||
public readonly id = 'typescript.restartTsServer';
|
public readonly id = 'typescript.restartTsServer';
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from '../typeScriptServiceClientHost';
|
||||||
import { Command } from '../utils/commandManager';
|
|
||||||
import { Lazy } from '../utils/lazy';
|
import { Lazy } from '../utils/lazy';
|
||||||
|
import { Command } from './commandManager';
|
||||||
|
|
||||||
export class SelectTypeScriptVersionCommand implements Command {
|
export class SelectTypeScriptVersionCommand implements Command {
|
||||||
public readonly id = 'typescript.selectTypeScriptVersion';
|
public readonly id = 'typescript.selectTypeScriptVersion';
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { noopLogDirectoryProvider } from './tsServer/logDirectoryProvider';
|
||||||
import { ITypeScriptVersionProvider, TypeScriptVersion, TypeScriptVersionSource } from './tsServer/versionProvider';
|
import { ITypeScriptVersionProvider, TypeScriptVersion, TypeScriptVersionSource } from './tsServer/versionProvider';
|
||||||
import { WorkerServerProcess } from './tsServer/serverProcess.browser';
|
import { WorkerServerProcess } from './tsServer/serverProcess.browser';
|
||||||
import API from './utils/api';
|
import API from './utils/api';
|
||||||
import { CommandManager } from './utils/commandManager';
|
import { CommandManager } from './commands/commandManager';
|
||||||
import { TypeScriptServiceConfiguration } from './utils/configuration';
|
import { TypeScriptServiceConfiguration } from './utils/configuration';
|
||||||
import { PluginManager } from './utils/plugins';
|
import { PluginManager } from './utils/plugins';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { nodeRequestCancellerFactory } from './tsServer/cancellation.electron';
|
||||||
import { NodeLogDirectoryProvider } from './tsServer/logDirectoryProvider.electron';
|
import { NodeLogDirectoryProvider } from './tsServer/logDirectoryProvider.electron';
|
||||||
import { ChildServerProcess } from './tsServer/serverProcess.electron';
|
import { ChildServerProcess } from './tsServer/serverProcess.electron';
|
||||||
import { DiskTypeScriptVersionProvider } from './tsServer/versionProvider.electron';
|
import { DiskTypeScriptVersionProvider } from './tsServer/versionProvider.electron';
|
||||||
import { CommandManager } from './utils/commandManager';
|
import { CommandManager } from './commands/commandManager';
|
||||||
import { onCaseInsenitiveFileSystem } from './utils/fileSystem.electron';
|
import { onCaseInsenitiveFileSystem } from './utils/fileSystem.electron';
|
||||||
import { PluginManager } from './utils/plugins';
|
import { PluginManager } from './utils/plugins';
|
||||||
import * as temp from './utils/temp.electron';
|
import * as temp from './utils/temp.electron';
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import * as nls from 'vscode-nls';
|
import * as nls from 'vscode-nls';
|
||||||
|
import { Command, CommandManager } from '../commands/commandManager';
|
||||||
import type * as Proto from '../protocol';
|
import type * as Proto from '../protocol';
|
||||||
import * as PConst from '../protocol.const';
|
import * as PConst from '../protocol.const';
|
||||||
import { ClientCapability, ITypeScriptServiceClient, ServerResponse } from '../typescriptService';
|
import { ClientCapability, ITypeScriptServiceClient, ServerResponse } from '../typescriptService';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
import { nulToken } from '../utils/cancellation';
|
import { nulToken } from '../utils/cancellation';
|
||||||
import { applyCodeAction } from '../utils/codeAction';
|
import { applyCodeAction } from '../utils/codeAction';
|
||||||
import { Command, CommandManager } from '../utils/commandManager';
|
import { conditionalRegistration, requireConfiguration, requireSomeCapability } from '../utils/dependentRegistration';
|
||||||
import { conditionalRegistration, requireSomeCapability, requireConfiguration } from '../utils/dependentRegistration';
|
|
||||||
import { DocumentSelector } from '../utils/documentSelector';
|
import { DocumentSelector } from '../utils/documentSelector';
|
||||||
import { parseKindModifier } from '../utils/modifiers';
|
import { parseKindModifier } from '../utils/modifiers';
|
||||||
import * as Previewer from '../utils/previewer';
|
import * as Previewer from '../utils/previewer';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import type * as Proto from '../protocol';
|
||||||
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
import { nulToken } from '../utils/cancellation';
|
import { nulToken } from '../utils/cancellation';
|
||||||
import { Command, CommandManager } from '../utils/commandManager';
|
import { Command, CommandManager } from '../commands/commandManager';
|
||||||
import { conditionalRegistration, requireMinVersion, requireSomeCapability } from '../utils/dependentRegistration';
|
import { conditionalRegistration, requireMinVersion, requireSomeCapability } from '../utils/dependentRegistration';
|
||||||
import { DocumentSelector } from '../utils/documentSelector';
|
import { DocumentSelector } from '../utils/documentSelector';
|
||||||
import { TelemetryReporter } from '../utils/telemetry';
|
import { TelemetryReporter } from '../utils/telemetry';
|
||||||
|
|
|
@ -5,21 +5,21 @@
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import * as nls from 'vscode-nls';
|
import * as nls from 'vscode-nls';
|
||||||
|
import { Command, CommandManager } from '../commands/commandManager';
|
||||||
import type * as Proto from '../protocol';
|
import type * as Proto from '../protocol';
|
||||||
import { ITypeScriptServiceClient, ClientCapability } from '../typescriptService';
|
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
import { nulToken } from '../utils/cancellation';
|
import { nulToken } from '../utils/cancellation';
|
||||||
import { applyCodeActionCommands, getEditForCodeAction } from '../utils/codeAction';
|
import { applyCodeActionCommands, getEditForCodeAction } from '../utils/codeAction';
|
||||||
import { Command, CommandManager } from '../utils/commandManager';
|
import { conditionalRegistration, requireSomeCapability } from '../utils/dependentRegistration';
|
||||||
|
import { DocumentSelector } from '../utils/documentSelector';
|
||||||
import * as fixNames from '../utils/fixNames';
|
import * as fixNames from '../utils/fixNames';
|
||||||
import { memoize } from '../utils/memoize';
|
import { memoize } from '../utils/memoize';
|
||||||
|
import { equals } from '../utils/objects';
|
||||||
import { TelemetryReporter } from '../utils/telemetry';
|
import { TelemetryReporter } from '../utils/telemetry';
|
||||||
import * as typeConverters from '../utils/typeConverters';
|
import * as typeConverters from '../utils/typeConverters';
|
||||||
import { DiagnosticsManager } from './diagnostics';
|
import { DiagnosticsManager } from './diagnostics';
|
||||||
import FileConfigurationManager from './fileConfigurationManager';
|
import FileConfigurationManager from './fileConfigurationManager';
|
||||||
import { equals } from '../utils/objects';
|
|
||||||
import { conditionalRegistration, requireSomeCapability } from '../utils/dependentRegistration';
|
|
||||||
import { DocumentSelector } from '../utils/documentSelector';
|
|
||||||
|
|
||||||
const localize = nls.loadMessageBundle();
|
const localize = nls.loadMessageBundle();
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import * as nls from 'vscode-nls';
|
import * as nls from 'vscode-nls';
|
||||||
|
import { Command, CommandManager } from '../commands/commandManager';
|
||||||
import { LearnMoreAboutRefactoringsCommand } from '../commands/learnMoreAboutRefactorings';
|
import { LearnMoreAboutRefactoringsCommand } from '../commands/learnMoreAboutRefactorings';
|
||||||
import type * as Proto from '../protocol';
|
import type * as Proto from '../protocol';
|
||||||
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
import { nulToken } from '../utils/cancellation';
|
import { nulToken } from '../utils/cancellation';
|
||||||
import { Command, CommandManager } from '../utils/commandManager';
|
import { conditionalRegistration, requireMinVersion, requireSomeCapability } from '../utils/dependentRegistration';
|
||||||
import { conditionalRegistration, requireSomeCapability, requireMinVersion } from '../utils/dependentRegistration';
|
|
||||||
import { DocumentSelector } from '../utils/documentSelector';
|
import { DocumentSelector } from '../utils/documentSelector';
|
||||||
import * as fileSchemes from '../utils/fileSchemes';
|
import * as fileSchemes from '../utils/fileSchemes';
|
||||||
import { TelemetryReporter } from '../utils/telemetry';
|
import { TelemetryReporter } from '../utils/telemetry';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { DiagnosticKind } from './languageFeatures/diagnostics';
|
||||||
import FileConfigurationManager from './languageFeatures/fileConfigurationManager';
|
import FileConfigurationManager from './languageFeatures/fileConfigurationManager';
|
||||||
import { CachedResponse } from './tsServer/cachedResponse';
|
import { CachedResponse } from './tsServer/cachedResponse';
|
||||||
import TypeScriptServiceClient from './typescriptServiceClient';
|
import TypeScriptServiceClient from './typescriptServiceClient';
|
||||||
import { CommandManager } from './utils/commandManager';
|
import { CommandManager } from './commands/commandManager';
|
||||||
import { Disposable } from './utils/dispose';
|
import { Disposable } from './utils/dispose';
|
||||||
import { DocumentSelector } from './utils/documentSelector';
|
import { DocumentSelector } from './utils/documentSelector';
|
||||||
import * as fileSchemes from './utils/fileSchemes';
|
import * as fileSchemes from './utils/fileSchemes';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { TsServerProcessFactory } from './tsServer/server';
|
||||||
import { ITypeScriptVersionProvider } from './tsServer/versionProvider';
|
import { ITypeScriptVersionProvider } from './tsServer/versionProvider';
|
||||||
import TypeScriptServiceClientHost from './typeScriptServiceClientHost';
|
import TypeScriptServiceClientHost from './typeScriptServiceClientHost';
|
||||||
import { flatten } from './utils/arrays';
|
import { flatten } from './utils/arrays';
|
||||||
import { CommandManager } from './utils/commandManager';
|
import { CommandManager } from './commands/commandManager';
|
||||||
import { standardLanguageDescriptions } from './utils/languageDescription';
|
import { standardLanguageDescriptions } from './utils/languageDescription';
|
||||||
import * as ProjectStatus from './utils/largeProjectStatus';
|
import * as ProjectStatus from './utils/largeProjectStatus';
|
||||||
import { lazy, Lazy } from './utils/lazy';
|
import { lazy, Lazy } from './utils/lazy';
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import * as nls from 'vscode-nls';
|
import * as nls from 'vscode-nls';
|
||||||
|
import { Command, CommandManager } from '../commands/commandManager';
|
||||||
import { ITypeScriptServiceClient } from '../typescriptService';
|
import { ITypeScriptServiceClient } from '../typescriptService';
|
||||||
import { coalesce } from '../utils/arrays';
|
import { coalesce } from '../utils/arrays';
|
||||||
import { Command, CommandManager } from '../utils/commandManager';
|
|
||||||
import { Disposable } from '../utils/dispose';
|
import { Disposable } from '../utils/dispose';
|
||||||
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
||||||
import { isImplicitProjectConfigFile, openOrCreateConfig, openProjectConfigForFile, openProjectConfigOrPromptToCreate, ProjectType } from '../utils/tsconfig';
|
import { isImplicitProjectConfigFile, openOrCreateConfig, openProjectConfigForFile, openProjectConfigOrPromptToCreate, ProjectType } from '../utils/tsconfig';
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { ITypeScriptVersionProvider } from './tsServer/versionProvider';
|
||||||
import VersionStatus from './tsServer/versionStatus';
|
import VersionStatus from './tsServer/versionStatus';
|
||||||
import TypeScriptServiceClient from './typescriptServiceClient';
|
import TypeScriptServiceClient from './typescriptServiceClient';
|
||||||
import { coalesce, flatten } from './utils/arrays';
|
import { coalesce, flatten } from './utils/arrays';
|
||||||
import { CommandManager } from './utils/commandManager';
|
import { CommandManager } from './commands/commandManager';
|
||||||
import { Disposable } from './utils/dispose';
|
import { Disposable } from './utils/dispose';
|
||||||
import * as errorCodes from './utils/errorCodes';
|
import * as errorCodes from './utils/errorCodes';
|
||||||
import { DiagnosticLanguage, LanguageDescription } from './utils/languageDescription';
|
import { DiagnosticLanguage, LanguageDescription } from './utils/languageDescription';
|
||||||
|
|
Loading…
Reference in a new issue