Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4d964238
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,发现更多精彩内容 >>
提交
4d964238
编写于
11月 08, 2017
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove usages of @editorCommand (#37212)
上级
f9c12029
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
25 deletion
+23
-25
src/vs/editor/common/editorCommonExtensions.ts
src/vs/editor/common/editorCommonExtensions.ts
+0
-4
src/vs/editor/contrib/cursorUndo/browser/cursorUndo.ts
src/vs/editor/contrib/cursorUndo/browser/cursorUndo.ts
+3
-2
src/vs/editor/contrib/wordOperations/common/wordOperations.ts
...vs/editor/contrib/wordOperations/common/wordOperations.ts
+20
-19
未找到文件。
src/vs/editor/common/editorCommonExtensions.ts
浏览文件 @
4d964238
...
...
@@ -216,10 +216,6 @@ export function registerEditorAction(editorAction: EditorAction): void {
CommonEditorRegistry
.
registerEditorAction
(
editorAction
);
}
export
function
editorCommand
(
ctor
:
{
new
():
EditorCommand
}):
void
{
registerEditorCommand
(
new
ctor
());
}
export
function
registerEditorCommand
<
T
extends
EditorCommand
>
(
editorCommand
:
T
):
T
{
CommonEditorRegistry
.
registerEditorCommand
(
editorCommand
);
return
editorCommand
;
...
...
src/vs/editor/contrib/cursorUndo/browser/cursorUndo.ts
浏览文件 @
4d964238
...
...
@@ -5,7 +5,7 @@
'
use strict
'
;
import
{
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
{
e
ditorCommand
,
ServicesAccessor
,
EditorCommand
}
from
'
vs/editor/common/editorCommonExtensions
'
;
import
{
registerE
ditorCommand
,
ServicesAccessor
,
EditorCommand
}
from
'
vs/editor/common/editorCommonExtensions
'
;
import
{
KeyCode
,
KeyMod
}
from
'
vs/base/common/keyCodes
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
ICommonCodeEditor
,
IEditorContribution
,
ScrollType
}
from
'
vs/editor/common/editorCommon
'
;
...
...
@@ -110,7 +110,6 @@ export class CursorUndoController extends Disposable implements IEditorContribut
}
}
@
editorCommand
export
class
CursorUndo
extends
EditorCommand
{
constructor
()
{
super
({
...
...
@@ -127,3 +126,5 @@ export class CursorUndo extends EditorCommand {
CursorUndoController
.
get
(
editor
).
cursorUndo
();
}
}
registerEditorCommand
(
new
CursorUndo
());
src/vs/editor/contrib/wordOperations/common/wordOperations.ts
浏览文件 @
4d964238
...
...
@@ -9,7 +9,7 @@ import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import
{
ICommonCodeEditor
,
IModel
,
ScrollType
}
from
'
vs/editor/common/editorCommon
'
;
import
{
EditorContextKeys
}
from
'
vs/editor/common/editorContextKeys
'
;
import
{
Selection
}
from
'
vs/editor/common/core/selection
'
;
import
{
e
ditorCommand
,
ServicesAccessor
,
EditorCommand
,
ICommandOptions
}
from
'
vs/editor/common/editorCommonExtensions
'
;
import
{
registerE
ditorCommand
,
ServicesAccessor
,
EditorCommand
,
ICommandOptions
}
from
'
vs/editor/common/editorCommonExtensions
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
WordNavigationType
,
WordOperations
}
from
'
vs/editor/common/controller/cursorWordOperations
'
;
...
...
@@ -88,7 +88,6 @@ export class WordRightCommand extends MoveWordCommand {
}
}
@
editorCommand
export
class
CursorWordStartLeft
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -105,7 +104,6 @@ export class CursorWordStartLeft extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordEndLeft
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -117,7 +115,6 @@ export class CursorWordEndLeft extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordLeft
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -129,7 +126,6 @@ export class CursorWordLeft extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordStartLeftSelect
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -146,7 +142,6 @@ export class CursorWordStartLeftSelect extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordEndLeftSelect
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -158,7 +153,6 @@ export class CursorWordEndLeftSelect extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordLeftSelect
extends
WordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -170,7 +164,6 @@ export class CursorWordLeftSelect extends WordLeftCommand {
}
}
@
editorCommand
export
class
CursorWordStartRight
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -182,7 +175,6 @@ export class CursorWordStartRight extends WordRightCommand {
}
}
@
editorCommand
export
class
CursorWordEndRight
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -199,7 +191,6 @@ export class CursorWordEndRight extends WordRightCommand {
}
}
@
editorCommand
export
class
CursorWordRight
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -211,7 +202,6 @@ export class CursorWordRight extends WordRightCommand {
}
}
@
editorCommand
export
class
CursorWordStartRightSelect
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -223,7 +213,6 @@ export class CursorWordStartRightSelect extends WordRightCommand {
}
}
@
editorCommand
export
class
CursorWordEndRightSelect
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -240,7 +229,6 @@ export class CursorWordEndRightSelect extends WordRightCommand {
}
}
@
editorCommand
export
class
CursorWordRightSelect
extends
WordRightCommand
{
constructor
()
{
super
({
...
...
@@ -308,7 +296,6 @@ export class DeleteWordRightCommand extends DeleteWordCommand {
}
}
@
editorCommand
export
class
DeleteWordStartLeft
extends
DeleteWordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -320,7 +307,6 @@ export class DeleteWordStartLeft extends DeleteWordLeftCommand {
}
}
@
editorCommand
export
class
DeleteWordEndLeft
extends
DeleteWordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -332,7 +318,6 @@ export class DeleteWordEndLeft extends DeleteWordLeftCommand {
}
}
@
editorCommand
export
class
DeleteWordLeft
extends
DeleteWordLeftCommand
{
constructor
()
{
super
({
...
...
@@ -349,7 +334,6 @@ export class DeleteWordLeft extends DeleteWordLeftCommand {
}
}
@
editorCommand
export
class
DeleteWordStartRight
extends
DeleteWordRightCommand
{
constructor
()
{
super
({
...
...
@@ -361,7 +345,6 @@ export class DeleteWordStartRight extends DeleteWordRightCommand {
}
}
@
editorCommand
export
class
DeleteWordEndRight
extends
DeleteWordRightCommand
{
constructor
()
{
super
({
...
...
@@ -373,7 +356,6 @@ export class DeleteWordEndRight extends DeleteWordRightCommand {
}
}
@
editorCommand
export
class
DeleteWordRight
extends
DeleteWordRightCommand
{
constructor
()
{
super
({
...
...
@@ -389,3 +371,22 @@ export class DeleteWordRight extends DeleteWordRightCommand {
});
}
}
registerEditorCommand
(
new
CursorWordStartLeft
());
registerEditorCommand
(
new
CursorWordEndLeft
());
registerEditorCommand
(
new
CursorWordLeft
());
registerEditorCommand
(
new
CursorWordStartLeftSelect
());
registerEditorCommand
(
new
CursorWordEndLeftSelect
());
registerEditorCommand
(
new
CursorWordLeftSelect
());
registerEditorCommand
(
new
CursorWordStartRight
());
registerEditorCommand
(
new
CursorWordEndRight
());
registerEditorCommand
(
new
CursorWordRight
());
registerEditorCommand
(
new
CursorWordStartRightSelect
());
registerEditorCommand
(
new
CursorWordEndRightSelect
());
registerEditorCommand
(
new
CursorWordRightSelect
());
registerEditorCommand
(
new
DeleteWordStartLeft
());
registerEditorCommand
(
new
DeleteWordEndLeft
());
registerEditorCommand
(
new
DeleteWordLeft
());
registerEditorCommand
(
new
DeleteWordStartRight
());
registerEditorCommand
(
new
DeleteWordEndRight
());
registerEditorCommand
(
new
DeleteWordRight
());
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录