Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
23f2275c
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,发现更多精彩内容 >>
提交
23f2275c
编写于
9月 24, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - move openExtensionDevelopmentHostWindow out of window interface
上级
2f2eb547
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
5 addition
and
15 deletion
+5
-15
src/vs/platform/windows/common/windows.ts
src/vs/platform/windows/common/windows.ts
+0
-1
src/vs/platform/windows/common/windowsIpc.ts
src/vs/platform/windows/common/windowsIpc.ts
+1
-1
src/vs/workbench/browser/web.simpleservices.ts
src/vs/workbench/browser/web.simpleservices.ts
+0
-6
src/vs/workbench/contrib/debug/electron-browser/extensionHostDebugService.ts
...ntrib/debug/electron-browser/extensionHostDebugService.ts
+2
-1
src/vs/workbench/test/workbenchTestServices.ts
src/vs/workbench/test/workbenchTestServices.ts
+2
-6
未找到文件。
src/vs/platform/windows/common/windows.ts
浏览文件 @
23f2275c
...
@@ -97,7 +97,6 @@ export interface IWindowsService {
...
@@ -97,7 +97,6 @@ export interface IWindowsService {
// Global methods
// Global methods
openWindow
(
windowId
:
number
,
uris
:
IURIToOpen
[],
options
:
IOpenSettings
):
Promise
<
void
>
;
openWindow
(
windowId
:
number
,
uris
:
IURIToOpen
[],
options
:
IOpenSettings
):
Promise
<
void
>
;
openExtensionDevelopmentHostWindow
(
args
:
ParsedArgs
,
env
:
IProcessEnvironment
):
Promise
<
void
>
;
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
;
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
;
getActiveWindowId
():
Promise
<
number
|
undefined
>
;
getActiveWindowId
():
Promise
<
number
|
undefined
>
;
}
}
...
...
src/vs/platform/windows/common/windowsIpc.ts
浏览文件 @
23f2275c
...
@@ -79,7 +79,7 @@ export class WindowsChannel implements IServerChannel {
...
@@ -79,7 +79,7 @@ export class WindowsChannel implements IServerChannel {
options
.
waitMarkerFileURI
=
options
.
waitMarkerFileURI
&&
URI
.
revive
(
options
.
waitMarkerFileURI
);
options
.
waitMarkerFileURI
=
options
.
waitMarkerFileURI
&&
URI
.
revive
(
options
.
waitMarkerFileURI
);
return
this
.
service
.
openWindow
(
arg
[
0
],
urisToOpen
,
options
);
return
this
.
service
.
openWindow
(
arg
[
0
],
urisToOpen
,
options
);
}
}
case
'
openExtensionDevelopmentHostWindow
'
:
return
this
.
service
.
openExtensionDevelopmentHostWindow
(
arg
[
0
],
arg
[
1
]);
case
'
openExtensionDevelopmentHostWindow
'
:
return
(
this
.
service
as
any
).
openExtensionDevelopmentHostWindow
(
arg
[
0
],
arg
[
1
]);
// TODO@Isidor move
case
'
getWindows
'
:
return
this
.
service
.
getWindows
();
case
'
getWindows
'
:
return
this
.
service
.
getWindows
();
case
'
getActiveWindowId
'
:
return
this
.
service
.
getActiveWindowId
();
case
'
getActiveWindowId
'
:
return
this
.
service
.
getActiveWindowId
();
}
}
...
...
src/vs/workbench/browser/web.simpleservices.ts
浏览文件 @
23f2275c
...
@@ -19,8 +19,6 @@ import { IEditorService, IResourceEditor } from 'vs/workbench/services/editor/co
...
@@ -19,8 +19,6 @@ import { IEditorService, IResourceEditor } from 'vs/workbench/services/editor/co
import
{
pathsToEditors
}
from
'
vs/workbench/common/editor
'
;
import
{
pathsToEditors
}
from
'
vs/workbench/common/editor
'
;
import
{
IFileService
}
from
'
vs/platform/files/common/files
'
;
import
{
IFileService
}
from
'
vs/platform/files/common/files
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
toStoreData
,
restoreRecentlyOpened
}
from
'
vs/platform/history/common/historyStorage
'
;
import
{
toStoreData
,
restoreRecentlyOpened
}
from
'
vs/platform/history/common/historyStorage
'
;
//#region Window
//#region Window
...
@@ -277,10 +275,6 @@ export class SimpleWindowsService implements IWindowsService {
...
@@ -277,10 +275,6 @@ export class SimpleWindowsService implements IWindowsService {
return
Promise
.
resolve
();
return
Promise
.
resolve
();
}
}
openExtensionDevelopmentHostWindow
(
args
:
ParsedArgs
,
env
:
IProcessEnvironment
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
{
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
{
return
Promise
.
resolve
([]);
return
Promise
.
resolve
([]);
}
}
...
...
src/vs/workbench/contrib/debug/electron-browser/extensionHostDebugService.ts
浏览文件 @
23f2275c
...
@@ -10,6 +10,7 @@ import { ExtensionHostDebugChannelClient, ExtensionHostDebugBroadcastChannel } f
...
@@ -10,6 +10,7 @@ import { ExtensionHostDebugChannelClient, ExtensionHostDebugBroadcastChannel } f
import
{
IWindowsService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IWindowsService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
WindowsService
}
from
'
vs/platform/windows/electron-browser/windowsService
'
;
export
class
ExtensionHostDebugService
extends
ExtensionHostDebugChannelClient
{
export
class
ExtensionHostDebugService
extends
ExtensionHostDebugChannelClient
{
...
@@ -22,7 +23,7 @@ export class ExtensionHostDebugService extends ExtensionHostDebugChannelClient {
...
@@ -22,7 +23,7 @@ export class ExtensionHostDebugService extends ExtensionHostDebugChannelClient {
openExtensionDevelopmentHostWindow
(
args
:
ParsedArgs
,
env
:
IProcessEnvironment
):
Promise
<
void
>
{
openExtensionDevelopmentHostWindow
(
args
:
ParsedArgs
,
env
:
IProcessEnvironment
):
Promise
<
void
>
{
// TODO@Isidor use debug IPC channel
// TODO@Isidor use debug IPC channel
return
this
.
windowsService
.
openExtensionDevelopmentHostWindow
(
args
,
env
);
return
(
this
.
windowsService
as
WindowsService
)
.
openExtensionDevelopmentHostWindow
(
args
,
env
);
}
}
}
}
...
...
src/vs/workbench/test/workbenchTestServices.ts
浏览文件 @
23f2275c
...
@@ -38,7 +38,7 @@ import { TestConfigurationService } from 'vs/platform/configuration/test/common/
...
@@ -38,7 +38,7 @@ import { TestConfigurationService } from 'vs/platform/configuration/test/common/
import
{
IWindowsService
,
IWindowService
,
IEnterWorkspaceResult
,
MenuBarVisibility
,
IURIToOpen
,
IOpenSettings
,
IWindowConfiguration
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IWindowsService
,
IWindowService
,
IEnterWorkspaceResult
,
MenuBarVisibility
,
IURIToOpen
,
IOpenSettings
,
IWindowConfiguration
}
from
'
vs/platform/windows/common/windows
'
;
import
{
TestWorkspace
}
from
'
vs/platform/workspace/test/common/testWorkspace
'
;
import
{
TestWorkspace
}
from
'
vs/platform/workspace/test/common/testWorkspace
'
;
import
{
createTextBufferFactoryFromStream
}
from
'
vs/editor/common/model/textModel
'
;
import
{
createTextBufferFactoryFromStream
}
from
'
vs/editor/common/model/textModel
'
;
import
{
IEnvironmentService
,
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
TestThemeService
}
from
'
vs/platform/theme/test/common/testThemeService
'
;
import
{
TestThemeService
}
from
'
vs/platform/theme/test/common/testThemeService
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
,
isSingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
...
@@ -71,7 +71,7 @@ import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet';
...
@@ -71,7 +71,7 @@ import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet';
import
{
ViewletDescriptor
,
Viewlet
}
from
'
vs/workbench/browser/viewlet
'
;
import
{
ViewletDescriptor
,
Viewlet
}
from
'
vs/workbench/browser/viewlet
'
;
import
{
IViewlet
}
from
'
vs/workbench/common/viewlet
'
;
import
{
IViewlet
}
from
'
vs/workbench/common/viewlet
'
;
import
{
IStorageService
,
InMemoryStorageService
}
from
'
vs/platform/storage/common/storage
'
;
import
{
IStorageService
,
InMemoryStorageService
}
from
'
vs/platform/storage/common/storage
'
;
import
{
isLinux
,
isMacintosh
,
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
isLinux
,
isMacintosh
}
from
'
vs/base/common/platform
'
;
import
{
LabelService
}
from
'
vs/workbench/services/label/common/labelService
'
;
import
{
LabelService
}
from
'
vs/workbench/services/label/common/labelService
'
;
import
{
IDimension
}
from
'
vs/platform/layout/browser/layoutService
'
;
import
{
IDimension
}
from
'
vs/platform/layout/browser/layoutService
'
;
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
...
@@ -1346,10 +1346,6 @@ export class TestWindowsService implements IWindowsService {
...
@@ -1346,10 +1346,6 @@ export class TestWindowsService implements IWindowsService {
return
Promise
.
resolve
();
return
Promise
.
resolve
();
}
}
openExtensionDevelopmentHostWindow
(
args
:
ParsedArgs
,
env
:
IProcessEnvironment
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
{
getWindows
():
Promise
<
{
id
:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderUri
?:
ISingleFolderWorkspaceIdentifier
;
title
:
string
;
filename
?:
string
;
}[]
>
{
throw
new
Error
(
'
not implemented
'
);
throw
new
Error
(
'
not implemented
'
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录