Skip to content

Pasting whitespace in Autohotkey 2 file triggers an error #697

Description

@jwbth

Description

Pasting whitespace (e.g. " ") in an AutoHotkey 2 file triggers a popup, resulting in this error in the Output:

[Error - 11:51:12 AM] Request textDocument/rangeFormatting failed.
  Message: Request textDocument/rangeFormatting failed with message: Cannot read properties of undefined (reading 'text')
  Code: -32603 

This is annoying.

Reproduction steps

Steps to reproduce the behavior:

  1. Create an AutoHotkey 2 file with this content:
    Test() {
      
    }
  2. Copypaste a single space inside the function body.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsomething isn't working

Projects

  • Status
    To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions