Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
eb4760d2
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,发现更多精彩内容 >>
提交
eb4760d2
编写于
9月 25, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Bad contribution registration (fixes #34952)
上级
e9bc343c
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
42 addition
and
38 deletion
+42
-38
src/vs/workbench/browser/parts/editor/baseEditor.ts
src/vs/workbench/browser/parts/editor/baseEditor.ts
+5
-1
src/vs/workbench/browser/parts/editor/editor.contribution.ts
src/vs/workbench/browser/parts/editor/editor.contribution.ts
+2
-2
src/vs/workbench/browser/parts/editor/editorPart.ts
src/vs/workbench/browser/parts/editor/editorPart.ts
+2
-2
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
+2
-2
src/vs/workbench/common/editor.ts
src/vs/workbench/common/editor.ts
+0
-4
src/vs/workbench/common/editor/editorStacksModel.ts
src/vs/workbench/common/editor/editorStacksModel.ts
+5
-1
src/vs/workbench/electron-browser/workbench.ts
src/vs/workbench/electron-browser/workbench.ts
+2
-1
src/vs/workbench/parts/extensions/electron-browser/extensions.contribution.ts
...ts/extensions/electron-browser/extensions.contribution.ts
+2
-2
src/vs/workbench/parts/files/browser/files.contribution.ts
src/vs/workbench/parts/files/browser/files.contribution.ts
+2
-2
src/vs/workbench/parts/html/browser/html.contribution.ts
src/vs/workbench/parts/html/browser/html.contribution.ts
+2
-2
src/vs/workbench/parts/preferences/browser/preferences.contribution.ts
...nch/parts/preferences/browser/preferences.contribution.ts
+2
-2
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
.../workbench/parts/preferences/browser/preferencesEditor.ts
+2
-2
src/vs/workbench/parts/update/electron-browser/update.contribution.ts
...ench/parts/update/electron-browser/update.contribution.ts
+2
-2
src/vs/workbench/parts/welcome/page/electron-browser/welcomePage.contribution.ts
...welcome/page/electron-browser/welcomePage.contribution.ts
+2
-4
src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThrough.contribution.ts
.../walkThrough/electron-browser/walkThrough.contribution.ts
+2
-2
src/vs/workbench/services/editor/browser/editorService.ts
src/vs/workbench/services/editor/browser/editorService.ts
+2
-2
src/vs/workbench/services/history/browser/history.ts
src/vs/workbench/services/history/browser/history.ts
+2
-1
src/vs/workbench/test/browser/parts/editor/baseEditor.test.ts
...vs/workbench/test/browser/parts/editor/baseEditor.test.ts
+2
-2
src/vs/workbench/test/browser/parts/editor/editorStacksModel.test.ts
...bench/test/browser/parts/editor/editorStacksModel.test.ts
+2
-2
未找到文件。
src/vs/workbench/browser/parts/editor/baseEditor.ts
浏览文件 @
eb4760d2
...
...
@@ -9,7 +9,7 @@ import types = require('vs/base/common/types');
import
{
Builder
}
from
'
vs/base/browser/builder
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
Panel
}
from
'
vs/workbench/browser/panel
'
;
import
{
EditorInput
,
EditorOptions
,
IEditorDescriptor
,
IEditorInputFactory
,
IEditorRegistry
,
Extensions
,
IFileInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorInput
,
EditorOptions
,
IEditorDescriptor
,
IEditorInputFactory
,
IEditorRegistry
,
IFileInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditor
,
Position
}
from
'
vs/platform/editor/common/editor
'
;
import
{
IInstantiationService
,
IConstructorSignature0
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
SyncDescriptor
,
AsyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
...
...
@@ -302,4 +302,8 @@ class EditorRegistry implements IEditorRegistry {
}
}
export
const
Extensions
=
{
Editors
:
'
workbench.contributions.editors
'
};
Registry
.
add
(
Extensions
.
Editors
,
new
EditorRegistry
());
\ No newline at end of file
src/vs/workbench/browser/parts/editor/editor.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -10,8 +10,8 @@ import URI from 'vs/base/common/uri';
import
{
Action
,
IAction
}
from
'
vs/base/common/actions
'
;
import
{
IEditorQuickOpenEntry
,
IQuickOpenRegistry
,
Extensions
as
QuickOpenExtensions
,
QuickOpenHandlerDescriptor
}
from
'
vs/workbench/browser/quickopen
'
;
import
{
StatusbarItemDescriptor
,
StatusbarAlignment
,
IStatusbarRegistry
,
Extensions
as
StatusExtensions
}
from
'
vs/workbench/browser/parts/statusbar/statusbar
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
IEditorRegistry
,
Extensions
as
EditorExtensions
,
IEditorInputFactory
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
IEditorRegistry
,
IEditorInputFactory
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
TextResourceEditor
}
from
'
vs/workbench/browser/parts/editor/textResourceEditor
'
;
import
{
SideBySideEditor
}
from
'
vs/workbench/browser/parts/editor/sideBySideEditor
'
;
import
{
DiffEditorInput
}
from
'
vs/workbench/common/editor/diffEditorInput
'
;
...
...
src/vs/workbench/browser/parts/editor/editorPart.ts
浏览文件 @
eb4760d2
...
...
@@ -20,8 +20,8 @@ import { getCodeEditor } from 'vs/editor/common/services/codeEditorService';
import
{
toErrorMessage
}
from
'
vs/base/common/errorMessage
'
;
import
{
Scope
as
MementoScope
}
from
'
vs/workbench/common/memento
'
;
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
import
{
BaseEditor
,
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
E
xtensions
as
EditorExtensions
,
E
ditorInput
,
EditorOptions
,
ConfirmResult
,
IWorkbenchEditorConfiguration
,
IEditorDescriptor
,
TextEditorOptions
,
SideBySideEditorInput
,
TextCompareEditorVisible
,
TEXT_DIFF_EDITOR_ID
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
EditorInput
,
EditorOptions
,
ConfirmResult
,
IWorkbenchEditorConfiguration
,
IEditorDescriptor
,
TextEditorOptions
,
SideBySideEditorInput
,
TextCompareEditorVisible
,
TEXT_DIFF_EDITOR_ID
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorGroupsControl
,
Rochade
,
IEditorGroupsControl
,
ProgressState
}
from
'
vs/workbench/browser/parts/editor/editorGroupsControl
'
;
import
{
WorkbenchProgressService
}
from
'
vs/workbench/services/progress/browser/progressService
'
;
import
{
IEditorGroupService
,
GroupOrientation
,
GroupArrangement
,
IEditorTabOptions
,
IMoveOptions
}
from
'
vs/workbench/services/group/common/groupService
'
;
...
...
src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
浏览文件 @
eb4760d2
...
...
@@ -9,8 +9,8 @@ import * as DOM from 'vs/base/browser/dom';
import
{
Dimension
,
Builder
}
from
'
vs/base/browser/builder
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
IEditorRegistry
,
E
xtensions
as
EditorExtensions
,
E
ditorInput
,
EditorOptions
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
EditorInput
,
EditorOptions
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorControl
,
Position
,
IEditor
}
from
'
vs/platform/editor/common/editor
'
;
import
{
VSash
}
from
'
vs/base/browser/ui/sash/sash
'
;
...
...
src/vs/workbench/common/editor.ts
浏览文件 @
eb4760d2
...
...
@@ -33,10 +33,6 @@ export interface IEditorDescriptor {
describes
(
obj
:
any
):
boolean
;
}
export
const
Extensions
=
{
Editors
:
'
workbench.contributions.editors
'
};
/**
* Text diff editor id.
*/
...
...
src/vs/workbench/common/editor/editorStacksModel.ts
浏览文件 @
eb4760d2
...
...
@@ -6,8 +6,12 @@
'
use strict
'
;
import
Event
,
{
Emitter
,
once
}
from
'
vs/base/common/event
'
;
import
{
IEditorRegistry
,
E
xtensions
,
E
ditorInput
,
toResource
,
IEditorStacksModel
,
IEditorGroup
,
IEditorIdentifier
,
IEditorCloseEvent
,
GroupIdentifier
,
IStacksModelChangeEvent
,
IWorkbenchEditorConfiguration
,
EditorOpenPositioning
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditorRegistry
,
EditorInput
,
toResource
,
IEditorStacksModel
,
IEditorGroup
,
IEditorIdentifier
,
IEditorCloseEvent
,
GroupIdentifier
,
IStacksModelChangeEvent
,
IWorkbenchEditorConfiguration
,
EditorOpenPositioning
,
SideBySideEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
URI
from
'
vs/base/common/uri
'
;
// TODO@Ben fix layering issues
// tslint:disable-next-line:import-patterns
// tslint:disable-next-line:layering
import
{
Extensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
...
...
src/vs/workbench/electron-browser/workbench.ts
浏览文件 @
eb4760d2
...
...
@@ -26,7 +26,8 @@ import { Registry } from 'vs/platform/registry/common/platform';
import
{
isWindows
,
isLinux
,
isMacintosh
}
from
'
vs/base/common/platform
'
;
import
{
Position
as
EditorPosition
,
IResourceDiffInput
,
IUntitledResourceInput
,
IEditor
,
IResourceInput
}
from
'
vs/platform/editor/common/editor
'
;
import
{
IWorkbenchContributionsRegistry
,
Extensions
as
WorkbenchExtensions
}
from
'
vs/workbench/common/contributions
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
HistoryService
}
from
'
vs/workbench/services/history/browser/history
'
;
import
{
ActivitybarPart
}
from
'
vs/workbench/browser/parts/activitybar/activitybarPart
'
;
import
{
EditorPart
}
from
'
vs/workbench/browser/parts/editor/editorPart
'
;
...
...
src/vs/workbench/parts/extensions/electron-browser/extensions.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -16,8 +16,7 @@ import { IWorkbenchActionRegistry, Extensions as WorkbenchActionExtensions } fro
import
{
ExtensionTipsService
}
from
'
vs/workbench/parts/extensions/electron-browser/extensionTipsService
'
;
import
{
IWorkbenchContributionsRegistry
,
Extensions
as
WorkbenchExtensions
}
from
'
vs/workbench/common/contributions
'
;
import
{
IOutputChannelRegistry
,
Extensions
as
OutputExtensions
}
from
'
vs/workbench/parts/output/common/output
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
VIEWLET_ID
,
IExtensionsWorkbenchService
}
from
'
../common/extensions
'
;
import
{
ExtensionsWorkbenchService
}
from
'
vs/workbench/parts/extensions/node/extensionsWorkbenchService
'
;
...
...
@@ -39,6 +38,7 @@ import { CommandsRegistry } from 'vs/platform/commands/common/commands';
import
{
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
KeymapExtensions
,
BetterMergeDisabled
}
from
'
vs/workbench/parts/extensions/electron-browser/extensionsUtils
'
;
import
{
adoptToGalleryExtensionId
}
from
'
vs/platform/extensionManagement/common/extensionManagementUtil
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
// Singletons
registerSingleton
(
IExtensionGalleryService
,
ExtensionGalleryService
);
...
...
src/vs/workbench/parts/files/browser/files.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -13,9 +13,9 @@ import { Registry } from 'vs/platform/registry/common/platform';
import
{
IConfigurationRegistry
,
Extensions
as
ConfigurationExtensions
,
ConfigurationScope
}
from
'
vs/platform/configuration/common/configurationRegistry
'
;
import
{
IWorkbenchActionRegistry
,
Extensions
as
ActionExtensions
}
from
'
vs/workbench/common/actions
'
;
import
{
IWorkbenchContributionsRegistry
,
Extensions
as
WorkbenchExtensions
}
from
'
vs/workbench/common/contributions
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
,
IEditorInputFactory
,
EditorInput
,
IFileEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditorRegistry
,
IEditorInputFactory
,
EditorInput
,
IFileEditorInput
}
from
'
vs/workbench/common/editor
'
;
import
{
AutoSaveConfiguration
,
HotExitConfiguration
,
SUPPORTED_ENCODINGS
}
from
'
vs/platform/files/common/files
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
FILE_EDITOR_INPUT_ID
,
VIEWLET_ID
,
SortOrderConfiguration
}
from
'
vs/workbench/parts/files/common/files
'
;
import
{
FileEditorTracker
}
from
'
vs/workbench/parts/files/common/editors/fileEditorTracker
'
;
import
{
SaveErrorHandler
}
from
'
vs/workbench/parts/files/browser/saveErrorHandler
'
;
...
...
src/vs/workbench/parts/html/browser/html.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -14,8 +14,8 @@ import { Position as EditorPosition } from 'vs/platform/editor/common/editor';
import
{
HtmlInput
,
HtmlInputOptions
}
from
'
../common/htmlInput
'
;
import
{
HtmlPreviewPart
}
from
'
vs/workbench/parts/html/browser/htmlPreviewPart
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
IEditorGroupService
}
from
'
vs/workbench/services/group/common/groupService
'
;
import
{
MenuRegistry
}
from
'
vs/platform/actions/common/actions
'
;
...
...
src/vs/workbench/parts/preferences/browser/preferences.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -9,8 +9,8 @@ import URI from 'vs/base/common/uri';
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
KeybindingsRegistry
}
from
'
vs/platform/keybinding/common/keybindingsRegistry
'
;
import
{
IWorkbenchActionRegistry
,
Extensions
}
from
'
vs/workbench/common/actions
'
;
import
{
EditorInput
,
IEditorRegistry
,
Extensions
as
EditorExtensions
,
IEditorInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
IEditorRegistry
,
IEditorInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
KeyMod
,
KeyChord
,
KeyCode
}
from
'
vs/base/common/keyCodes
'
;
...
...
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
浏览文件 @
eb4760d2
...
...
@@ -12,8 +12,8 @@ import { Dimension, Builder } from 'vs/base/browser/builder';
import
{
ArrayNavigator
,
INavigator
}
from
'
vs/base/common/iterator
'
;
import
{
Disposable
,
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
KeyMod
,
KeyCode
}
from
'
vs/base/common/keyCodes
'
;
import
{
toResource
,
SideBySideEditorInput
,
EditorOptions
,
EditorInput
,
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
toResource
,
SideBySideEditorInput
,
EditorOptions
,
EditorInput
,
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
ResourceEditorModel
}
from
'
vs/workbench/common/editor/resourceEditorModel
'
;
import
{
IEditorControl
,
Position
,
Verbosity
}
from
'
vs/platform/editor/common/editor
'
;
import
{
ResourceEditorInput
}
from
'
vs/workbench/common/editor/resourceEditorInput
'
;
...
...
src/vs/workbench/parts/update/electron-browser/update.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -11,9 +11,9 @@ import { Registry } from 'vs/platform/registry/common/platform';
import
{
IWorkbenchContributionsRegistry
,
Extensions
as
WorkbenchExtensions
}
from
'
vs/workbench/common/contributions
'
;
import
{
ReleaseNotesEditor
}
from
'
vs/workbench/parts/update/electron-browser/releaseNotesEditor
'
;
import
{
ReleaseNotesInput
}
from
'
vs/workbench/parts/update/electron-browser/releaseNotesInput
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IGlobalActivityRegistry
,
GlobalActivityExtensions
}
from
'
vs/workbench/common/activity
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
IWorkbenchActionRegistry
,
Extensions
as
ActionExtensions
}
from
'
vs/workbench/common/actions
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
...
...
src/vs/workbench/parts/welcome/page/electron-browser/welcomePage.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -11,10 +11,8 @@ import { WelcomePageContribution, WelcomePageAction, WelcomeInputFactory } from
import
{
IWorkbenchActionRegistry
,
Extensions
as
ActionExtensions
}
from
'
vs/workbench/common/actions
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
import
{
IConfigurationRegistry
,
Extensions
as
ConfigurationExtensions
}
from
'
vs/platform/configuration/common/configurationRegistry
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
// TODO@bpasero - remove, fix dependencies in editor land
import
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
Registry
.
as
<
IConfigurationRegistry
>
(
ConfigurationExtensions
.
Configuration
)
.
registerConfiguration
({
...
...
src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThrough.contribution.ts
浏览文件 @
eb4760d2
...
...
@@ -11,8 +11,8 @@ import { WalkThroughArrowUpAction, WalkThroughArrowDownAction, WalkThroughPageUp
import
{
WalkThroughContentProvider
,
WalkThroughSnippetContentProvider
}
from
'
vs/workbench/parts/welcome/walkThrough/node/walkThroughContentProvider
'
;
import
{
EditorWalkThroughAction
,
EditorWalkThroughInputFactory
}
from
'
vs/workbench/parts/welcome/walkThrough/electron-browser/editor/editorWalkThrough
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorDescriptor
,
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorRegistry
}
from
'
vs/workbench/common/editor
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
IWorkbenchActionRegistry
,
Extensions
}
from
'
vs/workbench/common/actions
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
...
...
src/vs/workbench/services/editor/browser/editorService.ts
浏览文件 @
eb4760d2
...
...
@@ -9,8 +9,8 @@ import URI from 'vs/base/common/uri';
import
network
=
require
(
'
vs/base/common/network
'
);
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
basename
,
dirname
}
from
'
vs/base/common/paths
'
;
import
{
BaseEditor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
EditorOptions
,
TextEditorOptions
,
IEditorRegistry
,
Extensions
,
SideBySideEditorInput
,
IFileEditorInput
,
IFileInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
Extensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
EditorOptions
,
TextEditorOptions
,
IEditorRegistry
,
SideBySideEditorInput
,
IFileEditorInput
,
IFileInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
ResourceEditorInput
}
from
'
vs/workbench/common/editor/resourceEditorInput
'
;
import
{
IUntitledEditorService
,
UNTITLED_SCHEMA
}
from
'
vs/workbench/services/untitled/common/untitledEditorService
'
;
import
{
IWorkbenchEditorService
,
IResourceInputType
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
src/vs/workbench/services/history/browser/history.ts
浏览文件 @
eb4760d2
...
...
@@ -10,7 +10,7 @@ import errors = require('vs/base/common/errors');
import
URI
from
'
vs/base/common/uri
'
;
import
{
IEditor
}
from
'
vs/editor/common/editorCommon
'
;
import
{
IEditor
as
IBaseEditor
,
IEditorInput
,
ITextEditorOptions
,
IResourceInput
,
ITextEditorSelection
,
Position
as
GroupPosition
}
from
'
vs/platform/editor/common/editor
'
;
import
{
EditorInput
,
IEditorCloseEvent
,
IEditorRegistry
,
Extensions
,
toResource
,
IEditorGroup
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorInput
,
IEditorCloseEvent
,
IEditorRegistry
,
toResource
,
IEditorGroup
}
from
'
vs/workbench/common/editor
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
IHistoryService
}
from
'
vs/workbench/services/history/common/history
'
;
import
{
FileChangesEvent
,
IFileService
,
FileChangeType
}
from
'
vs/platform/files/common/files
'
;
...
...
@@ -30,6 +30,7 @@ import { parse, IExpression } from 'vs/base/common/glob';
import
{
ICursorPositionChangedEvent
}
from
'
vs/editor/common/controller/cursorEvents
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ResourceGlobMatcher
}
from
'
vs/workbench/common/resources
'
;
import
{
Extensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
/**
* Stores the selection & view state of an editor and allows to compare it to other selection states.
...
...
src/vs/workbench/test/browser/parts/editor/baseEditor.test.ts
浏览文件 @
eb4760d2
...
...
@@ -6,8 +6,8 @@
'
use strict
'
;
import
*
as
assert
from
'
assert
'
;
import
{
BaseEditor
,
EditorDescriptor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
EditorOptions
,
Extensions
,
IEditorRegistry
,
IEditorInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
,
EditorDescriptor
,
Extensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
EditorInput
,
EditorOptions
,
IEditorRegistry
,
IEditorInputFactory
}
from
'
vs/workbench/common/editor
'
;
import
{
TestInstantiationService
}
from
'
vs/platform/instantiation/test/common/instantiationServiceMock
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
*
as
Platform
from
'
vs/platform/registry/common/platform
'
;
...
...
src/vs/workbench/test/browser/parts/editor/editorStacksModel.test.ts
浏览文件 @
eb4760d2
...
...
@@ -7,7 +7,7 @@
import
*
as
assert
from
'
assert
'
;
import
{
EditorStacksModel
,
EditorGroup
,
EditorCloseEvent
}
from
'
vs/workbench/common/editor/editorStacksModel
'
;
import
{
EditorInput
,
IFileEditorInput
,
IEditorIdentifier
,
IEditorGroup
,
IStacksModelChangeEvent
,
IEditorRegistry
,
Extensions
as
EditorExtensions
,
IEditorInputFactory
,
IEditorCloseEvent
}
from
'
vs/workbench/common/editor
'
;
import
{
EditorInput
,
IFileEditorInput
,
IEditorIdentifier
,
IEditorGroup
,
IStacksModelChangeEvent
,
IEditorRegistry
,
IEditorInputFactory
,
IEditorCloseEvent
}
from
'
vs/workbench/common/editor
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
{
TestStorageService
,
TestLifecycleService
,
TestContextService
}
from
'
vs/workbench/test/workbenchTestServices
'
;
import
{
TestConfigurationService
}
from
'
vs/platform/configuration/test/common/testConfigurationService
'
;
...
...
@@ -22,7 +22,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
NullTelemetryService
}
from
'
vs/platform/telemetry/common/telemetryUtils
'
;
import
{
DiffEditorInput
}
from
'
vs/workbench/common/editor/diffEditorInput
'
;
import
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
Extensions
as
EditorExtensions
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
function
create
():
EditorStacksModel
{
let
inst
=
new
TestInstantiationService
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录