Skip to content

node.isMissing() returns unexpected position #30

@skovhus

Description

@skovhus

I'm trying to use node.isMissing() for improving https://github.com/mads-hartmann/bash-language-server, but the startPosition and endPosition are off for the fi type below.

Example

if [[ $PATH_INPUT -nt $PATH_OUTPUT ]]; then
  babel --compact false ${PATH_INPUT} > ${PATH_OUTPUT}
f

echo "test"

The missing node will be shown after the echo statement, although I would expect it to fail at the position of f.

screenshot 2018-08-21 21 28 49

Any advice how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions