mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Don't try using path mapping for vscode.dev with local folder (#233139)
For #231098
This commit is contained in:
@@ -344,8 +344,13 @@ function createServerHost(
|
||||
return path;
|
||||
}
|
||||
|
||||
const isNm = looksLikeNodeModules(path) && !path.startsWith('/vscode-global-typings/');
|
||||
// skip paths without .. or ./ or /. And things that look like node_modules
|
||||
const isNm = looksLikeNodeModules(path)
|
||||
&& !path.startsWith('/vscode-global-typings/')
|
||||
// Handle the case where a local folder has been opened in VS Code
|
||||
// In these cases we do not want to use the mapped node_module
|
||||
&& !path.startsWith('/file/');
|
||||
|
||||
// skip paths without .. or ./ or /
|
||||
if (!isNm && !path.match(/\.\.|\/\.|\.\//)) {
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user