提交 ea2f6c63 编写于 作者: P Pine Wu

Fix #87493

上级 67e6aef0
......@@ -32,7 +32,12 @@ export function updateEmmetExtensionsPath() {
let extensionsPath = vscode.workspace.getConfiguration('emmet')['extensionsPath'];
if (_currentExtensionsPath !== extensionsPath) {
_currentExtensionsPath = extensionsPath;
_emmetHelper.updateExtensionsPath(extensionsPath, vscode.workspace.rootPath).then(null, (err: string) => vscode.window.showErrorMessage(err));
if (!vscode.workspace.workspaceFolders) {
return;
} else {
const rootPath = vscode.workspace.workspaceFolders[0].uri.fsPath;
_emmetHelper.updateExtensionsPath(extensionsPath, rootPath).then(null, (err: string) => vscode.window.showErrorMessage(err));
}
}
}
......@@ -622,4 +627,4 @@ export function trimQuotes(s: string) {
}
return s;
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册