-
Notifications
You must be signed in to change notification settings - Fork 34
Good way of getting cursor position #34
Copy link
Copy link
Open
Description
When writing native argument completers, it is necessary to know the cursor position.
What is the kosher way of getting it? It is not passed as a parameter, but exists in the parent scope.
Would things break if we started passing this as a third parameter to the native completers?
param($wordToComplete, $commandAst, $cursorColumn)
Or is it ok to just expect it to be there in the parent scope?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels