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(
994
994
// Look for type encoded in the tooltip for parameters and variables.
995
995
// Display PowerShell type names in [] to be consistent with PowerShell syntax
996
996
// and now the debugger displays type names.
997
- var matches = Regex . Matches ( completionDetails . ToolTipText , @"^\[(.+)\] " ) ;
997
+ var matches = Regex . Matches ( completionDetails . ToolTipText , @"^(\[.+\]) " ) ;
998
998
if ( ( matches . Count > 0 ) && ( matches [ 0 ] . Groups . Count > 1 ) )
999
999
{
1000
- detailString = "[" + matches [ 0 ] . Groups [ 1 ] . Value + "]" ;
1000
+ detailString = matches [ 0 ] . Groups [ 1 ] . Value ;
1001
1001
}
1002
1002
1003
1003
// PowerShell returns ListItemText for parameters & variables that is not prefixed
You can’t perform that action at this time.
0 commit comments