提交 ce84678f 编写于 作者: J Joao Moreno

🐛 exclude extensions from git menu actions

fixes #22373
上级 6fb78a87
......@@ -510,12 +510,12 @@
{
"command": "git.openFile",
"group": "navigation",
"when": "isInDiffEditor && resourceScheme == file"
"when": "isInDiffEditor && resourceScheme != extension"
},
{
"command": "git.openChange",
"group": "navigation",
"when": "!isInDiffEditor && resourceScheme == file"
"when": "!isInDiffEditor && resourceScheme != extension"
}
]
},
......
......@@ -9,6 +9,7 @@ import { localize } from 'vs/nls';
import { TPromise } from 'vs/base/common/winjs.base';
import { EditorInput } from 'vs/workbench/common/editor';
import { IExtension } from 'vs/workbench/parts/extensions/common/extensions';
import URI from 'vs/base/common/uri';
export class ExtensionsInput extends EditorInput {
......@@ -45,4 +46,11 @@ export class ExtensionsInput extends EditorInput {
supportsSplitEditor(): boolean {
return false;
}
getResource(): URI {
return URI.from({
scheme: 'extension',
path: this.extension.id
});
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册