Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8a374375
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,发现更多精彩内容 >>
提交
8a374375
编写于
5月 27, 2019
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove IBroadcastService. Fixes #70831
上级
3fc919ee
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
0 addition
and
115 deletion
+0
-115
src/vs/workbench/browser/web.simpleservices.ts
src/vs/workbench/browser/web.simpleservices.ts
+0
-30
src/vs/workbench/services/broadcast/common/broadcast.ts
src/vs/workbench/services/broadcast/common/broadcast.ts
+0
-30
src/vs/workbench/services/broadcast/electron-browser/broadcastService.ts
...h/services/broadcast/electron-browser/broadcastService.ts
+0
-51
src/vs/workbench/workbench.main.ts
src/vs/workbench/workbench.main.ts
+0
-1
src/vs/workbench/workbench.web.main.ts
src/vs/workbench/workbench.web.main.ts
+0
-3
未找到文件。
src/vs/workbench/browser/web.simpleservices.ts
浏览文件 @
8a374375
...
@@ -144,36 +144,6 @@ registerSingleton(IBackupFileService, SimpleBackupFileService, true);
...
@@ -144,36 +144,6 @@ registerSingleton(IBackupFileService, SimpleBackupFileService, true);
//#endregion
//#endregion
//#region Broadcast
export
const
IBroadcastService
=
createDecorator
<
IBroadcastService
>
(
'
broadcastService
'
);
export
interface
IBroadcast
{
channel
:
string
;
payload
:
any
;
}
export
interface
IBroadcastService
{
_serviceBrand
:
any
;
onBroadcast
:
Event
<
IBroadcast
>
;
broadcast
(
b
:
IBroadcast
):
void
;
}
export
class
SimpleBroadcastService
implements
IBroadcastService
{
_serviceBrand
:
any
;
readonly
onBroadcast
:
Event
<
IBroadcast
>
=
Event
.
None
;
broadcast
(
b
:
IBroadcast
):
void
{
}
}
registerSingleton
(
IBroadcastService
,
SimpleBroadcastService
,
true
);
//#endregion
//#region Clipboard
//#region Clipboard
export
class
SimpleClipboardService
implements
IClipboardService
{
export
class
SimpleClipboardService
implements
IClipboardService
{
...
...
src/vs/workbench/services/broadcast/common/broadcast.ts
已删除
100644 → 0
浏览文件 @
3fc919ee
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
Event
}
from
'
vs/base/common/event
'
;
export
const
IBroadcastService
=
createDecorator
<
IBroadcastService
>
(
'
broadcastService
'
);
export
interface
IBroadcast
{
channel
:
string
;
payload
:
any
;
}
export
interface
IBroadcastService
{
_serviceBrand
:
any
;
onBroadcast
:
Event
<
IBroadcast
>
;
broadcast
(
b
:
IBroadcast
):
void
;
}
export
class
NullBroadcastService
implements
IBroadcastService
{
_serviceBrand
:
any
;
onBroadcast
:
Event
<
IBroadcast
>
=
Event
.
None
;
broadcast
(
_b
:
IBroadcast
):
void
{
}
}
src/vs/workbench/services/broadcast/electron-browser/broadcastService.ts
已删除
100644 → 0
浏览文件 @
3fc919ee
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
ipcRenderer
as
ipc
}
from
'
electron
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IWindowService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IBroadcastService
,
IBroadcast
}
from
'
vs/workbench/services/broadcast/common/broadcast
'
;
class
BroadcastService
extends
Disposable
implements
IBroadcastService
{
_serviceBrand
:
any
;
private
readonly
_onBroadcast
:
Emitter
<
IBroadcast
>
=
this
.
_register
(
new
Emitter
<
IBroadcast
>
());
get
onBroadcast
():
Event
<
IBroadcast
>
{
return
this
.
_onBroadcast
.
event
;
}
private
windowId
:
number
;
constructor
(
@
IWindowService
readonly
windowService
:
IWindowService
,
@
ILogService
private
readonly
logService
:
ILogService
)
{
super
();
this
.
windowId
=
windowService
.
windowId
;
this
.
registerListeners
();
}
private
registerListeners
():
void
{
ipc
.
on
(
'
vscode:broadcast
'
,
(
event
:
unknown
,
b
:
IBroadcast
)
=>
{
this
.
logService
.
trace
(
`Received broadcast from main in window
${
this
.
windowId
}
: `
,
b
);
this
.
_onBroadcast
.
fire
(
b
);
});
}
broadcast
(
b
:
IBroadcast
):
void
{
this
.
logService
.
trace
(
`Sending broadcast to main from window
${
this
.
windowId
}
: `
,
b
);
ipc
.
send
(
'
vscode:broadcast
'
,
this
.
windowId
,
{
channel
:
b
.
channel
,
payload
:
b
.
payload
});
}
}
registerSingleton
(
IBroadcastService
,
BroadcastService
,
true
);
src/vs/workbench/workbench.main.ts
浏览文件 @
8a374375
...
@@ -104,7 +104,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
...
@@ -104,7 +104,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
import
'
vs/workbench/services/search/node/searchService
'
;
import
'
vs/workbench/services/search/node/searchService
'
;
import
'
vs/workbench/services/progress/browser/progressService
'
;
import
'
vs/workbench/services/progress/browser/progressService
'
;
import
'
vs/workbench/services/editor/browser/codeEditorService
'
;
import
'
vs/workbench/services/editor/browser/codeEditorService
'
;
import
'
vs/workbench/services/broadcast/electron-browser/broadcastService
'
;
import
'
vs/workbench/services/extensions/electron-browser/extensionHostDebugService
'
;
import
'
vs/workbench/services/extensions/electron-browser/extensionHostDebugService
'
;
import
'
vs/workbench/services/preferences/browser/preferencesService
'
;
import
'
vs/workbench/services/preferences/browser/preferencesService
'
;
import
'
vs/workbench/services/output/node/outputChannelModelService
'
;
import
'
vs/workbench/services/output/node/outputChannelModelService
'
;
...
...
src/vs/workbench/workbench.web.main.ts
浏览文件 @
8a374375
...
@@ -90,7 +90,6 @@ import { ContextViewService } from 'vs/platform/contextview/browser/contextViewS
...
@@ -90,7 +90,6 @@ import { ContextViewService } from 'vs/platform/contextview/browser/contextViewS
// import { IURLService } from 'vs/platform/url/common/url';
// import { IURLService } from 'vs/platform/url/common/url';
// import { RelayURLService } from 'vs/platform/url/electron-browser/urlService';
// import { RelayURLService } from 'vs/platform/url/electron-browser/urlService';
import
{
IHeapService
,
NullHeapService
}
from
'
vs/workbench/services/heap/common/heap
'
;
import
{
IHeapService
,
NullHeapService
}
from
'
vs/workbench/services/heap/common/heap
'
;
import
{
IBroadcastService
,
NullBroadcastService
}
from
'
vs/workbench/services/broadcast/common/broadcast
'
;
import
{
ConfigurationResolverService
}
from
'
vs/workbench/services/configurationResolver/browser/configurationResolverService
'
;
import
{
ConfigurationResolverService
}
from
'
vs/workbench/services/configurationResolver/browser/configurationResolverService
'
;
import
{
IConfigurationResolverService
}
from
'
vs/workbench/services/configurationResolver/common/configurationResolver
'
;
import
{
IConfigurationResolverService
}
from
'
vs/workbench/services/configurationResolver/common/configurationResolver
'
;
...
@@ -108,7 +107,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
...
@@ -108,7 +107,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
// import 'vs/workbench/services/search/node/searchService';
// import 'vs/workbench/services/search/node/searchService';
import
'
vs/workbench/services/progress/browser/progressService
'
;
import
'
vs/workbench/services/progress/browser/progressService
'
;
import
'
vs/workbench/services/editor/browser/codeEditorService
'
;
import
'
vs/workbench/services/editor/browser/codeEditorService
'
;
// import 'vs/workbench/services/broadcast/electron-browser/broadcastService';
import
'
vs/workbench/services/preferences/browser/preferencesService
'
;
import
'
vs/workbench/services/preferences/browser/preferencesService
'
;
import
'
vs/workbench/services/output/common/outputChannelModelService
'
;
import
'
vs/workbench/services/output/common/outputChannelModelService
'
;
import
'
vs/workbench/services/configuration/common/jsonEditingService
'
;
import
'
vs/workbench/services/configuration/common/jsonEditingService
'
;
...
@@ -166,7 +164,6 @@ registerSingleton(IContextViewService, ContextViewService, true);
...
@@ -166,7 +164,6 @@ registerSingleton(IContextViewService, ContextViewService, true);
// registerSingleton(IMenubarService, MenubarService);
// registerSingleton(IMenubarService, MenubarService);
// registerSingleton(IURLService, RelayURLService);
// registerSingleton(IURLService, RelayURLService);
registerSingleton
(
IHeapService
,
NullHeapService
);
registerSingleton
(
IHeapService
,
NullHeapService
);
registerSingleton
(
IBroadcastService
,
NullBroadcastService
);
registerSingleton
(
IContextMenuService
,
ContextMenuService
);
registerSingleton
(
IContextMenuService
,
ContextMenuService
);
registerSingleton
(
IConfigurationResolverService
,
ConfigurationResolverService
,
true
);
registerSingleton
(
IConfigurationResolverService
,
ConfigurationResolverService
,
true
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录