File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { BashCompletionItem, CompletionItemDataType } from './types'
13
13
import { uniqueBasedOnHash } from './util/array'
14
14
import { getShellDocumentation } from './util/sh'
15
15
16
- const PARAMETER_EXPANSION_PREFIXES = new Set ( [ '$' , '${' , '${#' ] )
16
+ const PARAMETER_EXPANSION_PREFIXES = new Set ( [ '$' , '${' ] )
17
17
18
18
/**
19
19
* The BashServer glues together the separate components to implement
@@ -331,6 +331,10 @@ export default class BashServer {
331
331
} )
332
332
333
333
if ( shouldCompleteOnVariables ) {
334
+ // In case we auto complete on a word that starts a parameter expansion,
335
+ // we do not return anything else than variable/parameter suggestions.
336
+ // Note: that LSP clients should not call onCompletion in the middle
337
+ // of a word, so the following should work for client.
334
338
return symbolCompletions
335
339
}
336
340
You can’t perform that action at this time.
0 commit comments