Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e36134fa
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,体验更适合开发者的 AI 搜索 >>
提交
e36134fa
编写于
2月 24, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Explorer commands are overly specific (fixes #21102)
上级
31268f37
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
12 deletion
+12
-12
src/vs/workbench/parts/files/browser/fileActions.contribution.ts
...workbench/parts/files/browser/fileActions.contribution.ts
+5
-5
src/vs/workbench/parts/files/browser/fileActions.ts
src/vs/workbench/parts/files/browser/fileActions.ts
+4
-4
src/vs/workbench/parts/files/browser/fileCommands.ts
src/vs/workbench/parts/files/browser/fileCommands.ts
+3
-3
未找到文件。
src/vs/workbench/parts/files/browser/fileActions.contribution.ts
浏览文件 @
e36134fa
...
...
@@ -253,7 +253,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
});
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
'
filesExplorer.renam
e
'
,
id
:
'
renameFil
e
'
,
weight
:
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
explorerCommandsWeightBonus
),
when
:
FilesExplorerFocusCondition
,
primary
:
KeyCode
.
F2
,
...
...
@@ -264,7 +264,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
});
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
'
filesExplorer.
moveFileToTrash
'
,
id
:
'
moveFileToTrash
'
,
weight
:
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
explorerCommandsWeightBonus
),
when
:
FilesExplorerFocusCondition
,
primary
:
KeyCode
.
Delete
,
...
...
@@ -275,7 +275,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
});
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
'
filesExplorer.
deleteFile
'
,
id
:
'
deleteFile
'
,
weight
:
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
explorerCommandsWeightBonus
),
when
:
FilesExplorerFocusCondition
,
primary
:
KeyMod
.
Shift
|
KeyCode
.
Delete
,
...
...
@@ -302,7 +302,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
});
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
'
explorer.copy
Path
'
,
id
:
'
copyFile
Path
'
,
weight
:
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
explorerCommandsWeightBonus
),
when
:
ExplorerFocusCondition
,
primary
:
KeyMod
.
CtrlCmd
|
KeyMod
.
Alt
|
KeyCode
.
KEY_C
,
...
...
@@ -313,7 +313,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
});
KeybindingsRegistry
.
registerCommandAndKeybindingRule
({
id
:
'
explorer.reveal
InOS
'
,
id
:
'
revealFile
InOS
'
,
weight
:
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
explorerCommandsWeightBonus
),
when
:
ExplorerFocusCondition
,
primary
:
KeyMod
.
CtrlCmd
|
KeyMod
.
Alt
|
KeyCode
.
KEY_R
,
...
...
src/vs/workbench/parts/files/browser/fileActions.ts
浏览文件 @
e36134fa
...
...
@@ -136,7 +136,7 @@ export class BaseFileAction extends Action {
export
class
TriggerRenameFileAction
extends
BaseFileAction
{
public
static
ID
=
'
filesExplorer.renam
e
'
;
public
static
ID
=
'
renameFil
e
'
;
private
tree
:
ITree
;
private
renameAction
:
BaseRenameAction
;
...
...
@@ -746,7 +746,7 @@ export class BaseDeleteFileAction extends BaseFileAction {
/* Move File/Folder to trash */
export
class
MoveFileToTrashAction
extends
BaseDeleteFileAction
{
public
static
ID
=
'
filesExplorer.
moveFileToTrash
'
;
public
static
ID
=
'
moveFileToTrash
'
;
constructor
(
tree
:
ITree
,
...
...
@@ -1845,7 +1845,7 @@ export class RevealInOSAction extends Action {
private
resource
:
URI
,
@
IInstantiationService
private
instantiationService
:
IInstantiationService
)
{
super
(
'
explorer.reveal
InOS
'
,
RevealInOSAction
.
LABEL
);
super
(
'
revealFile
InOS
'
,
RevealInOSAction
.
LABEL
);
this
.
order
=
45
;
}
...
...
@@ -1892,7 +1892,7 @@ export class CopyPathAction extends Action {
private
resource
:
URI
,
@
IInstantiationService
private
instantiationService
:
IInstantiationService
)
{
super
(
'
explorer.copy
Path
'
,
CopyPathAction
.
LABEL
);
super
(
'
copyFile
Path
'
,
CopyPathAction
.
LABEL
);
this
.
order
=
140
;
}
...
...
src/vs/workbench/parts/files/browser/fileCommands.ts
浏览文件 @
e36134fa
...
...
@@ -176,15 +176,15 @@ function withFocusedExplorerItem(accessor: ServicesAccessor): TPromise<FileStat
};
export
const
renameFocusedFilesExplorerViewItemCommand
=
(
accessor
:
ServicesAccessor
)
=>
{
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
filesExplorer.renam
e
'
);
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
renameFil
e
'
);
};
export
const
deleteFocusedFilesExplorerViewItemCommand
=
(
accessor
:
ServicesAccessor
)
=>
{
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
filesExplorer.
moveFileToTrash
'
,
{
useTrash
:
false
});
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
moveFileToTrash
'
,
{
useTrash
:
false
});
};
export
const
moveFocusedFilesExplorerViewItemToTrashCommand
=
(
accessor
:
ServicesAccessor
)
=>
{
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
filesExplorer.
moveFileToTrash
'
,
{
useTrash
:
true
});
runActionOnFocusedFilesExplorerViewItem
(
accessor
,
'
moveFileToTrash
'
,
{
useTrash
:
true
});
};
export
const
copyFocusedFilesExplorerViewItem
=
(
accessor
:
ServicesAccessor
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录