We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e618be commit 1d6f462Copy full SHA for 1d6f462
src/services/cssNavigation.ts
@@ -423,9 +423,11 @@ export class CSSNavigation {
423
}
424
425
// Treat bare module names (“bootstrap/...”) like sass-loader does
426
- const isBareImport = !target.startsWith('.') // not ./ or ../
427
- && !target.startsWith('/') // not workspace-absolute
428
- && target.indexOf(':') === -1; // not a scheme (file://)
+ const startsWithSchemeRegex = /^\w[\w\d+.-]:/;
+
+ const isBareImport = !target.startsWith('.') // not ./ or ../
429
+ && !target.startsWith('/') // not workspace-absolute
430
+ && !startsWithSchemeRegex.test(target); // not a scheme (file://, http://, etc.)
431
432
if (isBareImport) {
433
const moduleRef = await this.mapReference(
0 commit comments