File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/PowerShellEditorServices/Language Expand file tree Collapse file tree 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(
330330 ? new OrderedDictionary ( )
331331 : new OrderedDictionary ( StringComparer . OrdinalIgnoreCase ) ;
332332
333- foreach ( ScriptFile file in referencedFiles )
333+ foreach ( ScriptFile scriptFile in referencedFiles )
334334 {
335- fileMap . Add ( file . FilePath , file ) ;
335+ fileMap [ scriptFile . FilePath ] = scriptFile ;
336336 }
337337
338- foreach ( string file in workspace . EnumeratePSFiles ( ) )
338+ foreach ( string filePath in workspace . EnumeratePSFiles ( ) )
339339 {
340- if ( ! fileMap . Contains ( file ) )
340+ if ( ! fileMap . Contains ( filePath ) )
341341 {
342- if ( ! workspace . TryGetFile ( file , out ScriptFile scriptFile ) )
342+ if ( ! workspace . TryGetFile ( filePath , out ScriptFile scriptFile ) )
343343 {
344344 // If we can't access the file for some reason, just ignore it
345345 continue ;
346346 }
347347
348- fileMap . Add ( file , scriptFile ) ;
348+ fileMap [ filePath ] = scriptFile ;
349349 }
350350 }
351351
You can’t perform that action at this time.
0 commit comments