Skip to content

Fix several lsp crashes for v1#1175

Merged
TwitchBronBron merged 1 commit into
release-1.0.0from
fix-lsp-crashes
May 10, 2024
Merged

Fix several lsp crashes for v1#1175
TwitchBronBron merged 1 commit into
release-1.0.0from
fix-lsp-crashes

Conversation

@TwitchBronBron

Copy link
Copy Markdown
Member

Fix several crashes in the language server related to missing range or AST properties.

@TwitchBronBron TwitchBronBron added this to the v1.0.0 milestone May 10, 2024
}

const tokenBefore = file.getTokenBefore(file.getClosestToken(expression.range.start));
if (!expression) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this after the if statement above, because there was a small chance of expression being null, this catches that.

@TwitchBronBron
TwitchBronBron merged commit e81178c into release-1.0.0 May 10, 2024
@TwitchBronBron
TwitchBronBron deleted the fix-lsp-crashes branch May 10, 2024 18:59
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.

2 participants