Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1225a12b
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1225a12b
编写于
1月 25, 2019
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove createAndEnterWorkspace & saveAndEnterWorkspace from IWindowsService
上级
78e185d7
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
122 deletion
+9
-122
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+1
-44
src/vs/platform/windows/common/windows.ts
src/vs/platform/windows/common/windows.ts
+1
-5
src/vs/platform/windows/electron-browser/windowService.ts
src/vs/platform/windows/electron-browser/windowService.ts
+0
-9
src/vs/platform/windows/electron-main/windows.ts
src/vs/platform/windows/electron-main/windows.ts
+1
-3
src/vs/platform/windows/electron-main/windowsService.ts
src/vs/platform/windows/electron-main/windowsService.ts
+1
-13
src/vs/platform/windows/node/windowsIpc.ts
src/vs/platform/windows/node/windowsIpc.ts
+1
-24
src/vs/workbench/services/workspace/node/workspaceEditingService.ts
...kbench/services/workspace/node/workspaceEditingService.ts
+3
-7
src/vs/workbench/test/workbenchTestServices.ts
src/vs/workbench/test/workbenchTestServices.ts
+1
-17
未找到文件。
src/vs/code/electron-main/windows.ts
浏览文件 @
1225a12b
...
...
@@ -26,7 +26,7 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import
{
IWindowsMainService
,
IOpenConfiguration
,
IWindowsCountChangedEvent
,
ICodeWindow
,
IWindowState
as
ISingleWindowState
,
WindowMode
}
from
'
vs/platform/windows/electron-main/windows
'
;
import
{
IHistoryMainService
}
from
'
vs/platform/history/common/history
'
;
import
{
IProcessEnvironment
,
isLinux
,
isMacintosh
,
isWindows
}
from
'
vs/base/common/platform
'
;
import
{
IWorkspacesMainService
,
IWorkspaceIdentifier
,
WORKSPACE_FILTER
,
I
WorkspaceFolderCreationData
,
I
SingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspacesMainService
,
IWorkspaceIdentifier
,
WORKSPACE_FILTER
,
ISingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
mnemonicButtonLabel
}
from
'
vs/base/common/labels
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
...
...
@@ -1470,18 +1470,10 @@ export class WindowsManager implements IWindowsMainService {
});
}
saveAndEnterWorkspace
(
win
:
ICodeWindow
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
this
.
workspacesManager
.
saveAndEnterWorkspace
(
win
,
path
).
then
(
result
=>
this
.
doEnterWorkspace
(
win
,
result
));
}
enterWorkspace
(
win
:
ICodeWindow
,
path
:
URI
):
Promise
<
IEnterWorkspaceResult
>
{
return
this
.
workspacesManager
.
enterWorkspace
(
win
,
path
).
then
(
result
=>
this
.
doEnterWorkspace
(
win
,
result
));
}
createAndEnterWorkspace
(
win
:
ICodeWindow
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
this
.
workspacesManager
.
createAndEnterWorkspace
(
win
,
folders
,
path
).
then
(
result
=>
this
.
doEnterWorkspace
(
win
,
result
));
}
private
doEnterWorkspace
(
win
:
ICodeWindow
,
result
:
IEnterWorkspaceResult
):
IEnterWorkspaceResult
{
// Mark as recently opened
...
...
@@ -1967,14 +1959,6 @@ class WorkspacesManager {
)
{
}
saveAndEnterWorkspace
(
window
:
ICodeWindow
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
|
null
>
{
if
(
!
window
||
!
window
.
win
||
!
window
.
isReady
||
!
window
.
openedWorkspace
||
!
path
||
!
this
.
isValidTargetWorkspacePath
(
window
,
URI
.
file
(
path
)))
{
return
Promise
.
resolve
(
null
);
// return early if the window is not ready or disposed or does not have a workspace
}
return
this
.
doSaveAndOpenWorkspace
(
window
,
window
.
openedWorkspace
,
path
);
}
enterWorkspace
(
window
:
ICodeWindow
,
path
:
URI
):
Promise
<
IEnterWorkspaceResult
|
null
>
{
if
(
!
window
||
!
window
.
win
||
!
window
.
isReady
)
{
return
Promise
.
resolve
(
null
);
// return early if the window is not ready or disposed
...
...
@@ -1990,22 +1974,6 @@ class WorkspacesManager {
}
createAndEnterWorkspace
(
window
:
ICodeWindow
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
|
null
>
{
if
(
!
window
||
!
window
.
win
||
!
window
.
isReady
||
!
path
)
{
return
Promise
.
resolve
(
null
);
// return early if the window is not ready or disposed
}
return
this
.
isValidTargetWorkspacePath
(
window
,
URI
.
file
(
path
)).
then
(
isValid
=>
{
if
(
!
isValid
)
{
return
null
;
// return early if the workspace is not valid
}
return
this
.
workspacesMainService
.
createUntitledWorkspace
(
folders
).
then
(
workspace
=>
{
return
this
.
doSaveAndOpenWorkspace
(
window
,
workspace
,
path
);
});
});
}
private
isValidTargetWorkspacePath
(
window
:
ICodeWindow
,
path
?:
URI
):
Promise
<
boolean
>
{
if
(
!
path
)
{
return
Promise
.
resolve
(
true
);
...
...
@@ -2032,17 +2000,6 @@ class WorkspacesManager {
return
Promise
.
resolve
(
true
);
// OK
}
private
doSaveAndOpenWorkspace
(
window
:
ICodeWindow
,
workspace
:
IWorkspaceIdentifier
,
path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
{
let
savePromise
:
Promise
<
IWorkspaceIdentifier
>
;
if
(
path
)
{
savePromise
=
this
.
workspacesMainService
.
saveWorkspace
(
workspace
,
path
);
}
else
{
savePromise
=
Promise
.
resolve
(
workspace
);
}
return
savePromise
.
then
(
workspace
=>
this
.
doOpenWorkspace
(
window
,
workspace
));
}
private
doOpenWorkspace
(
window
:
ICodeWindow
,
workspace
:
IWorkspaceIdentifier
):
IEnterWorkspaceResult
{
window
.
focus
();
...
...
src/vs/platform/windows/common/windows.ts
浏览文件 @
1225a12b
...
...
@@ -8,7 +8,7 @@ import { Event } from 'vs/base/common/event';
import
{
ITelemetryData
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
IProcessEnvironment
,
isMacintosh
,
isWindows
}
from
'
vs/base/common/platform
'
;
import
{
ParsedArgs
,
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IWorkspaceIdentifier
,
I
WorkspaceFolderCreationData
,
I
SingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IRecentlyOpened
}
from
'
vs/platform/history/common/history
'
;
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
ExportData
}
from
'
vs/base/common/performance
'
;
...
...
@@ -115,8 +115,6 @@ export interface IWindowsService {
toggleDevTools
(
windowId
:
number
):
Promise
<
void
>
;
closeWorkspace
(
windowId
:
number
):
Promise
<
void
>
;
enterWorkspace
(
windowId
:
number
,
path
:
URI
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
createAndEnterWorkspace
(
windowId
:
number
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
saveAndEnterWorkspace
(
windowId
:
number
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
toggleFullScreen
(
windowId
:
number
):
Promise
<
void
>
;
setRepresentedFilename
(
windowId
:
number
,
fileName
:
string
):
Promise
<
void
>
;
addRecentlyOpened
(
files
:
URI
[]):
Promise
<
void
>
;
...
...
@@ -208,8 +206,6 @@ export interface IWindowService {
closeWorkspace
():
Promise
<
void
>
;
updateTouchBar
(
items
:
ISerializableCommandAction
[][]):
Promise
<
void
>
;
enterWorkspace
(
path
:
URI
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
createAndEnterWorkspace
(
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
saveAndEnterWorkspace
(
path
:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
;
toggleFullScreen
():
Promise
<
void
>
;
setRepresentedFilename
(
fileName
:
string
):
Promise
<
void
>
;
getRecentlyOpened
():
Promise
<
IRecentlyOpened
>
;
...
...
src/vs/platform/windows/electron-browser/windowService.ts
浏览文件 @
1225a12b
...
...
@@ -7,7 +7,6 @@ import { Event } from 'vs/base/common/event';
import
{
IWindowService
,
IWindowsService
,
INativeOpenDialogOptions
,
IEnterWorkspaceResult
,
IMessageBoxResult
,
IWindowConfiguration
,
IDevToolsOptions
,
IOpenSettings
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IRecentlyOpened
}
from
'
vs/platform/history/common/history
'
;
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
IWorkspaceFolderCreationData
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -93,14 +92,6 @@ export class WindowService extends Disposable implements IWindowService {
return
this
.
windowsService
.
enterWorkspace
(
this
.
windowId
,
path
);
}
createAndEnterWorkspace
(
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
{
return
this
.
windowsService
.
createAndEnterWorkspace
(
this
.
windowId
,
folders
,
path
);
}
saveAndEnterWorkspace
(
path
:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
{
return
this
.
windowsService
.
saveAndEnterWorkspace
(
this
.
windowId
,
path
);
}
openWindow
(
paths
:
URI
[],
options
?:
IOpenSettings
):
Promise
<
void
>
{
return
this
.
windowsService
.
openWindow
(
this
.
windowId
,
paths
,
options
);
}
...
...
src/vs/platform/windows/electron-main/windows.ts
浏览文件 @
1225a12b
...
...
@@ -8,7 +8,7 @@ import { ParsedArgs } from 'vs/platform/environment/common/environment';
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
IWorkspaceIdentifier
,
IWorkspaceFolderCreationData
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
...
...
@@ -95,8 +95,6 @@ export interface IWindowsMainService {
ready
(
initialUserEnv
:
IProcessEnvironment
):
void
;
reload
(
win
:
ICodeWindow
,
cli
?:
ParsedArgs
):
void
;
enterWorkspace
(
win
:
ICodeWindow
,
path
:
URI
):
Promise
<
IEnterWorkspaceResult
>
;
createAndEnterWorkspace
(
win
:
ICodeWindow
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
;
saveAndEnterWorkspace
(
win
:
ICodeWindow
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
>
;
closeWorkspace
(
win
:
ICodeWindow
):
void
;
open
(
openConfig
:
IOpenConfiguration
):
ICodeWindow
[];
openExtensionDevelopmentHostWindow
(
openConfig
:
IOpenConfiguration
):
void
;
...
...
src/vs/platform/windows/electron-main/windowsService.ts
浏览文件 @
1225a12b
...
...
@@ -17,7 +17,7 @@ import { IURLService, IURLHandler } from 'vs/platform/url/common/url';
import
{
ILifecycleService
}
from
'
vs/platform/lifecycle/electron-main/lifecycleMain
'
;
import
{
IWindowsMainService
,
ISharedProcess
,
ICodeWindow
}
from
'
vs/platform/windows/electron-main/windows
'
;
import
{
IHistoryMainService
,
IRecentlyOpened
}
from
'
vs/platform/history/common/history
'
;
import
{
IWorkspaceIdentifier
,
I
WorkspaceFolderCreationData
,
I
SingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
mnemonicButtonLabel
}
from
'
vs/base/common/labels
'
;
...
...
@@ -144,18 +144,6 @@ export class WindowsService implements IWindowsService, IURLHandler, IDisposable
return
this
.
withWindow
(
windowId
,
codeWindow
=>
this
.
windowsMainService
.
enterWorkspace
(
codeWindow
,
path
));
}
async
createAndEnterWorkspace
(
windowId
:
number
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
{
this
.
logService
.
trace
(
'
windowsService#createAndEnterWorkspace
'
,
windowId
);
return
this
.
withWindow
(
windowId
,
codeWindow
=>
this
.
windowsMainService
.
createAndEnterWorkspace
(
codeWindow
,
folders
,
path
));
}
async
saveAndEnterWorkspace
(
windowId
:
number
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
|
undefined
>
{
this
.
logService
.
trace
(
'
windowsService#saveAndEnterWorkspace
'
,
windowId
);
return
this
.
withWindow
(
windowId
,
codeWindow
=>
this
.
windowsMainService
.
saveAndEnterWorkspace
(
codeWindow
,
path
));
}
async
toggleFullScreen
(
windowId
:
number
):
Promise
<
void
>
{
this
.
logService
.
trace
(
'
windowsService#toggleFullScreen
'
,
windowId
);
...
...
src/vs/platform/windows/node/windowsIpc.ts
浏览文件 @
1225a12b
...
...
@@ -6,7 +6,7 @@
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
IChannel
,
IServerChannel
}
from
'
vs/base/parts/ipc/node/ipc
'
;
import
{
IWindowsService
,
INativeOpenDialogOptions
,
IEnterWorkspaceResult
,
CrashReporterStartOptions
,
IMessageBoxResult
,
MessageBoxOptions
,
SaveDialogOptions
,
OpenDialogOptions
,
IDevToolsOptions
,
INewWindowOptions
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IWorkspaceIdentifier
,
I
WorkspaceFolderCreationData
,
I
SingleFolderWorkspaceIdentifier
,
isWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
,
isWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IRecentlyOpened
}
from
'
vs/platform/history/common/history
'
;
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
...
...
@@ -57,21 +57,6 @@ export class WindowsChannel implements IServerChannel {
case
'
toggleDevTools
'
:
return
this
.
service
.
toggleDevTools
(
arg
);
case
'
closeWorkspace
'
:
return
this
.
service
.
closeWorkspace
(
arg
);
case
'
enterWorkspace
'
:
return
this
.
service
.
enterWorkspace
(
arg
[
0
],
URI
.
revive
(
arg
[
1
]));
case
'
createAndEnterWorkspace
'
:
{
const
rawFolders
:
IWorkspaceFolderCreationData
[]
=
arg
[
1
];
let
folders
:
IWorkspaceFolderCreationData
[]
|
undefined
=
undefined
;
if
(
Array
.
isArray
(
rawFolders
))
{
folders
=
rawFolders
.
map
(
rawFolder
=>
{
return
{
uri
:
URI
.
revive
(
rawFolder
.
uri
),
// convert raw URI back to real URI
name
:
rawFolder
.
name
}
as
IWorkspaceFolderCreationData
;
});
}
return
this
.
service
.
createAndEnterWorkspace
(
arg
[
0
],
folders
,
arg
[
2
]);
}
case
'
saveAndEnterWorkspace
'
:
return
this
.
service
.
saveAndEnterWorkspace
(
arg
[
0
],
arg
[
1
]);
case
'
toggleFullScreen
'
:
return
this
.
service
.
toggleFullScreen
(
arg
);
case
'
setRepresentedFilename
'
:
return
this
.
service
.
setRepresentedFilename
(
arg
[
0
],
arg
[
1
]);
case
'
addRecentlyOpened
'
:
return
this
.
service
.
addRecentlyOpened
(
arg
.
map
(
URI
.
revive
));
...
...
@@ -183,14 +168,6 @@ export class WindowsChannelClient implements IWindowsService {
return
this
.
channel
.
call
(
'
enterWorkspace
'
,
[
windowId
,
path
]);
}
createAndEnterWorkspace
(
windowId
:
number
,
folders
?:
IWorkspaceFolderCreationData
[],
path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
this
.
channel
.
call
(
'
createAndEnterWorkspace
'
,
[
windowId
,
folders
,
path
]);
}
saveAndEnterWorkspace
(
windowId
:
number
,
path
:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
this
.
channel
.
call
(
'
saveAndEnterWorkspace
'
,
[
windowId
,
path
]);
}
toggleFullScreen
(
windowId
:
number
):
Promise
<
void
>
{
return
this
.
channel
.
call
(
'
toggleFullScreen
'
,
windowId
);
}
...
...
src/vs/workbench/services/workspace/node/workspaceEditingService.ts
浏览文件 @
1225a12b
...
...
@@ -7,7 +7,7 @@ import { IWorkspaceEditingService } from 'vs/workbench/services/workspace/common
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
*
as
nls
from
'
vs/nls
'
;
import
{
IWorkspaceContextService
,
WorkbenchState
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IWindowService
,
IEnterWorkspaceResult
,
MessageBoxOptions
,
IWindowsService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IWindowService
,
MessageBoxOptions
,
IWindowsService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IJSONEditingService
,
JSONEditingError
,
JSONEditingErrorCode
}
from
'
vs/workbench/services/configuration/common/jsonEditing
'
;
import
{
IWorkspaceIdentifier
,
IWorkspaceFolderCreationData
,
IStoredWorkspace
,
isStoredWorkspaceFolder
,
isRawFileWorkspaceFolder
,
isWorkspaceIdentifier
,
toWorkspaceIdentifier
,
IWorkspacesService
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceConfigurationService
}
from
'
vs/workbench/services/configuration/common/configuration
'
;
...
...
@@ -149,10 +149,6 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
return
false
;
}
enterWorkspace
(
path
:
URI
):
Promise
<
void
>
{
return
this
.
doEnterWorkspace
(()
=>
this
.
windowService
.
enterWorkspace
(
path
));
}
async
createAndEnterWorkspace
(
folders
:
IWorkspaceFolderCreationData
[],
path
?:
URI
):
Promise
<
void
>
{
if
(
path
&&
!
this
.
isValidTargetWorkspacePath
(
path
))
{
return
Promise
.
reject
(
null
);
...
...
@@ -298,7 +294,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
);
}
private
doEnterWorkspace
(
mainSidePromise
:
()
=>
Promise
<
IEnterWorkspaceResult
>
):
Promise
<
void
>
{
enterWorkspace
(
path
:
URI
):
Promise
<
void
>
{
// Stop the extension host first to give extensions most time to shutdown
this
.
extensionService
.
stopExtensionHost
();
...
...
@@ -309,7 +305,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
extensionHostStarted
=
true
;
};
return
mainSidePromise
(
).
then
(
result
=>
{
return
this
.
windowService
.
enterWorkspace
(
path
).
then
(
result
=>
{
// Migrate storage and settings if we are to enter a workspace
if
(
result
)
{
...
...
src/vs/workbench/test/workbenchTestServices.ts
浏览文件 @
1225a12b
...
...
@@ -44,7 +44,7 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
generateUuid
}
from
'
vs/base/common/uuid
'
;
import
{
TestThemeService
}
from
'
vs/platform/theme/test/common/testThemeService
'
;
import
{
IWorkspaceIdentifier
,
I
WorkspaceFolderCreationData
,
I
SingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IRecentlyOpened
}
from
'
vs/platform/history/common/history
'
;
import
{
ITextResourceConfigurationService
,
ITextResourcePropertiesService
}
from
'
vs/editor/common/services/resourceConfiguration
'
;
import
{
IPosition
,
Position
as
EditorPosition
}
from
'
vs/editor/common/core/position
'
;
...
...
@@ -1058,14 +1058,6 @@ export class TestWindowService implements IWindowService {
return
Promise
.
resolve
();
}
createAndEnterWorkspace
(
_folders
?:
IWorkspaceFolderCreationData
[],
_path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
Promise
.
resolve
();
}
saveAndEnterWorkspace
(
_path
:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
Promise
.
resolve
();
}
toggleFullScreen
():
Promise
<
void
>
{
return
Promise
.
resolve
();
}
...
...
@@ -1227,14 +1219,6 @@ export class TestWindowsService implements IWindowsService {
return
Promise
.
resolve
();
}
createAndEnterWorkspace
(
_windowId
:
number
,
_folders
?:
IWorkspaceFolderCreationData
[],
_path
?:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
Promise
.
resolve
();
}
saveAndEnterWorkspace
(
_windowId
:
number
,
_path
:
string
):
Promise
<
IEnterWorkspaceResult
>
{
return
Promise
.
resolve
();
}
toggleFullScreen
(
_windowId
:
number
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录