diff --git a/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts b/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts index 95a73299bdc9f..ab8467c65373c 100644 --- a/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts +++ b/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts @@ -29,7 +29,7 @@ import { ApplicationShellMouseTracker } from '@theia/core/lib/browser/shell/appl import { CommandService } from '@theia/core/lib/common/command'; import TheiaURI from '@theia/core/lib/common/uri'; import { EditorManager } from '@theia/editor/lib/browser'; -import { TextDocumentShowOptions, IOpenFolderAPICommandOptions } from '@theia/plugin-ext/lib/common/plugin-api-rpc-model'; +import { TextDocumentShowOptions } from '@theia/plugin-ext/lib/common/plugin-api-rpc-model'; import { DocumentsMainImpl } from '@theia/plugin-ext/lib/main/browser/documents-main'; import { createUntitledResource } from '@theia/plugin-ext/lib/main/browser/editor/untitled-resource'; import { toDocumentSymbol } from '@theia/plugin-ext/lib/plugin/type-converters'; @@ -108,6 +108,12 @@ export class PluginVscodeCommandsContribution implements CommandContribution { } }); + interface IOpenFolderAPICommandOptions { + forceNewWindow?: boolean; + forceReuseWindow?: boolean; + noRecentEntry?: boolean; + } + commands.registerCommand(VscodeCommands.OPEN_FOLDER, { isVisible: () => false, execute: async (resource?: URI, arg: boolean | IOpenFolderAPICommandOptions = {}) => { diff --git a/packages/plugin-ext/src/common/plugin-api-rpc-model.ts b/packages/plugin-ext/src/common/plugin-api-rpc-model.ts index d9cf3a8a90da0..3d7726de816c0 100644 --- a/packages/plugin-ext/src/common/plugin-api-rpc-model.ts +++ b/packages/plugin-ext/src/common/plugin-api-rpc-model.ts @@ -434,12 +434,6 @@ export interface WorkspaceFolder { index: number; } -export interface IOpenFolderAPICommandOptions { - forceNewWindow?: boolean; - forceReuseWindow?: boolean; - noRecentEntry?: boolean; -} - export interface Breakpoint { readonly id: string; readonly enabled: boolean;