File tree 1 file changed +6
-6
lines changed
src/PowerShellEditorServices/Language
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -330,22 +330,22 @@ public async Task<FindReferencesResult> FindReferencesOfSymbol(
330
330
? new OrderedDictionary ( )
331
331
: new OrderedDictionary ( StringComparer . OrdinalIgnoreCase ) ;
332
332
333
- foreach ( ScriptFile file in referencedFiles )
333
+ foreach ( ScriptFile scriptFile in referencedFiles )
334
334
{
335
- fileMap . Add ( file . FilePath , file ) ;
335
+ fileMap [ scriptFile . FilePath ] = scriptFile ;
336
336
}
337
337
338
- foreach ( string file in workspace . EnumeratePSFiles ( ) )
338
+ foreach ( string filePath in workspace . EnumeratePSFiles ( ) )
339
339
{
340
- if ( ! fileMap . Contains ( file ) )
340
+ if ( ! fileMap . Contains ( filePath ) )
341
341
{
342
- if ( ! workspace . TryGetFile ( file , out ScriptFile scriptFile ) )
342
+ if ( ! workspace . TryGetFile ( filePath , out ScriptFile scriptFile ) )
343
343
{
344
344
// If we can't access the file for some reason, just ignore it
345
345
continue ;
346
346
}
347
347
348
- fileMap . Add ( file , scriptFile ) ;
348
+ fileMap [ filePath ] = scriptFile ;
349
349
}
350
350
}
351
351
You can’t perform that action at this time.
0 commit comments