mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Move absolute path check to avoid dependency on path in emmet helper
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user