Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
b892ded0
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,发现更多精彩内容 >>
提交
b892ded0
编写于
5月 16, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
grid - move opener service into editor
上级
a584931b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
16 deletion
+7
-16
src/vs/editor/browser/services/openerService.ts
src/vs/editor/browser/services/openerService.ts
+0
-0
src/vs/editor/standalone/browser/standaloneEditor.ts
src/vs/editor/standalone/browser/standaloneEditor.ts
+1
-1
src/vs/editor/test/browser/services/openerService.test.ts
src/vs/editor/test/browser/services/openerService.test.ts
+1
-1
src/vs/platform/opener/browser/opener.contribution.ts
src/vs/platform/opener/browser/opener.contribution.ts
+0
-12
src/vs/platform/opener/common/opener.ts
src/vs/platform/opener/common/opener.ts
+0
-1
src/vs/workbench/electron-browser/shell.ts
src/vs/workbench/electron-browser/shell.ts
+0
-1
src/vs/workbench/electron-browser/workbench.ts
src/vs/workbench/electron-browser/workbench.ts
+5
-0
未找到文件。
src/vs/
platform/opener/browser
/openerService.ts
→
src/vs/
editor/browser/services
/openerService.ts
浏览文件 @
b892ded0
文件已移动
src/vs/editor/standalone/browser/standaloneEditor.ts
浏览文件 @
b892ded0
...
...
@@ -13,7 +13,7 @@ import { IEditorOverrideServices, DynamicStandaloneServices, StaticServices } fr
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
OpenerService
}
from
'
vs/
platform/opener/browser
/openerService
'
;
import
{
OpenerService
}
from
'
vs/
editor/browser/services
/openerService
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
import
{
Colorizer
,
IColorizerElementOptions
,
IColorizerOptions
}
from
'
vs/editor/standalone/browser/colorizer
'
;
import
{
SimpleEditorService
,
SimpleEditorModelResolverService
}
from
'
vs/editor/standalone/browser/simpleServices
'
;
...
...
src/vs/
platform/opener/test/browser
/openerService.test.ts
→
src/vs/
editor/test/browser/services
/openerService.test.ts
浏览文件 @
b892ded0
...
...
@@ -9,7 +9,7 @@ import * as assert from 'assert';
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
IEditorService
,
IResourceInput
}
from
'
vs/platform/editor/common/editor
'
;
import
{
ICommandService
,
NullCommandService
,
CommandsRegistry
}
from
'
vs/platform/commands/common/commands
'
;
import
{
OpenerService
}
from
'
vs/
platform/opener/browser
/openerService
'
;
import
{
OpenerService
}
from
'
vs/
editor/browser/services
/openerService
'
;
suite
(
'
OpenerService
'
,
function
()
{
...
...
src/vs/platform/opener/browser/opener.contribution.ts
已删除
100644 → 0
浏览文件 @
a584931b
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
OpenerService
}
from
'
vs/platform/opener/browser/openerService
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
registerSingleton
(
IOpenerService
,
OpenerService
);
src/vs/platform/opener/common/opener.ts
浏览文件 @
b892ded0
...
...
@@ -10,7 +10,6 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
export
const
IOpenerService
=
createDecorator
<
IOpenerService
>
(
'
openerService
'
);
export
interface
IOpenerService
{
_serviceBrand
:
any
;
...
...
src/vs/workbench/electron-browser/shell.ts
浏览文件 @
b892ded0
...
...
@@ -69,7 +69,6 @@ import { ITimerService } from 'vs/workbench/services/timer/common/timerService';
import
{
BareFontInfo
}
from
'
vs/editor/common/config/fontInfo
'
;
import
{
restoreFontInfo
,
readFontInfo
,
saveFontInfo
}
from
'
vs/editor/browser/config/configuration
'
;
import
*
as
browser
from
'
vs/base/browser/browser
'
;
import
'
vs/platform/opener/browser/opener.contribution
'
;
import
{
IWorkbenchThemeService
}
from
'
vs/workbench/services/themes/common/workbenchThemeService
'
;
import
{
WorkbenchThemeService
}
from
'
vs/workbench/services/themes/electron-browser/workbenchThemeService
'
;
import
{
ITextResourceConfigurationService
}
from
'
vs/editor/common/services/resourceConfiguration
'
;
...
...
src/vs/workbench/electron-browser/workbench.ts
浏览文件 @
b892ded0
...
...
@@ -113,6 +113,8 @@ import { NextEditorPart } from 'vs/workbench/browser/parts/editor2/nextEditorPar
import
{
INextEditorGroupsService
,
GroupDirection
}
from
'
vs/workbench/services/group/common/nextEditorGroupsService
'
;
import
{
NextEditorService
}
from
'
vs/workbench/services/editor/browser/nextEditorService
'
;
import
{
IExtensionUrlHandler
,
ExtensionUrlHandler
}
from
'
vs/platform/url/electron-browser/inactiveExtensionUrlHandler
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
import
{
OpenerService
}
from
'
vs/editor/browser/services/openerService
'
;
interface
WorkbenchParams
{
configuration
:
IWindowConfiguration
;
...
...
@@ -387,6 +389,9 @@ export class Workbench extends Disposable implements IPartService {
this
.
editorService
=
this
.
instantiationService
.
createInstance
(
NextEditorService
);
serviceCollection
.
set
(
INextEditorService
,
this
.
editorService
);
// Opener service
serviceCollection
.
set
(
IOpenerService
,
new
SyncDescriptor
(
OpenerService
));
// TODO@grid Remove Legacy Editor Services
const
noOpEditorPart
=
new
NoOpEditorPart
(
this
.
instantiationService
);
serviceCollection
.
set
(
IWorkbenchEditorService
,
this
.
instantiationService
.
createInstance
(
WorkbenchEditorService
,
noOpEditorPart
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录