Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(language-server): support files that do not exist in FS but are open in the editor for TS project #235

Merged
merged 12 commits into from
Aug 28, 2024

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Aug 28, 2024

This is a change made for test-utils. The test code can make the TS language server think that a certain file exists through openInMemoryDocument, even if the file does not exist in FS.

Example: https://github.com/vuejs/language-tools/blob/13924d1d2fb8a6f11c267dd4612c366502c1cbc5/packages/language-server/tests/inlayHints.spec.ts#L232

Copy link

pkg-pr-new bot commented Aug 28, 2024

commit: ea8b8f9

@volar/eslint

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/eslint@235

@volar/jsdelivr

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/jsdelivr@235

@volar/kit

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/kit@235

@volar/language-core

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/language-core@235

@volar/language-server

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/language-server@235

@volar/language-service

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/language-service@235

@volar/monaco

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/monaco@235

@volar/source-map

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/source-map@235

@volar/test-utils

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/test-utils@235

@volar/typescript

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/typescript@235

@volar/vscode

pnpm add https://pkg.pr.new/volarjs/volar.js/@volar/vscode@235

Open in Stackblitz

@johnsoncodehk johnsoncodehk merged commit 0e1be44 into master Aug 28, 2024
9 checks passed
@johnsoncodehk johnsoncodehk deleted the handle-unsaved-files branch August 28, 2024 17:18
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.

1 participant