Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
016d83cd
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,发现更多精彩内容 >>
提交
016d83cd
编写于
4月 13, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Organize imports, removing use strict
上级
1e418870
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
25 addition
and
31 deletion
+25
-31
src/vs/editor/contrib/codeAction/codeAction.ts
src/vs/editor/contrib/codeAction/codeAction.ts
+8
-9
src/vs/editor/contrib/codeAction/codeActionCommands.ts
src/vs/editor/contrib/codeAction/codeActionCommands.ts
+2
-3
src/vs/editor/contrib/codeAction/codeActionModel.ts
src/vs/editor/contrib/codeAction/codeActionModel.ts
+1
-2
src/vs/editor/contrib/codeAction/codeActionWidget.ts
src/vs/editor/contrib/codeAction/codeActionWidget.ts
+7
-9
src/vs/editor/contrib/codeAction/lightBulbWidget.ts
src/vs/editor/contrib/codeAction/lightBulbWidget.ts
+7
-8
未找到文件。
src/vs/editor/contrib/codeAction/codeAction.ts
浏览文件 @
016d83cd
...
...
@@ -2,19 +2,18 @@
* 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
URI
from
'
vs/base/common/uri
'
;
import
{
ITextModel
}
from
'
vs/editor/common/model
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
CodeActionProviderRegistry
,
CodeAction
}
from
'
vs/editor/common/modes
'
;
import
{
isFalsyOrEmpty
,
mergeSort
}
from
'
vs/base/common/arrays
'
;
import
{
asWinJsPromise
}
from
'
vs/base/common/async
'
;
import
{
illegalArgument
,
onUnexpectedExternalError
}
from
'
vs/base/common/errors
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
onUnexpectedExternalError
,
illegalArgument
}
from
'
vs/base/common/errors
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
registerLanguageCommand
}
from
'
vs/editor/browser/editorExtensions
'
;
import
{
isFalsyOrEmpty
,
mergeSort
}
from
'
vs/base/common/arrays
'
;
import
{
CodeActionKind
,
CodeActionFilter
}
from
'
./codeActionTrigger
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
ITextModel
}
from
'
vs/editor/common/model
'
;
import
{
CodeAction
,
CodeActionProviderRegistry
}
from
'
vs/editor/common/modes
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
CodeActionFilter
,
CodeActionKind
}
from
'
./codeActionTrigger
'
;
export
function
getCodeActions
(
model
:
ITextModel
,
range
:
Range
,
filter
?:
CodeActionFilter
):
TPromise
<
CodeAction
[]
>
{
...
...
src/vs/editor/contrib/codeAction/codeActionCommands.ts
浏览文件 @
016d83cd
...
...
@@ -2,7 +2,6 @@
* 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
{
KeyCode
,
KeyMod
}
from
'
vs/base/common/keyCodes
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -23,10 +22,10 @@ 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
,
QuickFixComputeEvent
,
QuickFixModel
}
from
'
./codeActionModel
'
;
import
{
CodeActionAutoApply
,
CodeActionFilter
,
CodeActionKind
}
from
'
./codeActionTrigger
'
;
import
{
LightBulbWidget
}
from
'
./lightBulbWidget
'
;
import
{
QuickFixComputeEvent
,
QuickFixModel
,
HAS_REFACTOR_PROVIDER
,
HAS_SOURCE_ACTION_PROVIDER
}
from
'
./codeActionModel
'
;
import
{
QuickFixContextMenu
}
from
'
./codeActionWidget
'
;
import
{
LightBulbWidget
}
from
'
./lightBulbWidget
'
;
export
class
QuickFixController
implements
IEditorContribution
{
...
...
src/vs/editor/contrib/codeAction/codeActionModel.ts
浏览文件 @
016d83cd
...
...
@@ -2,7 +2,6 @@
* 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
{
Emitter
,
Event
,
debounceEvent
}
from
'
vs/base/common/event
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -15,8 +14,8 @@ import { Selection } from 'vs/editor/common/core/selection';
import
{
CodeAction
,
CodeActionProviderRegistry
}
from
'
vs/editor/common/modes
'
;
import
{
IContextKey
,
IContextKeyService
,
RawContextKey
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IMarkerService
}
from
'
vs/platform/markers/common/markers
'
;
import
{
CodeActionKind
,
CodeActionTrigger
}
from
'
./codeActionTrigger
'
;
import
{
getCodeActions
}
from
'
./codeAction
'
;
import
{
CodeActionKind
,
CodeActionTrigger
}
from
'
./codeActionTrigger
'
;
export
const
HAS_REFACTOR_PROVIDER
=
new
RawContextKey
<
boolean
>
(
'
hasRefactorProvider
'
,
false
);
export
const
HAS_SOURCE_ACTION_PROVIDER
=
new
RawContextKey
<
boolean
>
(
'
hasSourceActionProvider
'
,
false
);
...
...
src/vs/editor/contrib/codeAction/codeActionWidget.ts
浏览文件 @
016d83cd
...
...
@@ -3,19 +3,17 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
always
}
from
'
vs/base/common/async
'
;
import
{
getDomNodePagePosition
}
from
'
vs/base/browser/dom
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
Action
}
from
'
vs/base/common/actions
'
;
import
{
always
}
from
'
vs/base/common/async
'
;
import
{
canceled
}
from
'
vs/base/common/errors
'
;
import
{
Emitter
,
Event
}
from
'
vs/base/common/event
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
ICodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
ScrollType
}
from
'
vs/editor/common/editorCommon
'
;
import
{
CodeAction
}
from
'
vs/editor/common/modes
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
Action
}
from
'
vs/base/common/actions
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
ScrollType
}
from
'
vs/editor/common/editorCommon
'
;
import
{
canceled
}
from
'
vs/base/common/errors
'
;
export
class
QuickFixContextMenu
{
...
...
src/vs/editor/contrib/codeAction/lightBulbWidget.ts
浏览文件 @
016d83cd
...
...
@@ -2,17 +2,16 @@
* 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/css!./lightBulbWidget
'
;
import
{
CancellationTokenSource
}
from
'
vs/base/common/cancellation
'
;
import
{
dispose
,
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
GlobalMouseMoveMonitor
,
IStandardMouseMoveEventData
,
standardMouseMoveMerger
}
from
'
vs/base/browser/globalMouseMoveMonitor
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
{
ICodeEditor
,
IContentWidget
,
IContentWidgetPosition
,
ContentWidgetPositionPreference
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
QuickFixComputeEvent
}
from
'
./codeActionModel
'
;
import
{
GlobalMouseMoveMonitor
,
IStandardMouseMoveEventData
,
standardMouseMoveMerger
}
from
'
vs/base/browser/globalMouseMoveMonitor
'
;
import
{
CancellationTokenSource
}
from
'
vs/base/common/cancellation
'
;
import
{
Emitter
,
Event
}
from
'
vs/base/common/event
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
'
vs/css!./lightBulbWidget
'
;
import
{
ContentWidgetPositionPreference
,
ICodeEditor
,
IContentWidget
,
IContentWidgetPosition
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
TextModel
}
from
'
vs/editor/common/model/textModel
'
;
import
{
QuickFixComputeEvent
}
from
'
./codeActionModel
'
;
export
class
LightBulbWidget
implements
IDisposable
,
IContentWidget
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录