🐛 BUG: cannot find Astro installation with yarn berry
#659
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: yarn-pnp
Issue specific to yarn pnp support (scope)
Describe the Bug
Intellisense doesn't seem to get along with
yarn berry
.I've installed the sdk, and configured the
ls-path
option accordinglyThis is how it looks:
As you can see in the image above, the
Astro
variable is being recognized as a global variable, but it is coming as if it were of typeany
, and since its type isany
, intellisense dies right there:There's not errors or warnings in the output logs.
I'm testing this on win11, I'll try it on macos and ubuntu next week when I get back from vacation
Steps to Reproduce
yarn create astro
yarn add @astrojs/language-server
- this is to let yarn know it has to install the astro sdkyarn dlx @yarnpkg/sdks vscode
- yarn will detect astro and install the sdkastro.language-server.ls-path
topath/to/repo/astro/.yarn/sdks/@astrojs/language-server/bin/nodeServer.js
The text was updated successfully, but these errors were encountered: