Fix problem with code-import-patterns on Windows

This commit is contained in:
Alexandru Dima
2022-01-24 16:03:32 +01:00
parent 37bfeee576
commit 54b242dcd7
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ module.exports = new class {
// resolve relative paths
if (importPath[0] === '.') {
const relativeFilename = getRelativeFilename(context);
importPath = path.join(path.dirname(relativeFilename), importPath);
importPath = path.posix.join(path.posix.dirname(relativeFilename), importPath);
if (/^src\/vs\//.test(importPath)) {
// resolve using AMD base url
importPath = importPath.substring('src/'.length);