提交 ebc878d6 编写于 作者: E Erich Gamma

tweaks to PR

上级 3a2f2e40
...@@ -41,14 +41,14 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction { ...@@ -41,14 +41,14 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction {
} }
if (!this.workspaceContext.getWorkspace()) { if (!this.workspaceContext.getWorkspace()) {
const message = nls.localize('noWorkspace', "Decoding **data:url** image are only available on a workspace folder."); const message = nls.localize('noWorkspace', "Decoding a data:URL image is only available inside a workspace folder.");
this.messageService.show(Severity.Warning, message); this.messageService.show(Severity.Info, message);
return; return;
} }
let options: IInputOptions = { let options: IInputOptions = {
prompt: nls.localize('enterImagePath', "Enter path to file (absolute or relative)"), prompt: nls.localize('enterImagePath', "Enter file path (absolute or relative)"),
placeHolder: nls.localize('path', "Path to file") placeHolder: nls.localize('path', "File path")
}; };
const quickPromise = this.quickOpenService.input(options) const quickPromise = this.quickOpenService.input(options)
...@@ -58,7 +58,6 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction { ...@@ -58,7 +58,6 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction {
} }
this.imageFilePath = path; this.imageFilePath = path;
const fullpath = createPath(this.editorAccessor.getFilePath(), path); const fullpath = createPath(this.editorAccessor.getFilePath(), path);
return fileExists(fullpath); return fileExists(fullpath);
}) })
...@@ -86,7 +85,7 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction { ...@@ -86,7 +85,7 @@ class EncodeDecodeDataUrlAction extends EmmetEditorAction {
}; };
if (!_emmet.run('encode_decode_data_url', this.editorAccessor)) { if (!_emmet.run('encode_decode_data_url', this.editorAccessor)) {
this.editorAccessor.noExpansionOccurred(); this.noExpansionOccurred();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册