File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/schema/src/utils Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -181,15 +181,19 @@ function resolveTransitiveImportsInternal(
181
181
documents : LangiumDocuments ,
182
182
model : Model ,
183
183
initialModel = model ,
184
- visited : Set < URI > = new Set ( ) ,
184
+ visited : Set < string > = new Set ( ) ,
185
185
models : Set < Model > = new Set ( )
186
186
) : Model [ ] {
187
187
const doc = getDocument ( model ) ;
188
- if ( initialModel !== model ) {
188
+ const initialDoc = getDocument ( initialModel ) ;
189
+
190
+ if ( initialDoc . uri . fsPath . toLowerCase ( ) !== doc . uri . fsPath . toLowerCase ( ) ) {
189
191
models . add ( model ) ;
190
192
}
191
- if ( ! visited . has ( doc . uri ) ) {
192
- visited . add ( doc . uri ) ;
193
+
194
+ const normalizedPath = doc . uri . fsPath . toLowerCase ( ) ;
195
+ if ( ! visited . has ( normalizedPath ) ) {
196
+ visited . add ( normalizedPath ) ;
193
197
for ( const imp of model . imports ) {
194
198
const importedModel = resolveImport ( documents , imp ) ;
195
199
if ( importedModel ) {
You can’t perform that action at this time.
0 commit comments