Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dcf34da7
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,发现更多精彩内容 >>
提交
dcf34da7
编写于
8月 09, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
registerEditorCommand2 -> registerEditorCommand
上级
734b971c
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
40 addition
and
40 deletion
+40
-40
src/vs/editor/common/editorCommonExtensions.ts
src/vs/editor/common/editorCommonExtensions.ts
+3
-3
src/vs/editor/contrib/accessibility/browser/accessibility.ts
src/vs/editor/contrib/accessibility/browser/accessibility.ts
+2
-2
src/vs/editor/contrib/find/common/findController.ts
src/vs/editor/contrib/find/common/findController.ts
+7
-7
src/vs/editor/contrib/gotoError/browser/gotoError.ts
src/vs/editor/contrib/gotoError/browser/gotoError.ts
+1
-1
src/vs/editor/contrib/parameterHints/browser/parameterHints.ts
...s/editor/contrib/parameterHints/browser/parameterHints.ts
+3
-3
src/vs/editor/contrib/quickFix/browser/quickFix.ts
src/vs/editor/contrib/quickFix/browser/quickFix.ts
+6
-6
src/vs/editor/contrib/rename/browser/rename.ts
src/vs/editor/contrib/rename/browser/rename.ts
+2
-2
src/vs/editor/contrib/snippet/common/snippet.ts
src/vs/editor/contrib/snippet/common/snippet.ts
+4
-4
src/vs/editor/contrib/suggest/browser/suggest.ts
src/vs/editor/contrib/suggest/browser/suggest.ts
+10
-10
src/vs/editor/contrib/suggest/browser/tabCompletion.ts
src/vs/editor/contrib/suggest/browser/tabCompletion.ts
+1
-1
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
+1
-1
未找到文件。
src/vs/editor/common/editorCommonExtensions.ts
浏览文件 @
dcf34da7
...
...
@@ -87,8 +87,8 @@ export abstract class HandlerEditorAction extends EditorAction {
// --- Editor Actions
export
function
editorAction
(
c
onstruc
tor
:{
new
():
EditorAction
;
}):
void
{
CommonEditorRegistry
.
registerEditorAction
(
new
c
onstruc
tor
());
export
function
editorAction
(
ctor
:{
new
():
EditorAction
;
}):
void
{
CommonEditorRegistry
.
registerEditorAction
(
new
ctor
());
}
export
module
CommonEditorRegistry
{
...
...
@@ -117,7 +117,7 @@ export module CommonEditorRegistry {
return
KeybindingsRegistry
.
WEIGHT
.
editorContrib
(
importance
);
}
export
function
registerEditorCommand
2
(
desc
:
ConfigBasicCommand
):
void
{
export
function
registerEditorCommand
(
desc
:
ConfigBasicCommand
):
void
{
KeybindingsRegistry
.
registerCommandAndKeybindingRule
(
desc
.
toCommandAndKeybindingRule
(
KeybindingsRegistry
.
WEIGHT
.
editorContrib
()));
}
...
...
src/vs/editor/contrib/accessibility/browser/accessibility.ts
浏览文件 @
dcf34da7
...
...
@@ -215,7 +215,7 @@ EditorBrowserRegistry.registerEditorContribution(AccessibilityHelpController);
const
AccessibilityHelpCommand
=
EditorCommand
.
bindToContribution
<
AccessibilityHelpController
>
(
AccessibilityHelpController
.
get
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
AccessibilityHelpCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
AccessibilityHelpCommand
({
id
:
'
closeAccessibilityHelp
'
,
precondition
:
CONTEXT_ACCESSIBILITY_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
hide
(),
...
...
@@ -245,4 +245,4 @@ class ToggleExperimentalScreenReaderSupportCommand extends Command {
}
}
CommonEditorRegistry
.
registerEditorCommand
2
(
new
ToggleExperimentalScreenReaderSupportCommand
());
CommonEditorRegistry
.
registerEditorCommand
(
new
ToggleExperimentalScreenReaderSupportCommand
());
src/vs/editor/contrib/find/common/findController.ts
浏览文件 @
dcf34da7
...
...
@@ -848,7 +848,7 @@ export class SelectionHighlighter extends Disposable implements editorCommon.IEd
const
FindCommand
=
EditorCommand
.
bindToContribution
<
CommonFindController
>
(
CommonFindController
.
getFindController
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
CloseFindWidgetCommand
,
precondition
:
CONTEXT_FIND_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
closeFindWidget
(),
...
...
@@ -860,7 +860,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
ToggleCaseSensitiveCommand
,
precondition
:
null
,
handler
:
x
=>
x
.
toggleCaseSensitive
(),
...
...
@@ -872,7 +872,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
ToggleWholeWordCommand
,
precondition
:
null
,
handler
:
x
=>
x
.
toggleWholeWords
(),
...
...
@@ -884,7 +884,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
ToggleRegexCommand
,
precondition
:
null
,
handler
:
x
=>
x
.
toggleRegex
(),
...
...
@@ -896,7 +896,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
ReplaceOneAction
,
precondition
:
CONTEXT_FIND_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
replace
(),
...
...
@@ -907,7 +907,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
ReplaceAllAction
,
precondition
:
CONTEXT_FIND_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
replaceAll
(),
...
...
@@ -918,7 +918,7 @@ CommonEditorRegistry.registerEditorCommand2(new FindCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
FindCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
FindCommand
({
id
:
FIND_IDS
.
SelectAllMatchesAction
,
precondition
:
CONTEXT_FIND_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
selectAllMatches
(),
...
...
src/vs/editor/contrib/gotoError/browser/gotoError.ts
浏览文件 @
dcf34da7
...
...
@@ -548,7 +548,7 @@ var CONTEXT_MARKERS_NAVIGATION_VISIBLE = new KbCtxKey<boolean>('markersNavigatio
const
MarkerCommand
=
EditorCommand
.
bindToContribution
<
MarkerController
>
(
MarkerController
.
getMarkerController
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
MarkerCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
MarkerCommand
({
id
:
'
closeMarkersNavigation
'
,
precondition
:
CONTEXT_MARKERS_NAVIGATION_VISIBLE
,
handler
:
x
=>
x
.
closeMarkersNavigation
(),
...
...
src/vs/editor/contrib/parameterHints/browser/parameterHints.ts
浏览文件 @
dcf34da7
...
...
@@ -84,7 +84,7 @@ const ParameterHintsCommand = EditorCommand.bindToContribution<ParameterHintsCon
EditorBrowserRegistry
.
registerEditorContribution
(
ParameterHintsController
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
ParameterHintsCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
ParameterHintsCommand
({
id
:
'
closeParameterHints
'
,
precondition
:
Context
.
Visible
,
handler
:
x
=>
x
.
cancel
(),
...
...
@@ -95,7 +95,7 @@ CommonEditorRegistry.registerEditorCommand2(new ParameterHintsCommand({
secondary
:
[
KeyMod
.
Shift
|
KeyCode
.
Escape
]
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
ParameterHintsCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
ParameterHintsCommand
({
id
:
'
showPrevParameterHint
'
,
precondition
:
KbExpr
.
and
(
Context
.
Visible
,
Context
.
MultipleSignatures
),
handler
:
x
=>
x
.
previous
(),
...
...
@@ -107,7 +107,7 @@ CommonEditorRegistry.registerEditorCommand2(new ParameterHintsCommand({
mac
:
{
primary
:
KeyCode
.
UpArrow
,
secondary
:
[
KeyMod
.
Alt
|
KeyCode
.
UpArrow
,
KeyMod
.
WinCtrl
|
KeyCode
.
KEY_P
]
}
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
ParameterHintsCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
ParameterHintsCommand
({
id
:
'
showNextParameterHint
'
,
precondition
:
KbExpr
.
and
(
Context
.
Visible
,
Context
.
MultipleSignatures
),
handler
:
x
=>
x
.
next
(),
...
...
src/vs/editor/contrib/quickFix/browser/quickFix.ts
浏览文件 @
dcf34da7
...
...
@@ -140,7 +140,7 @@ var CONTEXT_QUICK_FIX_WIDGET_VISIBLE = new KbCtxKey<boolean>('quickFixWidgetVisi
const
QuickFixCommand
=
EditorCommand
.
bindToContribution
<
QuickFixController
>
(
QuickFixController
.
getQuickFixController
);
// register action
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
acceptQuickFixSuggestion
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
acceptSelectedSuggestion
(),
...
...
@@ -151,7 +151,7 @@ CommonEditorRegistry.registerEditorCommand2(new QuickFixCommand({
secondary
:
[
KeyCode
.
Tab
]
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
closeQuickFixWidget
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
closeWidget
(),
...
...
@@ -162,7 +162,7 @@ CommonEditorRegistry.registerEditorCommand2(new QuickFixCommand({
secondary
:
[
KeyMod
.
Shift
|
KeyCode
.
Escape
]
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
selectNextQuickFix
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
selectNextSuggestion
(),
...
...
@@ -173,7 +173,7 @@ CommonEditorRegistry.registerEditorCommand2(new QuickFixCommand({
mac
:
{
primary
:
KeyCode
.
DownArrow
,
secondary
:
[
KeyMod
.
WinCtrl
|
KeyCode
.
KEY_N
]
}
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
selectNextPageQuickFix
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
selectNextPageSuggestion
(),
...
...
@@ -183,7 +183,7 @@ CommonEditorRegistry.registerEditorCommand2(new QuickFixCommand({
primary
:
KeyCode
.
PageDown
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
selectPrevQuickFix
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
selectPrevSuggestion
(),
...
...
@@ -194,7 +194,7 @@ CommonEditorRegistry.registerEditorCommand2(new QuickFixCommand({
mac
:
{
primary
:
KeyCode
.
UpArrow
,
secondary
:
[
KeyMod
.
WinCtrl
|
KeyCode
.
KEY_P
]
}
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
QuickFixCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
QuickFixCommand
({
id
:
'
selectPrevPageQuickFix
'
,
precondition
:
CONTEXT_QUICK_FIX_WIDGET_VISIBLE
,
handler
:
x
=>
x
.
selectPrevPageSuggestion
(),
...
...
src/vs/editor/contrib/rename/browser/rename.ts
浏览文件 @
dcf34da7
...
...
@@ -174,7 +174,7 @@ EditorBrowserRegistry.registerEditorContribution(RenameController);
const
RenameCommand
=
EditorCommand
.
bindToContribution
<
RenameController
>
(
RenameController
.
get
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
RenameCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
RenameCommand
({
id
:
'
acceptRenameInput
'
,
precondition
:
CONTEXT_RENAME_INPUT_VISIBLE
,
handler
:
x
=>
x
.
acceptRenameInput
(),
...
...
@@ -185,7 +185,7 @@ CommonEditorRegistry.registerEditorCommand2(new RenameCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
RenameCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
RenameCommand
({
id
:
'
cancelRenameInput
'
,
precondition
:
CONTEXT_RENAME_INPUT_VISIBLE
,
handler
:
x
=>
x
.
cancelRenameInput
(),
...
...
src/vs/editor/contrib/snippet/common/snippet.ts
浏览文件 @
dcf34da7
...
...
@@ -944,7 +944,7 @@ export var CONTEXT_SNIPPET_MODE = new KbCtxKey<boolean>('inSnippetMode', false);
const
SnippetCommand
=
EditorCommand
.
bindToContribution
<
ISnippetController
>
(
SnippetController
.
get
);
CommonEditorRegistry
.
registerEditorContribution
(
SnippetController
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SnippetCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SnippetCommand
({
id
:
'
jumpToNextSnippetPlaceholder
'
,
precondition
:
CONTEXT_SNIPPET_MODE
,
handler
:
x
=>
x
.
jumpToNextPlaceholder
(),
...
...
@@ -954,7 +954,7 @@ CommonEditorRegistry.registerEditorCommand2(new SnippetCommand({
primary
:
KeyCode
.
Tab
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SnippetCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SnippetCommand
({
id
:
'
jumpToPrevSnippetPlaceholder
'
,
precondition
:
CONTEXT_SNIPPET_MODE
,
handler
:
x
=>
x
.
jumpToPrevPlaceholder
(),
...
...
@@ -964,7 +964,7 @@ CommonEditorRegistry.registerEditorCommand2(new SnippetCommand({
primary
:
KeyMod
.
Shift
|
KeyCode
.
Tab
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SnippetCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SnippetCommand
({
id
:
'
acceptSnippet
'
,
precondition
:
CONTEXT_SNIPPET_MODE
,
handler
:
x
=>
x
.
acceptSnippet
(),
...
...
@@ -974,7 +974,7 @@ CommonEditorRegistry.registerEditorCommand2(new SnippetCommand({
primary
:
KeyCode
.
Enter
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SnippetCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SnippetCommand
({
id
:
'
leaveSnippet
'
,
precondition
:
CONTEXT_SNIPPET_MODE
,
handler
:
x
=>
x
.
leaveSnippet
(),
...
...
src/vs/editor/contrib/suggest/browser/suggest.ts
浏览文件 @
dcf34da7
...
...
@@ -206,7 +206,7 @@ const weight = CommonEditorRegistry.commandWeight(90);
const
SuggestCommand
=
EditorCommand
.
bindToContribution
<
SuggestController
>
(
SuggestController
.
getController
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
acceptSelectedSuggestion
'
,
precondition
:
SuggestContext
.
Visible
,
handler
:
x
=>
x
.
acceptSelectedSuggestion
(),
...
...
@@ -217,7 +217,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
acceptSelectedSuggestionOnEnter
'
,
precondition
:
SuggestContext
.
Visible
,
handler
:
x
=>
x
.
acceptSelectedSuggestion
(),
...
...
@@ -228,7 +228,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
hideSuggestWidget
'
,
precondition
:
SuggestContext
.
Visible
,
handler
:
x
=>
x
.
cancelSuggestWidget
(),
...
...
@@ -240,7 +240,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectNextSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectNextSuggestion
(),
...
...
@@ -253,7 +253,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectNextPageSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectNextPageSuggestion
(),
...
...
@@ -265,7 +265,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectFirstSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectFirstSuggestion
(),
...
...
@@ -277,7 +277,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectPrevSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectPrevSuggestion
(),
...
...
@@ -290,7 +290,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectPrevPageSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectPrevPageSuggestion
(),
...
...
@@ -302,7 +302,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
selectLastSuggestion
'
,
precondition
:
KbExpr
.
and
(
SuggestContext
.
Visible
,
SuggestContext
.
MultipleSuggestions
),
handler
:
c
=>
c
.
selectLastSuggestion
(),
...
...
@@ -314,7 +314,7 @@ CommonEditorRegistry.registerEditorCommand2(new SuggestCommand({
}
}));
CommonEditorRegistry
.
registerEditorCommand
2
(
new
SuggestCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
SuggestCommand
({
id
:
'
toggleSuggestionDetails
'
,
precondition
:
SuggestContext
.
Visible
,
handler
:
x
=>
x
.
toggleSuggestionDetails
(),
...
...
src/vs/editor/contrib/suggest/browser/tabCompletion.ts
浏览文件 @
dcf34da7
...
...
@@ -81,7 +81,7 @@ CommonEditorRegistry.registerEditorContribution(TabCompletionController);
const
TabCompletionCommand
=
EditorCommand
.
bindToContribution
<
TabCompletionController
>
(
TabCompletionController
.
get
);
CommonEditorRegistry
.
registerEditorCommand
2
(
new
TabCompletionCommand
({
CommonEditorRegistry
.
registerEditorCommand
(
new
TabCompletionCommand
({
id
:
'
insertSnippet
'
,
precondition
:
TabCompletionController
.
ContextKey
,
handler
:
x
=>
x
.
performSnippetCompletions
(),
...
...
src/vs/workbench/parts/debug/browser/breakpointWidget.ts
浏览文件 @
dcf34da7
...
...
@@ -141,4 +141,4 @@ class CloseBreakpointWidgetCommand extends EditorCommand {
}
}
}
CommonEditorRegistry
.
registerEditorCommand
2
(
new
CloseBreakpointWidgetCommand
());
CommonEditorRegistry
.
registerEditorCommand
(
new
CloseBreakpointWidgetCommand
());
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录