We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 016291a commit e7bd78bCopy full SHA for e7bd78b
server/src/server.ts
@@ -388,7 +388,13 @@ export default class BashServer {
388
389
if (word) {
390
// Filter to only return suffixes of the current word
391
- return allCompletions.filter(item => item.label.startsWith(word))
+ const validCompletions = allCompletions.filter(item => item.label.startsWith(word))
392
+ if (word === '{') {
393
+ // prevent a '{' from showing up in completions
394
+ // if user is trying to close a brace
395
+ return validCompletions.filter(item => item.label !== '{')
396
+ }
397
+ return validCompletions
398
}
399
400
return allCompletions
0 commit comments