Skip to content

Incorrect cursor movement with 'Extend Executable Code' enabled and enabled 'Watches' #25

Description

@alendit

When I set the 'Extend Executable Code' option and add a watch expression, running any code with 'Run Line and Move' jumps to the top of the file. Disabling 'Extend Executable Code' fixes the behaviour.

Atom 1.34.0, hydrogen-python 0.0.8, hydrogen 2.8.0.

EDIT: this is caused by watch statements being run through the expandCode method. The solution would seem to be to detect the origin of a statement and to not execute it in with code expansion.

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