IWorkspace => IWorkspaceIdentifier

This commit is contained in:
Benjamin Pasero
2017-07-12 08:55:04 +02:00
parent 7a35ef4b00
commit 48854cd439
15 changed files with 54 additions and 57 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ import * as fs from 'fs';
import * as platform from 'vs/base/common/platform';
import * as paths from 'vs/base/common/paths';
import { OpenContext } from 'vs/platform/windows/common/windows';
import { IWorkspace } from "vs/platform/workspaces/common/workspaces";
import { IWorkspaceIdentifier } from "vs/platform/workspaces/common/workspaces";
export interface ISimpleWindow {
openedWorkspace?: IWorkspace;
openedWorkspace?: IWorkspaceIdentifier;
openedFolderPath?: string;
openedFilePath?: string;
extensionDevelopmentPath?: string;
@@ -127,7 +127,7 @@ export function findWindowOnFolder<W extends ISimpleWindow>(windows: W[], folder
return null;
}
export function findWindowOnWorkspace<W extends ISimpleWindow>(windows: W[], workspace: IWorkspace): W {
export function findWindowOnWorkspace<W extends ISimpleWindow>(windows: W[], workspace: IWorkspaceIdentifier): W {
if (windows.length) {
const res = windows.filter(w => {