mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
parent
6969cdff9d
commit
824c7f0c24
|
@ -466,7 +466,7 @@ export class FileController extends DefaultController implements IDisposable {
|
||||||
getAnchor: () => anchor,
|
getAnchor: () => anchor,
|
||||||
getActions: () => {
|
getActions: () => {
|
||||||
const actions = [];
|
const actions = [];
|
||||||
fillInActions(this.contributedContextMenu, { arg: stat instanceof FileStat ? stat.resource : undefined, shouldForwardArgs: true }, actions, this.contextMenuService);
|
fillInActions(this.contributedContextMenu, { arg: stat instanceof FileStat ? stat.resource : {}, shouldForwardArgs: true }, actions, this.contextMenuService);
|
||||||
return TPromise.as(actions);
|
return TPromise.as(actions);
|
||||||
},
|
},
|
||||||
onHide: (wasCancelled?: boolean) => {
|
onHide: (wasCancelled?: boolean) => {
|
||||||
|
@ -474,7 +474,9 @@ export class FileController extends DefaultController implements IDisposable {
|
||||||
tree.DOMFocus();
|
tree.DOMFocus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getActionsContext: () => selection && selection.indexOf(stat) >= 0 ? selection.map((fs: FileStat) => fs.resource) : [stat]
|
getActionsContext: () => selection && selection.indexOf(stat) >= 0
|
||||||
|
? selection.map((fs: FileStat) => fs.resource)
|
||||||
|
: stat instanceof FileStat ? [stat.resource] : []
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue