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 b6ae113 commit 79fb8deCopy full SHA for 79fb8de
1 file changed
src/zsh.ts
@@ -195,11 +195,10 @@ _${name}() {
195
if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
196
__${name}_debug "deactivating file completion"
197
198
- # We must return an error code here to let zsh know that there were no
199
- # completions found by _describe; this is what will trigger other
200
- # matching algorithms to attempt to find completions.
201
- # For example zsh can match letters in the middle of words.
202
- return 1
+ # Return 0 to indicate completion is finished and prevent zsh from
+ # trying other completion algorithms (which could cause hanging).
+ # We use NoFileComp directive to explicitly disable file completion.
+ return 0
203
else
204
# Perform file completion
205
__${name}_debug "Activating file completion"
0 commit comments