Skip to content

Commit

Permalink
Fix #87493
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Mar 5, 2020
1 parent 67e6aef commit ea2f6c6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions extensions/emmet/src/util.ts
Expand Up @@ -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));
}
}
}

Expand Down Expand Up @@ -622,4 +627,4 @@ export function trimQuotes(s: string) {
}

return s;
}
}

0 comments on commit ea2f6c6

Please sign in to comment.