Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d5d6096b
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,发现更多精彩内容 >>
提交
d5d6096b
编写于
12月 17, 2020
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak wording for participants
https://github.com/microsoft/vscode/issues/111878
上级
5ff434d9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
6 deletion
+22
-6
src/vs/workbench/api/browser/mainThreadFileSystemEventService.ts
...workbench/api/browser/mainThreadFileSystemEventService.ts
+22
-6
未找到文件。
src/vs/workbench/api/browser/mainThreadFileSystemEventService.ts
浏览文件 @
d5d6096b
...
...
@@ -118,30 +118,46 @@ export class MainThreadFileSystemEventService {
let
message
:
string
;
if
(
data
.
extensionNames
.
length
===
1
)
{
message
=
localize
(
'
ask.1
'
,
"
Extension '{0}' wants to make additional edits for this file operation.
"
,
data
.
extensionNames
[
0
]);
if
(
operation
===
FileOperation
.
CREATE
)
{
message
=
localize
(
'
ask.1.create
'
,
"
Extension '{0}' wants to make refactoring changes with this file creation
"
,
data
.
extensionNames
[
0
]);
}
else
if
(
operation
===
FileOperation
.
COPY
)
{
message
=
localize
(
'
ask.1.copy
'
,
"
Extension '{0}' wants to make refactoring changes with this file copy
"
,
data
.
extensionNames
[
0
]);
}
else
if
(
operation
===
FileOperation
.
MOVE
)
{
message
=
localize
(
'
ask.1.move
'
,
"
Extension '{0}' wants to make refactoring changes with this file move
"
,
data
.
extensionNames
[
0
]);
}
else
/* if (operation === FileOperation.DELETE) */
{
message
=
localize
(
'
ask.1.delete
'
,
"
Extension '{0}' wants to make refactoring changes with this file deletion
"
,
data
.
extensionNames
[
0
]);
}
}
else
{
message
=
localize
(
'
ask.N
'
,
"
{0} extensions want to make additional edits for this file operation.
"
,
data
.
extensionNames
.
length
);
if
(
operation
===
FileOperation
.
CREATE
)
{
message
=
localize
(
'
ask.N.create
'
,
"
{0} extensions want to make refactoring changes with this file creation
"
,
data
.
extensionNames
.
length
);
}
else
if
(
operation
===
FileOperation
.
COPY
)
{
message
=
localize
(
'
ask.N.copy
'
,
"
{0} extensions want to make refactoring changes with this file copy
"
,
data
.
extensionNames
.
length
);
}
else
if
(
operation
===
FileOperation
.
MOVE
)
{
message
=
localize
(
'
ask.N.move
'
,
"
{0} extensions want to make refactoring changes with this file move
"
,
data
.
extensionNames
.
length
);
}
else
/* if (operation === FileOperation.DELETE) */
{
message
=
localize
(
'
ask.N.delete
'
,
"
{0} extensions want to make refactoring changes with this file deletion
"
,
data
.
extensionNames
.
length
);
}
}
if
(
needsConfirmation
)
{
// edit which needs confirmation -> always show dialog
const
answer
=
await
dialogService
.
show
(
Severity
.
Info
,
message
,
[
localize
(
'
preview
'
,
"
Show Preview
"
),
localize
(
'
cancel
'
,
"
Skip
additional edit
s
"
)],
{
cancelId
:
1
});
const
answer
=
await
dialogService
.
show
(
Severity
.
Info
,
message
,
[
localize
(
'
preview
'
,
"
Show Preview
"
),
localize
(
'
cancel
'
,
"
Skip
Change
s
"
)],
{
cancelId
:
1
});
showPreview
=
true
;
if
(
answer
.
choice
===
1
)
{
// no
additional edit
s wanted
// no
change
s wanted
return
;
}
}
else
{
// choice
const
answer
=
await
dialogService
.
show
(
Severity
.
Info
,
message
,
[
localize
(
'
ok
'
,
"
OK
"
),
localize
(
'
preview
'
,
"
Show Preview
"
),
localize
(
'
cancel
'
,
"
Skip
additional edit
s
"
)],
[
localize
(
'
ok
'
,
"
OK
"
),
localize
(
'
preview
'
,
"
Show Preview
"
),
localize
(
'
cancel
'
,
"
Skip
Change
s
"
)],
{
cancelId
:
2
,
checkbox
:
{
label
:
localize
(
'
again
'
,
"
Don't ask again
"
)
}
}
);
if
(
answer
.
choice
===
2
)
{
// no
additional edit
s wanted, don't persist cancel option
// no
change
s wanted, don't persist cancel option
return
;
}
showPreview
=
answer
.
choice
===
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录