mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
add id to FileStat and remove resource, make readdir return tuples, sketch up error codes, add todos on the API
This commit is contained in:
@@ -486,7 +486,7 @@ export interface ExtHostFileSystemShape {
|
||||
$unlink(handle: number, resource: URI): TPromise<void>;
|
||||
$rename(handle: number, resource: URI, target: URI): TPromise<void>;
|
||||
$mkdir(handle: number, resource: URI): TPromise<void>;
|
||||
$readdir(handle: number, resource: URI): TPromise<IStat[]>;
|
||||
$readdir(handle: number, resource: URI): TPromise<[URI, IStat][]>;
|
||||
$rmdir(handle: number, resource: URI): TPromise<void>;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
|
||||
$mkdir(handle: number, resource: URI): TPromise<void, any> {
|
||||
return TPromise.as<any>(this._provider.get(handle).mkdir(resource));
|
||||
}
|
||||
$readdir(handle: number, resource: URI): TPromise<IStat[], any> {
|
||||
$readdir(handle: number, resource: URI): TPromise<[URI, IStat][], any> {
|
||||
return TPromise.as<any>(this._provider.get(handle).readdir(resource));
|
||||
}
|
||||
$rmdir(handle: number, resource: URI): TPromise<void, any> {
|
||||
|
||||
Reference in New Issue
Block a user