Skip to content

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

Merged
johnsoncodehk merged 7 commits intomasterfrom
only-uri
Nov 17, 2023
Merged

refactor(language-core): decouple from filename format#86
johnsoncodehk merged 7 commits intomasterfrom
only-uri

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
@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