Skip to content

Extension inserts snippet 1 line higher #62

@TuurDutoit

Description

@TuurDutoit

When typing, for example, for i arr and hitting the shortcut, the for-loop is inserted on the line above the one I typed for i arr. This happens with templates defined in the .json files as well as in the .snippet files.
A bigger problem is when trying to insert on the first line of the document: the extension tries to insert on line -1, which obviously doesn't exist, so CodeMirror throws an error and the snippet is not inserted.

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