Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e1b6d7de
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,发现更多精彩内容 >>
提交
e1b6d7de
编写于
9月 09, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move tests
上级
819770a0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
src/vs/platform/files/common/files.ts
src/vs/platform/files/common/files.ts
+14
-14
src/vs/platform/files/test/events.test.ts
src/vs/platform/files/test/events.test.ts
+0
-0
未找到文件。
src/vs/platform/files/common/files.ts
浏览文件 @
e1b6d7de
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
winjs
=
require
(
'
vs/base/common/winjs.base
'
)
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
paths
=
require
(
'
vs/base/common/paths
'
);
import
URI
from
'
vs/base/common/uri
'
;
import
glob
=
require
(
'
vs/base/common/glob
'
);
...
...
@@ -27,50 +27,50 @@ export interface IFileService {
* the stat service is asked to automatically resolve child folders that only
* contain a single element.
*/
resolveFile
(
resource
:
URI
,
options
?:
IResolveFileOptions
):
winjs
.
TPromise
<
IFileStat
>
;
resolveFile
(
resource
:
URI
,
options
?:
IResolveFileOptions
):
TPromise
<
IFileStat
>
;
/**
*Finds out if a file identified by the resource exists.
*/
existsFile
(
resource
:
URI
):
winjs
.
TPromise
<
boolean
>
;
existsFile
(
resource
:
URI
):
TPromise
<
boolean
>
;
/**
* Resolve the contents of a file identified by the resource.
*
* The returned object contains properties of the file and the full value as string.
*/
resolveContent
(
resource
:
URI
,
options
?:
IResolveContentOptions
):
winjs
.
TPromise
<
IContent
>
;
resolveContent
(
resource
:
URI
,
options
?:
IResolveContentOptions
):
TPromise
<
IContent
>
;
/**
* Resolve the contents of a file identified by the resource.
*
* The returned object contains properties of the file and the value as a readable stream.
*/
resolveStreamContent
(
resource
:
URI
,
options
?:
IResolveContentOptions
):
winjs
.
TPromise
<
IStreamContent
>
;
resolveStreamContent
(
resource
:
URI
,
options
?:
IResolveContentOptions
):
TPromise
<
IStreamContent
>
;
/**
* Returns the contents of all files by the given array of file resources.
*/
resolveContents
(
resources
:
URI
[]):
winjs
.
TPromise
<
IContent
[]
>
;
resolveContents
(
resources
:
URI
[]):
TPromise
<
IContent
[]
>
;
/**
* Updates the content replacing its previous value.
*/
updateContent
(
resource
:
URI
,
value
:
string
,
options
?:
IUpdateContentOptions
):
winjs
.
TPromise
<
IFileStat
>
;
updateContent
(
resource
:
URI
,
value
:
string
,
options
?:
IUpdateContentOptions
):
TPromise
<
IFileStat
>
;
/**
* Moves the file to a new path identified by the resource.
*
* The optional parameter overwrite can be set to replace an existing file at the location.
*/
moveFile
(
source
:
URI
,
target
:
URI
,
overwrite
?:
boolean
):
winjs
.
TPromise
<
IFileStat
>
;
moveFile
(
source
:
URI
,
target
:
URI
,
overwrite
?:
boolean
):
TPromise
<
IFileStat
>
;
/**
* Copies the file to a path identified by the resource.
*
* The optional parameter overwrite can be set to replace an existing file at the location.
*/
copyFile
(
source
:
URI
,
target
:
URI
,
overwrite
?:
boolean
):
winjs
.
TPromise
<
IFileStat
>
;
copyFile
(
source
:
URI
,
target
:
URI
,
overwrite
?:
boolean
):
TPromise
<
IFileStat
>
;
/**
* Creates a new file with the given path. The returned promise
...
...
@@ -78,30 +78,30 @@ export interface IFileService {
*
* The optional parameter content can be used as value to fill into the new file.
*/
createFile
(
resource
:
URI
,
content
?:
string
):
winjs
.
TPromise
<
IFileStat
>
;
createFile
(
resource
:
URI
,
content
?:
string
):
TPromise
<
IFileStat
>
;
/**
* Creates a new folder with the given path. The returned promise
* will have the stat model object as a result.
*/
createFolder
(
resource
:
URI
):
winjs
.
TPromise
<
IFileStat
>
;
createFolder
(
resource
:
URI
):
TPromise
<
IFileStat
>
;
/**
* Renames the provided file to use the new name. The returned promise
* will have the stat model object as a result.
*/
rename
(
resource
:
URI
,
newName
:
string
):
winjs
.
TPromise
<
IFileStat
>
;
rename
(
resource
:
URI
,
newName
:
string
):
TPromise
<
IFileStat
>
;
/**
* Deletes the provided file. The optional useTrash parameter allows to
* move the file to trash.
*/
del
(
resource
:
URI
,
useTrash
?:
boolean
):
winjs
.
TPromise
<
void
>
;
del
(
resource
:
URI
,
useTrash
?:
boolean
):
TPromise
<
void
>
;
/**
* Imports the file to the parent identified by the resource.
*/
importFile
(
source
:
URI
,
targetFolder
:
URI
):
winjs
.
TPromise
<
IImportResult
>
;
importFile
(
source
:
URI
,
targetFolder
:
URI
):
TPromise
<
IImportResult
>
;
/**
* Allows to start a watcher that reports file change events on the provided resource.
...
...
src/vs/
workbench/test/common
/events.test.ts
→
src/vs/
platform/files/test
/events.test.ts
浏览文件 @
e1b6d7de
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录