Skip to content

Commit

Permalink
tweak file change event, #47475
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Apr 11, 2018
1 parent 4c5ed7e commit 5b003ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ declare module 'vscode' {

export interface FileChange2 {
type: FileChangeType2;
resource: Uri;
uri: Uri;
}

export enum FileType2 {
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/node/extHostFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class FileSystemProviderShim implements vscode.FileSystemProvider2 {
break;

}
return { resource, type: newType };
return { uri: resource, type: newType };
}

// --- delete/create file or folder
Expand Down Expand Up @@ -192,7 +192,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
if (provider.onDidChange) {
reg = provider.onDidChange(event => {
let newEvent = event.map(e => {
let { resource, type } = e;
let { uri: resource, type } = e;
let newType: files.FileChangeType;
switch (type) {
case FileChangeType2.Changed:
Expand Down

0 comments on commit 5b003ae

Please sign in to comment.