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

Conversation

Kronuz
Copy link

@Kronuz Kronuz commented Jun 13, 2018

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:

    import('./test3' /* webpackChunkName: "test3" */).then(({ test3 }) => {
      test3('first');
    });

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 added a commit to Kronuz/tslint-language-service that referenced this pull request Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant