close
Skip to content

fix(lsp): Ensure file changes update lsp state#2267

Merged
ospencer merged 1 commit into
grain-lang:mainfrom
spotandjake:spotandjake-lsp-fix
Apr 2, 2025
Merged

fix(lsp): Ensure file changes update lsp state#2267
ospencer merged 1 commit into
grain-lang:mainfrom
spotandjake:spotandjake-lsp-fix

Conversation

@spotandjake
Copy link
Copy Markdown
Member

This fixes the issues we were having with the lsp where it wouldn't update when you made changes, upon some investigation and a git bisect I noticed that things stopped working in #2105 as we stopped reseting the compiler state when handling changes, this causes the parsetree cache to be hit and our changed module to never be reparsed.

I wanted to add a regression test for this but It doesn't look like our lsp test suite is setup in a way that would make that easy.

@spotandjake spotandjake added the lsp Issues related to the language server. label Apr 2, 2025
@spotandjake spotandjake self-assigned this Apr 2, 2025
@ospencer ospencer enabled auto-merge April 2, 2025 18:38
@ospencer ospencer added this pull request to the merge queue Apr 2, 2025
Merged via the queue into grain-lang:main with commit 031e39a Apr 2, 2025
@github-actions github-actions Bot mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lsp Issues related to the language server.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants