marko-js / language-server

Marko autocomplete, intellisense and editor support.
MIT License
38 stars 8 forks source link

fix: workspaces with different project types (ts/js) #211

Closed mlrawlings closed 11 months ago

mlrawlings commented 11 months ago

Scope

Description

Fix an issue that shows up in monorepo/workspaces:

All open files were treated as part of the project. This meant a file part of a TS project would complain about type definitions being present if it were loaded in a JS project and vice-versa.

Additionally a cache on project config was added since the fix involved the addition of project lookups for all open files.

Motivation and Context

Screenshots (if appropriate):

Checklist:

changeset-bot[bot] commented 11 months ago

⚠️ No Changeset found

Latest commit: 2ff2274fad7fe5f219a7e242eff81cf16bbcb89c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR