Skip to content

Commit 8cab8c0

Browse files
committed
update
1 parent a071451 commit 8cab8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schema/src/utils/ast-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
Mutable,
3131
Reference,
3232
} from 'langium';
33-
import path, { isAbsolute } from 'node:path';
33+
import path from 'node:path';
3434
import { URI, Utils } from 'vscode-uri';
3535
import { findNodeModulesFile } from './pkg-utils';
3636

@@ -184,7 +184,7 @@ export function resolveImportUri(imp: ModelImport): URI | undefined {
184184

185185
if (
186186
!imp.path.startsWith('.') && // Respect relative paths
187-
!isAbsolute(imp.path) // Respect Absolute paths
187+
!path.isAbsolute(imp.path) // Respect Absolute paths
188188
) {
189189
// use the current model's path as the search context
190190
const contextPath = imp.$container.$document

0 commit comments

Comments
 (0)