Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
dc2fbfd7
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
dc2fbfd7
编写于
7月 15, 2019
作者:
M
Matt Bierner
提交者:
GitHub
7月 15, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #77407 from hwhung0111/Fix-typos
Fix typos
上级
5632c492
1d4dc5dc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
src/vs/workbench/api/common/extHostFileSystem.ts
src/vs/workbench/api/common/extHostFileSystem.ts
+6
-6
src/vs/workbench/contrib/debug/browser/rawDebugSession.ts
src/vs/workbench/contrib/debug/browser/rawDebugSession.ts
+2
-2
src/vs/workbench/contrib/files/browser/fileActions.ts
src/vs/workbench/contrib/files/browser/fileActions.ts
+3
-3
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
...s/workbench/contrib/files/browser/views/explorerViewer.ts
+1
-1
未找到文件。
src/vs/workbench/api/common/extHostFileSystem.ts
浏览文件 @
dc2fbfd7
...
...
@@ -192,23 +192,23 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
this
.
_usedSchemes
.
add
(
scheme
);
this
.
_fsProvider
.
set
(
handle
,
provider
);
let
capabilites
=
files
.
FileSystemProviderCapabilities
.
FileReadWrite
;
let
capabilit
i
es
=
files
.
FileSystemProviderCapabilities
.
FileReadWrite
;
if
(
options
.
isCaseSensitive
)
{
capabilites
+=
files
.
FileSystemProviderCapabilities
.
PathCaseSensitive
;
capabilit
i
es
+=
files
.
FileSystemProviderCapabilities
.
PathCaseSensitive
;
}
if
(
options
.
isReadonly
)
{
capabilites
+=
files
.
FileSystemProviderCapabilities
.
Readonly
;
capabilit
i
es
+=
files
.
FileSystemProviderCapabilities
.
Readonly
;
}
if
(
typeof
provider
.
copy
===
'
function
'
)
{
capabilites
+=
files
.
FileSystemProviderCapabilities
.
FileFolderCopy
;
capabilit
i
es
+=
files
.
FileSystemProviderCapabilities
.
FileFolderCopy
;
}
if
(
typeof
provider
.
open
===
'
function
'
&&
typeof
provider
.
close
===
'
function
'
&&
typeof
provider
.
read
===
'
function
'
&&
typeof
provider
.
write
===
'
function
'
)
{
capabilites
+=
files
.
FileSystemProviderCapabilities
.
FileOpenReadWriteClose
;
capabilit
i
es
+=
files
.
FileSystemProviderCapabilities
.
FileOpenReadWriteClose
;
}
this
.
_proxy
.
$registerFileSystemProvider
(
handle
,
scheme
,
capabilites
);
this
.
_proxy
.
$registerFileSystemProvider
(
handle
,
scheme
,
capabilit
i
es
);
const
subscription
=
provider
.
onDidChangeFile
(
event
=>
{
const
mapped
:
IFileChangeDto
[]
=
[];
...
...
src/vs/workbench/contrib/debug/browser/rawDebugSession.ts
浏览文件 @
dc2fbfd7
...
...
@@ -126,8 +126,8 @@ export class RawDebugSession {
break
;
case
'
capabilities
'
:
if
(
event
.
body
)
{
const
capabilites
=
(
<
DebugProtocol
.
CapabilitiesEvent
>
event
).
body
.
capabilities
;
this
.
mergeCapabilities
(
capabilites
);
const
capabilit
i
es
=
(
<
DebugProtocol
.
CapabilitiesEvent
>
event
).
body
.
capabilities
;
this
.
mergeCapabilities
(
capabilit
i
es
);
}
break
;
case
'
stopped
'
:
...
...
src/vs/workbench/contrib/files/browser/fileActions.ts
浏览文件 @
dc2fbfd7
...
...
@@ -328,11 +328,11 @@ function containsBothDirectoryAndFile(distinctElements: ExplorerItem[]): boolean
}
export
function
findValidPasteFileTarget
(
targetFolder
:
ExplorerItem
,
fileToPaste
:
{
resource
:
URI
,
isDirectory
?:
boolean
,
allowOverw
ir
te
:
boolean
}):
URI
{
export
function
findValidPasteFileTarget
(
targetFolder
:
ExplorerItem
,
fileToPaste
:
{
resource
:
URI
,
isDirectory
?:
boolean
,
allowOverw
ri
te
:
boolean
}):
URI
{
let
name
=
resources
.
basenameOrAuthority
(
fileToPaste
.
resource
);
let
candidate
=
resources
.
joinPath
(
targetFolder
.
resource
,
name
);
while
(
true
&&
!
fileToPaste
.
allowOverw
ir
te
)
{
while
(
true
&&
!
fileToPaste
.
allowOverw
ri
te
)
{
if
(
!
targetFolder
.
root
.
find
(
candidate
))
{
break
;
}
...
...
@@ -1030,7 +1030,7 @@ export const pasteFileHandler = async (accessor: ServicesAccessor) => {
target
=
element
.
isDirectory
?
element
:
element
.
parent
!
;
}
const
targetFile
=
findValidPasteFileTarget
(
target
,
{
resource
:
fileToPaste
,
isDirectory
:
fileToPasteStat
.
isDirectory
,
allowOverw
ir
te
:
pasteShouldMove
});
const
targetFile
=
findValidPasteFileTarget
(
target
,
{
resource
:
fileToPaste
,
isDirectory
:
fileToPasteStat
.
isDirectory
,
allowOverw
ri
te
:
pasteShouldMove
});
// Move/Copy File
if
(
pasteShouldMove
)
{
...
...
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
浏览文件 @
dc2fbfd7
...
...
@@ -809,7 +809,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
// Reuse duplicate action if user copies
if
(
isCopy
)
{
return
this
.
fileService
.
copy
(
source
.
resource
,
findValidPasteFileTarget
(
target
,
{
resource
:
source
.
resource
,
isDirectory
:
source
.
isDirectory
,
allowOverw
ir
te
:
false
})).
then
(
stat
=>
{
return
this
.
fileService
.
copy
(
source
.
resource
,
findValidPasteFileTarget
(
target
,
{
resource
:
source
.
resource
,
isDirectory
:
source
.
isDirectory
,
allowOverw
ri
te
:
false
})).
then
(
stat
=>
{
if
(
!
stat
.
isDirectory
)
{
return
this
.
editorService
.
openEditor
({
resource
:
stat
.
resource
,
options
:
{
pinned
:
true
}
}).
then
(()
=>
undefined
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录