File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/PowerShellEditorServices.Protocol/Server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -994,10 +994,10 @@ private static CompletionItem CreateCompletionItem(
994994 // Look for type encoded in the tooltip for parameters and variables.
995995 // Display PowerShell type names in [] to be consistent with PowerShell syntax
996996 // and now the debugger displays type names.
997- var matches = Regex . Matches ( completionDetails . ToolTipText , @"^\[(.+)\] " ) ;
997+ var matches = Regex . Matches ( completionDetails . ToolTipText , @"^(\[.+\]) " ) ;
998998 if ( ( matches . Count > 0 ) && ( matches [ 0 ] . Groups . Count > 1 ) )
999999 {
1000- detailString = "[" + matches [ 0 ] . Groups [ 1 ] . Value + "]" ;
1000+ detailString = matches [ 0 ] . Groups [ 1 ] . Value ;
10011001 }
10021002
10031003 // PowerShell returns ListItemText for parameters & variables that is not prefixed
You can’t perform that action at this time.
0 commit comments