Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e60e6df9
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,发现更多精彩内容 >>
提交
e60e6df9
编写于
4月 13, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moving code action contributions to own file
上级
10e51c91
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
10 deletion
+18
-10
src/vs/editor/contrib/codeAction/codeActionCommands.ts
src/vs/editor/contrib/codeAction/codeActionCommands.ts
+3
-9
src/vs/editor/contrib/codeAction/codeActionContributions.ts
src/vs/editor/contrib/codeAction/codeActionContributions.ts
+14
-0
src/vs/editor/editor.all.ts
src/vs/editor/editor.all.ts
+1
-1
未找到文件。
src/vs/editor/contrib/codeAction/codeActionCommands.ts
浏览文件 @
e60e6df9
...
...
@@ -7,7 +7,7 @@ import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
ICodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
EditorAction
,
EditorCommand
,
ServicesAccessor
,
registerEditorAction
,
registerEditorCommand
,
registerEditorContribution
}
from
'
vs/editor/browser/editorExtensions
'
;
import
{
EditorAction
,
EditorCommand
,
ServicesAccessor
}
from
'
vs/editor/browser/editorExtensions
'
;
import
{
BulkEdit
}
from
'
vs/editor/browser/services/bulkEdit
'
;
import
{
IEditorContribution
}
from
'
vs/editor/common/editorCommon
'
;
import
{
EditorContextKeys
}
from
'
vs/editor/common/editorContextKeys
'
;
...
...
@@ -22,7 +22,7 @@ import { IFileService } from 'vs/platform/files/common/files';
import
{
optional
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybinding
'
;
import
{
IMarkerService
}
from
'
vs/platform/markers/common/markers
'
;
import
{
HAS_REFACTOR_PROVIDER
,
HAS_SOURCE_ACTION_PROVIDER
,
CodeActionsComputeEvent
,
CodeActionModel
}
from
'
./codeActionModel
'
;
import
{
CodeActionModel
,
CodeActionsComputeEvent
,
HAS_REFACTOR_PROVIDER
,
HAS_SOURCE_ACTION_PROVIDER
}
from
'
./codeActionModel
'
;
import
{
CodeActionAutoApply
,
CodeActionFilter
,
CodeActionKind
}
from
'
./codeActionTrigger
'
;
import
{
CodeActionContextMenu
}
from
'
./codeActionWidget
'
;
import
{
LightBulbWidget
}
from
'
./lightBulbWidget
'
;
...
...
@@ -286,10 +286,4 @@ export class SourceAction extends EditorAction {
{
kind
:
CodeActionKind
.
Source
,
includeSourceActions
:
true
},
CodeActionAutoApply
.
Never
);
}
}
registerEditorContribution
(
QuickFixController
);
registerEditorAction
(
QuickFixAction
);
registerEditorAction
(
RefactorAction
);
registerEditorAction
(
SourceAction
);
registerEditorCommand
(
new
CodeActionCommand
());
}
\ No newline at end of file
src/vs/editor/contrib/codeAction/codeActionContributions.ts
0 → 100644
浏览文件 @
e60e6df9
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
registerEditorAction
,
registerEditorCommand
,
registerEditorContribution
}
from
'
vs/editor/browser/editorExtensions
'
;
import
{
SourceAction
,
QuickFixController
,
QuickFixAction
,
CodeActionCommand
,
RefactorAction
}
from
'
vs/editor/contrib/codeAction/codeActionCommands
'
;
registerEditorContribution
(
QuickFixController
);
registerEditorAction
(
QuickFixAction
);
registerEditorAction
(
RefactorAction
);
registerEditorAction
(
SourceAction
);
registerEditorCommand
(
new
CodeActionCommand
());
src/vs/editor/editor.all.ts
浏览文件 @
e60e6df9
...
...
@@ -32,7 +32,7 @@ import 'vs/editor/contrib/linesOperations/linesOperations';
import
'
vs/editor/contrib/links/links
'
;
import
'
vs/editor/contrib/multicursor/multicursor
'
;
import
'
vs/editor/contrib/parameterHints/parameterHints
'
;
import
'
vs/editor/contrib/codeAction/codeActionCo
mmand
s
'
;
import
'
vs/editor/contrib/codeAction/codeActionCo
ntribution
s
'
;
import
'
vs/editor/contrib/referenceSearch/referenceSearch
'
;
import
'
vs/editor/contrib/rename/rename
'
;
import
'
vs/editor/contrib/smartSelect/smartSelect
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录