Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes case where endPosition === startPosition #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 13, 2018

  1. Fixes case where endPosition === startPosition

    Some times, when endPosition is equal to startPosition, length ends up being zero.
    
    This makes language server (I'm using javascript-typescript-langserver) give wrong diagnostics
    flagging the problem at position (0, 0).
    
    `space-in-parens` error is an example:
    
    ```es6
        import('./test3' /* webpackChunkName: "test3" */).then(({ test3 }) => {
          test3('first');
        });
    ```
    Kronuz committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    0c908bc View commit details
    Browse the repository at this point in the history