提交 2b875455 编写于 作者: M Matt Bierner

Only show the "open using external" command for file resources

上级 fcfae3b5
......@@ -164,7 +164,7 @@ class LargeImageView {
label.textContent = nls.localize('largeImageError', "The image is not displayed in the editor because it is too large ({0}).", size);
container.appendChild(label);
if (descriptor.resource.scheme !== Schemas.data) {
if (descriptor.resource.scheme === Schemas.file) {
const link = DOM.append(label, DOM.$('a.embedded-link'));
link.setAttribute('role', 'button');
link.textContent = nls.localize('resourceOpenExternalButton', "Open image using external program?");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册