File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 10
10
using System . Diagnostics . CodeAnalysis ;
11
11
using System . Globalization ;
12
12
using System . Linq ;
13
+ using System . Runtime . InteropServices ;
13
14
using System . Management . Automation ;
14
15
using System . Management . Automation . Runspaces ;
15
16
using Microsoft . PowerShell . Internal ;
@@ -299,7 +300,8 @@ private CommandCompletion GetCompletions()
299
300
if ( start < 0 || start > _singleton . _buffer . Length ) return null ;
300
301
if ( length < 0 || length > ( _singleton . _buffer . Length - start ) ) return null ;
301
302
302
- if ( _tabCompletions . CompletionMatches . Count > 1 )
303
+ // Only filter out duplicates on Windows.
304
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) && _tabCompletions . CompletionMatches . Count > 1 )
303
305
{
304
306
// Filter out apparent duplicates
305
307
var hashSet = new HashSet < string > ( StringComparer . OrdinalIgnoreCase ) ;
You can’t perform that action at this time.
0 commit comments