File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/PowerShellEditorServices/Language Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -310,9 +310,14 @@ public async Task<FindReferencesResult> FindReferencesOfSymbol(
310
310
311
311
// We want to look for references first in referenced files, hence we use ordered dictionary
312
312
// TODO: File system case-sensitivity is based on filesystem not OS, but OS is a much cheaper heuristic
313
+ #if CoreCLR
314
+ // The RuntimeInformation.IsOSPlatform is not supported in .NET Framework
313
315
var fileMap = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
314
316
? new OrderedDictionary ( )
315
317
: new OrderedDictionary ( StringComparer . OrdinalIgnoreCase ) ;
318
+ #else
319
+ var fileMap = new OrderedDictionary ( StringComparer . OrdinalIgnoreCase ) ;
320
+ #endif
316
321
foreach ( ScriptFile file in referencedFiles )
317
322
{
318
323
fileMap . Add ( file . FilePath , file ) ;
You can’t perform that action at this time.
0 commit comments