Skip to content

Commit

Permalink
💄, #47475
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Apr 11, 2018
1 parent da79ed6 commit b21e8d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/vs/platform/files/common/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,16 @@ export interface IStat {
}

export interface IFileSystemProvider {

onDidChange?: Event<IFileChange[]>;

// more...
//
onDidChange: Event<IFileChange[]>;
stat(resource: URI): TPromise<IStat>;
readFile(resource: URI): TPromise<Uint8Array>;
writeFile(resource: URI, content: Uint8Array): TPromise<void>;
move(from: URI, to: URI): TPromise<IStat>;
rename(from: URI, to: URI): TPromise<IStat>;
mkdir(resource: URI): TPromise<IStat>;
readdir(resource: URI): TPromise<[string, IStat][]>;
delete(resource: URI): TPromise<void>;
}


export enum FileOperation {
CREATE,
DELETE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class RemoteFileSystemProvider implements IFileSystemProvider {
delete(resource: URI): TPromise<void, any> {
return this._proxy.$delete(this._handle, resource);
}
move(resource: URI, target: URI): TPromise<IStat, any> {
rename(resource: URI, target: URI): TPromise<IStat, any> {
return this._proxy.$move(this._handle, resource, target);
}
mkdir(resource: URI): TPromise<IStat, any> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class RemoteFileService extends FileService {
: TPromise.as(null);

return prepare.then(() => this._withProvider(source)).then(provider => {
return provider.move(source, target).then(stat => {
return provider.rename(source, target).then(stat => {
return toIFileStat(provider, [target, stat]);
}).then(fileStat => {
this._onAfterOperation.fire(new FileOperationEvent(source, FileOperation.MOVE, fileStat));
Expand Down

0 comments on commit b21e8d4

Please sign in to comment.