Skip to content

Good way of getting cursor position #34

@powercode

Description

@powercode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions