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

refactor(language-core): decouple from filename format #86

Merged
merged 7 commits into from
Nov 17, 2023

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Nov 17, 2023

resolve #46

Changes

@volar/language-core

  • Source.fileName changed to SourceFile.id
  • VirtualFile.fileName changed to VirtualFile.id

The format of the id depends on the external. For programs that rely on @volar/language-service (such as @volar/language-server, @volar/kit, @volar/monaco), it is the URI. For TypeScript plugin, tsc, it is the posix path.

@volar/langauge-service

  • ServiceContext APIs changed. (I will send PR to downstream integrations)

johnsoncodehk added a commit to vuejs/language-tools that referenced this pull request Nov 17, 2023
@johnsoncodehk johnsoncodehk changed the title refactor: Decoupled with fileName format refactor(language-core): decouple from filename format Nov 17, 2023
@johnsoncodehk johnsoncodehk marked this pull request as ready for review November 17, 2023 19:20
@johnsoncodehk johnsoncodehk merged commit f916170 into master Nov 17, 2023
6 checks passed
@johnsoncodehk johnsoncodehk deleted the only-uri branch November 17, 2023 20:47
@johnsoncodehk johnsoncodehk mentioned this pull request Nov 21, 2023
42 tasks
johnsoncodehk added a commit that referenced this pull request Jan 10, 2024
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.

Not to use fsPath anymore
1 participant