Closed vinistock closed 2 weeks ago
Are the vscode/
changes supposed to be part of this PR?
The upgrade ended up uncovering some other Windows errors and I was trying to get CI to pass. If you prefer, I can split that into a separate PR, but the changes are necessary.
The upgrade ended up uncovering some other Windows errors and I was trying to get CI to pass. If you prefer, I can split that into a separate PR, but the changes are necessary.
Ok, yeah I'd say we should split them since there's quite a lot of changes. I'll limit my review to the Ruby part.
Split the other part, which needs to be merged first https://github.com/Shopify/ruby-lsp/pull/2033.
https://github.com/Shopify/ruby-lsp/pull/2033 is blocked on Windows, so I'll update this branch to remove the /vscode
changes.
Motivation
Update our Prism requirement to
v0.28
or higher. Versionv0.28
includes the newASCIISource
with performance optimization for sources that do not contain multibyte characters, which fixes the performance regression we introduced in semantic highlighting.Implementation
Before, each part of a constant path was also a constant read. After this version, only the parent parts of the constant path may be constant reads, the main name of the constant is embedded inside the constant path node.
Automated Tests
Fixed a few tests.