Move absolute path check to avoid dependency on path in emmet helper

This commit is contained in:
Ramya Achutha Rao
2018-01-11 19:01:53 -08:00
parent 1aaa1006aa
commit ca023a700f
+5
View File
@@ -31,6 +31,11 @@ export function resolveUpdateExtensionsPath() {
}
if (_currentExtensionsPath !== extensionsPath) {
_currentExtensionsPath = extensionsPath;
if (_currentExtensionsPath && !path.isAbsolute(_currentExtensionsPath)) {
vscode.window.showErrorMessage('The path provided in emmet.extensionsPath setting should be absoulte path');
_emmetHelper.updateExtensionsPath();
return;
}
_emmetHelper.updateExtensionsPath(_currentExtensionsPath).then(null, (err: string) => vscode.window.showErrorMessage(err));
}
}