Skip to content

fix lineCharacterOffset generating a negative value - #51

Open
maverck wants to merge 2 commits into
KamasamaK:masterfrom
maverck:master
Open

fix lineCharacterOffset generating a negative value#51
maverck wants to merge 2 commits into
KamasamaK:masterfrom
maverck:master

Conversation

@maverck

@maverck maverck commented Jun 16, 2020

Copy link
Copy Markdown

lineCharacterOffset = lineText.length - 1;

this line results in a negative value sometimes? and the extension crashes and no longer provides completion.
I clamped the value so it can't be negative.

@ghedwards

ghedwards commented Nov 24, 2020

Copy link
Copy Markdown

Can this be merged , this seems to prevent issues where I have to restart VSCode to resolve them currently

@ghedwards

Copy link
Copy Markdown

Ping!? could this be merged ?

@pczarn2

pczarn2 commented Feb 1, 2023

Copy link
Copy Markdown

@KamasamaK just wondering if you saw this merge request?

@garethedwards-tass

Copy link
Copy Markdown

This is fixed in my latest fork https://github.com/garethedwards-tass/vscode-cfml turns out the fix was more involved than this specific change

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.

4 participants