You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and notice that completions are returned for files in the local directory.
As mentioned here, it would be nice if completers had more semantic context about the match request automatically available to them (for example, if we were in a string, etc.). In this case, it would be great if the filename matcher only matched if we were in special syntax (e.g., lines starting with ! or a %magic line), or if we were in a string. #12128 implemented an "are we in a string" check for Jedi.
Right now filename completions trigger in all sorts of situations, for example:
If there are a lot of files in a directory, this can overwhelm the completions.
To check this programmatically, you can do:
and notice that completions are returned for files in the local directory.
As mentioned here, it would be nice if completers had more semantic context about the match request automatically available to them (for example, if we were in a string, etc.). In this case, it would be great if the filename matcher only matched if we were in special syntax (e.g., lines starting with ! or a %magic line), or if we were in a string. #12128 implemented an "are we in a string" check for Jedi.
My proposal here is that we:
(FYI, another path completion issue is #11530)