File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,20 +84,20 @@ export class SystemdUnitsManager {
84
84
if ( boundary . test ( pendingText [ i ] ) ) break ;
85
85
pending ++ ;
86
86
}
87
- const match = pendingText . match ( / (?: ^ | \s ) ( .* ?) $ / ) ;
88
- if ( ! match ) return [ ] ;
89
87
90
88
if ( ! this . cached ) {
91
89
this . cached = this . builtInItems . map ( ( it ) => {
92
90
const completion : SpecialUnitCompletionItem = new CompletionItem ( it . name , CompletionItemKind . File ) ;
93
91
//#region patch
94
92
if ( it . name === "[email protected] " ) {
95
93
completion . label = { label : it . name , detail : ' escaped-block-dev-node-path' } ;
94
+ completion . filterText = it . name ;
96
95
completion . insertText = new SnippetString ( 'blockdev@\${0:escaped_block_dev_node_path}.target' ) ;
97
96
}
98
97
//#endregion patch
99
98
if ( it . docs ) completion . documentation = it . docs ;
100
99
if ( it . since ) completion . since = it . since ;
100
+ completion . commitCharacters = [ ' ' ] ;
101
101
return completion ;
102
102
} ) ;
103
103
}
You can’t perform that action at this time.
0 commit comments