bring back css tests (#160326)

This commit is contained in:
Martin Aeschlimann
2022-09-07 19:43:47 +02:00
committed by GitHub
parent 28c330caf0
commit 440e61ffab
4 changed files with 18 additions and 18 deletions

View File

@@ -27,11 +27,11 @@ export function getDocumentContext(documentUri: string, workspaceFolders: Worksp
if (ref[0] === '/') { // resolve absolute path against the current workspace folder
const folderUri = getRootFolder();
if (folderUri) {
return folderUri + ref.substr(1);
return folderUri + ref.substring(1);
}
}
base = base.substr(0, base.lastIndexOf('/') + 1);
return Utils.resolvePath(URI.parse(base), ref).toString();
base = base.substring(0, base.lastIndexOf('/') + 1);
return Utils.resolvePath(URI.parse(base), ref).toString(true);
},
};
}