We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573b737 commit 44c686fCopy full SHA for 44c686f
server/src/server.ts
@@ -388,7 +388,12 @@ 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
}
398
399
return allCompletions
0 commit comments