Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
31f19432
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,发现更多精彩内容 >>
提交
31f19432
编写于
4月 19, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
grid - create a editor blank slate container
上级
433006eb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
275 addition
and
23 deletion
+275
-23
src/vs/workbench/browser/parts/nexteditor/nextEditorPart.ts
src/vs/workbench/browser/parts/nexteditor/nextEditorPart.ts
+74
-0
src/vs/workbench/electron-browser/workbench.ts
src/vs/workbench/electron-browser/workbench.ts
+31
-20
src/vs/workbench/services/editor/common/editorService.ts
src/vs/workbench/services/editor/common/editorService.ts
+142
-3
src/vs/workbench/services/editor/common/nextEditorService.ts
src/vs/workbench/services/editor/common/nextEditorService.ts
+14
-0
src/vs/workbench/services/group/common/nextGroupService.ts
src/vs/workbench/services/group/common/nextGroupService.ts
+14
-0
未找到文件。
src/vs/workbench/browser/parts/nexteditor/nextEditorPart.ts
0 → 100644
浏览文件 @
31f19432
/*---------------------------------------------------------------------------------------------
* 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
'
vs/workbench/browser/parts/editor/editor.contribution
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
import
{
INextEditorGroupService
}
from
'
vs/workbench/services/group/common/nextGroupService
'
;
import
{
Dimension
,
addClass
}
from
'
vs/base/browser/dom
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
INextWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/nextEditorService
'
;
export
class
NextEditorPart
extends
Part
implements
INextWorkbenchEditorService
,
INextEditorGroupService
{
public
_serviceBrand
:
any
;
private
readonly
_onLayout
:
Emitter
<
Dimension
>
;
// private dimension: Dimension;
constructor
(
id
:
string
,
@
IThemeService
themeService
:
IThemeService
)
{
super
(
id
,
{
hasTitle
:
false
},
themeService
);
this
.
_onLayout
=
new
Emitter
<
Dimension
>
();
}
public
get
onLayout
():
Event
<
Dimension
>
{
return
this
.
_onLayout
.
event
;
}
public
createContentArea
(
parent
:
HTMLElement
):
HTMLElement
{
const
contentArea
=
document
.
createElement
(
'
div
'
);
addClass
(
contentArea
,
'
content
'
);
parent
.
appendChild
(
contentArea
);
return
contentArea
;
}
protected
updateStyles
():
void
{
super
.
updateStyles
();
// TODO@next update styles
}
public
layout
(
dimension
:
Dimension
):
Dimension
[]
{
const
sizes
=
super
.
layout
(
dimension
);
// this.dimension = sizes[1];
// TODO@next propagate layout
this
.
_onLayout
.
fire
(
dimension
);
return
sizes
;
}
public
dispose
():
void
{
// Emitters
this
.
_onLayout
.
dispose
();
// TODO@next dispose
// - all visible and instantiated editors
// - tokens for opening
super
.
dispose
();
}
}
\ No newline at end of file
src/vs/workbench/electron-browser/workbench.ts
浏览文件 @
31f19432
...
...
@@ -26,7 +26,6 @@ import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } fr
import
{
IEditorInputFactoryRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
HistoryService
}
from
'
vs/workbench/services/history/electron-browser/history
'
;
import
{
ActivitybarPart
}
from
'
vs/workbench/browser/parts/activitybar/activitybarPart
'
;
import
{
EditorPart
}
from
'
vs/workbench/browser/parts/editor/editorPart
'
;
import
{
SidebarPart
}
from
'
vs/workbench/browser/parts/sidebar/sidebarPart
'
;
import
{
PanelPart
}
from
'
vs/workbench/browser/parts/panel/panelPart
'
;
import
{
StatusbarPart
}
from
'
vs/workbench/browser/parts/statusbar/statusbarPart
'
;
...
...
@@ -60,7 +59,7 @@ import { IConfigurationResolverService } from 'vs/workbench/services/configurati
import
{
ConfigurationResolverService
}
from
'
vs/workbench/services/configurationResolver/electron-browser/configurationResolverService
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
import
{
ITitleService
}
from
'
vs/workbench/services/title/common/titleService
'
;
import
{
IWorkbenchEditorService
,
IResourceInputType
,
WorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
IWorkbenchEditorService
,
IResourceInputType
,
WorkbenchEditorService
,
NoOpEditorPart
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
IQuickOpenService
}
from
'
vs/platform/quickOpen/common/quickOpen
'
;
import
{
IClipboardService
}
from
'
vs/platform/clipboard/common/clipboardService
'
;
import
{
ClipboardService
}
from
'
vs/platform/clipboard/electron-browser/clipboardService
'
;
...
...
@@ -110,6 +109,9 @@ import { IPCClient } from 'vs/base/parts/ipc/common/ipc';
import
{
registerWindowDriver
}
from
'
vs/platform/driver/electron-browser/driver
'
;
import
{
IPreferencesService
}
from
'
vs/workbench/services/preferences/common/preferences
'
;
import
{
PreferencesService
}
from
'
vs/workbench/services/preferences/browser/preferencesService
'
;
import
{
INextEditorService
}
from
'
vs/workbench/services/editor/common/nextEditorService
'
;
import
{
NextEditorPart
}
from
'
vs/workbench/browser/parts/nexteditor/nextEditorPart
'
;
import
{
INextEditorGroupService
}
from
'
vs/workbench/services/group/common/nextGroupService
'
;
export
const
EditorsVisibleContext
=
new
RawContextKey
<
boolean
>
(
'
editorIsOpen
'
,
false
);
export
const
InZenModeContext
=
new
RawContextKey
<
boolean
>
(
'
inZenMode
'
,
false
);
...
...
@@ -191,8 +193,9 @@ export class Workbench implements IPartService {
private
workbench
:
Builder
;
private
workbenchStarted
:
boolean
;
private
workbenchCreated
:
boolean
;
private
editorService
:
IWorkbenchEditorService
;
private
editorGroupService
:
IEditorGroupService
;
private
workbenchShutdown
:
boolean
;
private
editorService
:
WorkbenchEditorService
;
private
viewletService
:
IViewletService
;
private
contextKeyService
:
IContextKeyService
;
private
keybindingService
:
IKeybindingService
;
...
...
@@ -202,7 +205,8 @@ export class Workbench implements IPartService {
private
activitybarPart
:
ActivitybarPart
;
private
sidebarPart
:
SidebarPart
;
private
panelPart
:
PanelPart
;
private
editorPart
:
EditorPart
;
private
noOpEditorPart
:
NoOpEditorPart
;
// TODO@next adopt methods in next editor part
private
editorPart
:
NextEditorPart
;
private
statusbarPart
:
StatusbarPart
;
private
quickOpen
:
QuickOpenController
;
private
quickInput
:
QuickInputService
;
...
...
@@ -352,7 +356,7 @@ export class Workbench implements IPartService {
if
(
inputs
.
length
)
{
editorOpenPromise
=
this
.
editorService
.
openEditors
(
inputs
.
map
(
input
=>
{
return
{
input
,
position
:
EditorPosition
.
ONE
};
}));
}
else
{
editorOpenPromise
=
this
.
e
ditorPart
.
restoreEditors
();
editorOpenPromise
=
this
.
noOpE
ditorPart
.
restoreEditors
();
}
return
editorOpenPromise
.
then
(
editors
=>
{
...
...
@@ -472,7 +476,7 @@ export class Workbench implements IPartService {
// Empty workbench
else
if
(
this
.
contextService
.
getWorkbenchState
()
===
WorkbenchState
.
EMPTY
&&
this
.
openUntitledFile
())
{
if
(
this
.
e
ditorPart
.
hasEditorsToRestore
())
{
if
(
this
.
noOpE
ditorPart
.
hasEditorsToRestore
())
{
return
TPromise
.
as
([]);
// do not open any empty untitled file if we have editors to restore
}
...
...
@@ -588,12 +592,18 @@ export class Workbench implements IPartService {
serviceCollection
.
set
(
IFileService
,
this
.
fileService
);
this
.
configurationService
.
acquireFileService
(
this
.
fileService
);
// Editor service (editor part)
this
.
editorPart
=
this
.
instantiationService
.
createInstance
(
EditorPart
,
Identifiers
.
EDITOR_PART
,
!
this
.
hasFilesToCreateOpenOrDiff
);
// Editor service (
next
editor part)
this
.
editorPart
=
this
.
instantiationService
.
createInstance
(
NextEditorPart
,
Identifiers
.
EDITOR_PART
/*, !this.hasFilesToCreateOpenOrDiff*/
);
this
.
toUnbind
.
push
({
dispose
:
()
=>
this
.
editorPart
.
shutdown
()
});
this
.
editorService
=
this
.
instantiationService
.
createInstance
(
WorkbenchEditorService
,
this
.
editorPart
);
serviceCollection
.
set
(
INextEditorService
,
this
.
editorPart
);
serviceCollection
.
set
(
INextEditorGroupService
,
this
.
editorPart
);
// Legacy Editor Services
this
.
noOpEditorPart
=
new
NoOpEditorPart
(
this
.
instantiationService
);
this
.
editorService
=
this
.
instantiationService
.
createInstance
(
WorkbenchEditorService
,
this
.
noOpEditorPart
);
this
.
editorGroupService
=
this
.
noOpEditorPart
;
serviceCollection
.
set
(
IWorkbenchEditorService
,
this
.
editorService
);
serviceCollection
.
set
(
IEditorGroupService
,
this
.
e
ditorPart
);
serviceCollection
.
set
(
IEditorGroupService
,
this
.
noOpE
ditorPart
);
// Title bar
this
.
titlebarPart
=
this
.
instantiationService
.
createInstance
(
TitlebarPart
,
Identifiers
.
TITLEBAR_PART
);
...
...
@@ -852,7 +862,7 @@ export class Workbench implements IPartService {
let
promise
=
TPromise
.
wrap
<
any
>
(
null
);
if
(
hidden
&&
this
.
sidebarPart
.
getActiveViewlet
())
{
promise
=
this
.
sidebarPart
.
hideActiveViewlet
().
then
(()
=>
{
const
activeEditor
=
this
.
editor
Part
.
getActiveEditor
();
const
activeEditor
=
this
.
editor
Service
.
getActiveEditor
();
const
activePanel
=
this
.
panelPart
.
getActivePanel
();
// Pass Focus to Editor or Panel if Sidebar is now hidden
...
...
@@ -903,8 +913,9 @@ export class Workbench implements IPartService {
let
promise
=
TPromise
.
wrap
<
any
>
(
null
);
if
(
hidden
&&
this
.
panelPart
.
getActivePanel
())
{
promise
=
this
.
panelPart
.
hideActivePanel
().
then
(()
=>
{
// Pass Focus to Editor if Panel part is now hidden
const
editor
=
this
.
editor
Part
.
getActiveEditor
();
const
editor
=
this
.
editor
Service
.
getActiveEditor
();
if
(
editor
)
{
editor
.
focus
();
}
...
...
@@ -1044,14 +1055,14 @@ export class Workbench implements IPartService {
private
registerListeners
():
void
{
// Listen to editor changes
this
.
toUnbind
.
push
(
this
.
editor
Part
.
onEditorsChanged
(()
=>
this
.
onEditorsChanged
()));
this
.
toUnbind
.
push
(
this
.
editor
GroupService
.
onEditorsChanged
(()
=>
this
.
onEditorsChanged
()));
// Listen to editor closing (if we run with --wait)
const
filesToWait
=
this
.
workbenchParams
.
configuration
.
filesToWait
;
if
(
filesToWait
)
{
const
resourcesToWaitFor
=
filesToWait
.
paths
.
map
(
p
=>
URI
.
file
(
p
.
filePath
));
const
waitMarkerFile
=
URI
.
file
(
filesToWait
.
waitMarkerFilePath
);
const
listenerDispose
=
this
.
editor
Part
.
getStacksModel
().
onEditorClosed
(()
=>
this
.
onEditorClosed
(
listenerDispose
,
resourcesToWaitFor
,
waitMarkerFile
));
const
listenerDispose
=
this
.
editor
GroupService
.
getStacksModel
().
onEditorClosed
(()
=>
this
.
onEditorClosed
(
listenerDispose
,
resourcesToWaitFor
,
waitMarkerFile
));
this
.
toUnbind
.
push
(
listenerDispose
);
}
...
...
@@ -1092,7 +1103,7 @@ export class Workbench implements IPartService {
// In wait mode, listen to changes to the editors and wait until the files
// are closed that the user wants to wait for. When this happens we delete
// the wait marker file to signal to the outside that editing is done.
const
stacks
=
this
.
editor
Part
.
getStacksModel
();
const
stacks
=
this
.
editor
GroupService
.
getStacksModel
();
if
(
resourcesToWaitFor
.
every
(
r
=>
!
stacks
.
isOpen
(
r
)))
{
listenerDispose
.
dispose
();
this
.
fileService
.
del
(
waitMarkerFile
).
done
(
null
,
errors
.
onUnexpectedError
);
...
...
@@ -1344,9 +1355,9 @@ export class Workbench implements IPartService {
public
toggleZenMode
(
skipLayout
?:
boolean
):
void
{
this
.
zenMode
.
active
=
!
this
.
zenMode
.
active
;
// Check if zen mode transitioned to full screen and if now we are out of zen mode -> we need to go out of full screen
// Check if zen mode transitioned to full screen and if now we are out of zen mode
// -> we need to go out of full screen (same goes for the centered editor layout)
let
toggleFullScreen
=
false
;
// Same goes for the centered editor layout
if
(
this
.
zenMode
.
active
)
{
const
config
=
this
.
configurationService
.
getValue
<
IZenModeSettings
>
(
'
zenMode
'
);
toggleFullScreen
=
!
browser
.
isFullscreen
()
&&
config
.
fullScreen
;
...
...
@@ -1366,7 +1377,7 @@ export class Workbench implements IPartService {
}
if
(
config
.
hideTabs
)
{
this
.
e
ditorPart
.
hideTabs
(
true
);
this
.
noOpE
ditorPart
.
hideTabs
(
true
);
}
if
(
config
.
centerLayout
)
{
...
...
@@ -1385,8 +1396,8 @@ export class Workbench implements IPartService {
// Status bar and activity bar visibility come from settings -> update their visibility.
this
.
onDidUpdateConfiguration
(
true
);
this
.
e
ditorPart
.
hideTabs
(
false
);
const
activeEditor
=
this
.
editor
Part
.
getActiveEditor
();
this
.
noOpE
ditorPart
.
hideTabs
(
false
);
const
activeEditor
=
this
.
editor
Service
.
getActiveEditor
();
if
(
activeEditor
)
{
activeEditor
.
focus
();
}
...
...
src/vs/workbench/services/editor/common/editorService.ts
浏览文件 @
31f19432
...
...
@@ -6,12 +6,12 @@
'
use strict
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
createDecorator
,
ServiceIdentifier
,
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
createDecorator
,
ServiceIdentifier
,
IInstantiationService
,
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IEditorService
,
IEditor
,
IEditorInput
,
IEditorOptions
,
ITextEditorOptions
,
Position
,
Direction
,
IResourceInput
,
IResourceDiffInput
,
IResourceSideBySideInput
,
IUntitledResourceInput
}
from
'
vs/platform/editor/common/editor
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
basename
}
from
'
vs/base/common/paths
'
;
import
{
EditorInput
,
EditorOptions
,
TextEditorOptions
,
Extensions
as
EditorExtensions
,
SideBySideEditorInput
,
IFileEditorInput
,
IFileInputFactory
,
IEditorInputFactoryRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorInput
,
EditorOptions
,
TextEditorOptions
,
Extensions
as
EditorExtensions
,
SideBySideEditorInput
,
IFileEditorInput
,
IFileInputFactory
,
IEditorInputFactoryRegistry
,
IEditorStacksModel
,
IEditorOpeningEvent
,
IEditorGroup
,
IStacksModelChangeEvent
,
IEditorCloseEvent
,
IEditorIdentifier
}
from
'
vs/workbench/common/editor
'
;
import
{
ResourceEditorInput
}
from
'
vs/workbench/common/editor/resourceEditorInput
'
;
import
{
IUntitledEditorService
}
from
'
vs/workbench/services/untitled/common/untitledEditorService
'
;
import
{
DiffEditorInput
}
from
'
vs/workbench/common/editor/diffEditorInput
'
;
...
...
@@ -19,11 +19,12 @@ import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace
import
*
as
nls
from
'
vs/nls
'
;
import
{
getPathLabel
}
from
'
vs/base/common/labels
'
;
import
{
ResourceMap
}
from
'
vs/base/common/map
'
;
import
{
once
}
from
'
vs/base/common/event
'
;
import
{
Event
,
Emitter
,
once
}
from
'
vs/base/common/event
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IFileService
}
from
'
vs/platform/files/common/files
'
;
import
{
DataUriEditorInput
}
from
'
vs/workbench/common/editor/dataUriEditorInput
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
IEditorGroupService
,
IEditorTabOptions
,
GroupArrangement
}
from
'
vs/workbench/services/group/common/groupService
'
;
export
const
IWorkbenchEditorService
=
createDecorator
<
IWorkbenchEditorService
>
(
'
editorService
'
);
...
...
@@ -138,6 +139,144 @@ export interface IEditorPart {
getActiveEditorInput
():
IEditorInput
;
}
// TODO@next temporary
export
class
NoOpEditorPart
implements
IEditorPart
,
IEditorGroupService
{
_serviceBrand
:
ServiceIdentifier
<
any
>
;
stacks
:
IEditorStacksModel
;
constructor
(
private
instantiationService
:
IInstantiationService
)
{
this
.
stacks
=
new
NoOpEditorStacksModel
();
}
onEditorsChanged
:
Event
<
void
>
=
new
Emitter
<
void
>
().
event
;
onEditorOpening
:
Event
<
IEditorOpeningEvent
>
=
new
Emitter
<
IEditorOpeningEvent
>
().
event
;
onEditorOpenFail
:
Event
<
IEditorInput
>
=
new
Emitter
<
IEditorInput
>
().
event
;
onEditorGroupMoved
:
Event
<
void
>
=
new
Emitter
<
void
>
().
event
;
onGroupOrientationChanged
:
Event
<
void
>
=
new
Emitter
<
void
>
().
event
;
onTabOptionsChanged
:
Event
<
IEditorTabOptions
>
=
new
Emitter
<
IEditorTabOptions
>
().
event
;
focusGroup
(...
args
:
any
[])
{
}
activateGroup
(...
args
:
any
[])
{
}
moveGroup
(...
args
:
any
[])
{
}
arrangeGroups
(
arrangement
:
GroupArrangement
):
void
{
}
setGroupOrientation
(
orientation
:
'
vertical
'
|
'
horizontal
'
):
void
{
}
getGroupOrientation
():
'
vertical
'
|
'
horizontal
'
{
return
'
vertical
'
;
}
resizeGroup
(
position
:
Position
,
groupSizeChange
:
number
):
void
{
}
pinEditor
(...
args
:
any
[])
{
}
moveEditor
(...
args
:
any
[])
{
}
getStacksModel
():
IEditorStacksModel
{
return
this
.
stacks
;
}
getTabOptions
():
IEditorTabOptions
{
return
Object
.
create
(
null
);
}
invokeWithinEditorContext
<
T
>
(
fn
:
(
accessor
:
ServicesAccessor
)
=>
T
):
T
{
return
this
.
instantiationService
.
invokeFunction
(
fn
);
}
openEditor
(...
args
:
any
[])
{
return
TPromise
.
as
(
void
0
);
}
openEditors
(...
args
:
any
[])
{
return
TPromise
.
as
([]);
}
replaceEditors
(
editors
:
{
toReplace
:
IEditorInput
;
replaceWith
:
IEditorInput
;
options
?:
IEditorOptions
|
ITextEditorOptions
;
}[],
position
?:
Position
):
TPromise
<
IEditor
[],
any
>
{
return
TPromise
.
as
(
void
0
);
}
closeEditors
(...
args
:
any
[])
{
return
TPromise
.
as
(
void
0
);
}
closeEditor
(
position
:
Position
,
input
:
IEditorInput
):
TPromise
<
void
,
any
>
{
return
TPromise
.
as
(
void
0
);
}
getActiveEditor
():
IEditor
{
return
null
;
}
getVisibleEditors
():
IEditor
[]
{
return
[];
}
getActiveEditorInput
():
IEditorInput
{
return
null
;
}
hideTabs
(...
args
:
any
[]):
void
{
}
hasEditorsToRestore
():
boolean
{
return
false
;
}
restoreEditors
():
any
{
return
TPromise
.
as
([]);
}
}
class
NoOpEditorStacksModel
implements
IEditorStacksModel
{
onModelChanged
:
Event
<
IStacksModelChangeEvent
>
=
new
Emitter
<
IStacksModelChangeEvent
>
().
event
;
onWillCloseEditor
:
Event
<
IEditorCloseEvent
>
=
new
Emitter
<
IEditorCloseEvent
>
().
event
;
onEditorClosed
:
Event
<
IEditorCloseEvent
>
=
new
Emitter
<
IEditorCloseEvent
>
().
event
;
groups
:
IEditorGroup
[]
=
[];
activeGroup
:
IEditorGroup
;
isActive
(
group
:
IEditorGroup
):
boolean
{
return
false
;
}
getGroup
(
id
:
number
):
IEditorGroup
{
return
null
;
}
positionOfGroup
(
group
:
IEditorGroup
):
Position
{
return
Position
.
ONE
;
}
groupAt
(
position
:
Position
):
IEditorGroup
{
return
null
;
}
next
(
jumpGroups
:
boolean
,
cycleAtEnd
?:
boolean
):
IEditorIdentifier
{
return
null
;
}
previous
(
jumpGroups
:
boolean
,
cycleAtStart
?:
boolean
):
IEditorIdentifier
{
return
null
;
}
last
():
IEditorIdentifier
{
return
null
;
}
isOpen
(
resource
:
URI
):
boolean
{
return
false
;
}
toString
():
string
{
return
''
;
}
}
type
ICachedEditorInput
=
ResourceEditorInput
|
IFileEditorInput
|
DataUriEditorInput
;
export
class
WorkbenchEditorService
implements
IWorkbenchEditorService
{
...
...
src/vs/workbench/services/editor/common/nextEditorService.ts
0 → 100644
浏览文件 @
31f19432
/*---------------------------------------------------------------------------------------------
* 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
{
createDecorator
,
ServiceIdentifier
}
from
'
vs/platform/instantiation/common/instantiation
'
;
export
const
INextEditorService
=
createDecorator
<
INextWorkbenchEditorService
>
(
'
nextWorkbenchEditorService
'
);
export
interface
INextWorkbenchEditorService
{
_serviceBrand
:
ServiceIdentifier
<
any
>
;
}
\ No newline at end of file
src/vs/workbench/services/group/common/nextGroupService.ts
0 → 100644
浏览文件 @
31f19432
/*---------------------------------------------------------------------------------------------
* 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
{
createDecorator
,
ServiceIdentifier
}
from
'
vs/platform/instantiation/common/instantiation
'
;
export
const
INextEditorGroupService
=
createDecorator
<
INextEditorGroupService
>
(
'
nextEditorGroupService
'
);
export
interface
INextEditorGroupService
{
_serviceBrand
:
ServiceIdentifier
<
any
>
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录