Skip to content

Commit e6f759b

Browse files
committed
Document improvement for completion handler
1 parent dbf5ba2 commit e6f759b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ export default class BashServer {
313313

314314
const currentUri = params.textDocument.uri
315315

316+
// TODO: an improvement here would be to detect if the current word is
317+
// not only a parameter expansion prefix, but also if the word is actually
318+
// inside a parameter expansion (e.g. auto completing on a word $MY_VARIA).
316319
const shouldCompleteOnVariables = word
317320
? PARAMETER_EXPANSION_PREFIXES.has(word)
318321
: false

0 commit comments

Comments
 (0)