@@ -28,9 +28,9 @@ import {
2828 Mutable ,
2929 Reference ,
3030} from 'langium' ;
31+ import { isAbsolute } from 'node:path' ;
3132import { URI , Utils } from 'vscode-uri' ;
3233import { findNodeModulesFile } from './pkg-utils' ;
33- import { isAbsolute } from 'node:path'
3434
3535export function extractDataModelsWithAllowRules ( model : Model ) : DataModel [ ] {
3636 return model . declarations . filter (
@@ -68,6 +68,8 @@ export function mergeBaseModel(model: Model, linker: Linker) {
6868 . filter ( ( attr ) => ! attr . $inheritedFrom )
6969 // don't inherit `@@delegate` attribute
7070 . filter ( ( attr ) => attr . decl . $refText !== '@@delegate' )
71+ // don't inherit `@@map` attribute
72+ . filter ( ( attr ) => attr . decl . $refText !== '@@map' )
7173 . map ( ( attr ) => cloneAst ( attr , dataModel , buildReference ) )
7274 . concat ( dataModel . attributes ) ;
7375 }
@@ -142,8 +144,8 @@ export function resolveImportUri(imp: ModelImport): URI | undefined {
142144 }
143145
144146 if (
145- ! imp . path . startsWith ( '.' ) // Respect relative paths
146- && ! isAbsolute ( imp . path ) // Respect Absolute paths
147+ ! imp . path . startsWith ( '.' ) && // Respect relative paths
148+ ! isAbsolute ( imp . path ) // Respect Absolute paths
147149 ) {
148150 imp . path = findNodeModulesFile ( imp . path ) ?? imp . path ;
149151 }
0 commit comments