vite-plugin-uni-pages
vite-plugin-uni-pages copied to clipboard
chore(deps): update dependency @volar/language-service to v2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @volar/language-service (source) | ^1.11.1 -> ^2.0.0 |
Release Notes
volarjs/volar.js (@volar/language-service)
v2.4.13
Bug Fixes
- fix(labs): add document selector check for language clients in virtualFilesView
- fix(labs): add document selector check for language clients in servicePluginsView
- fix(typescript): fix issue when mapping ranges are exactly the same as ranges passed to getFixesAtPosition and getFormattingEditsForRange (#270) - Thanks to @piotrtomiak!
- fix(typescript): robust calculation of generated span for semantic classifications (#271) - Thanks to @KazariEX
Other Changes
- chore: fix years in changelog (#268) - Thanks to @tomblachut
v2.4.12
Bug Fixes
- fix(language-core): trigger targets dirty when associatedOnly is true
- fix(typescript): force update target file version on association dirty (#267)
- fix(jsdelivr): make params.
getPackageVersionuseful (#266) - Thanks to @wangcch!
Other Changes
- docs(monaco): update documentation to match the current API status (#255) - Thanks to @elchininet!
- docs(typescript): clean up and document
createLanguageServicePluginandcreateAsyncLanguageServicePlugin(#261) - Thanks to @machty!
v2.4.11
Features
- feat(typescript): add typescriptObject option to runTsc (#245) - Thanks to @zhiyuanzmj!
Bug Fixes
- fix(typescript): should not suppressing getLanguageId crashes (#253)
- fix(typescript): force update the opened script snapshot after the language plugin is ready (#254)
- fix(typescript): fix issue with transpiled TypeScript files not being registered with a project at all (#250) - Thanks to @piotrtomiak!
- fix(typescript): resolve the shim used for tsc in Typescript v5.7 and up (#252) - Thanks to @kitsune7!
Other Changes
- docs(source-map): updated API section based on #207 (#248) - Thanks to @alamhubb!
v2.4.10
Bug Fixes
- typescript: fix interactive refactors (#244) - Thanks to @andrewbranch!
v2.4.9
Bug Fixes
- typescript: avoid crash when converting relatedInformation from overly large files
v2.4.8
Bug Fixes
- typescript: content-sensitive features are only allowed to return results in contiguous mapped ranges (#243)
v2.4.7
Bug Fixes
- typescript: set module resolution cache (#242) - Thanks to @Princesseuh!
v2.4.6
Bug Fixes
v2.4.5
Bug Fixes
- typescript: avoid duplicate completion items in plugin mode
Refactors
- typescript: deprecated resolveLanguageServiceHost
- kit: add setup hook for create checker functions
v2.4.4
Bug Fixes
- monaco: requests always cancel
v2.4.3
Bug Fixes
- language-server: handle completion item snippet unsupported (withastro/language-tools#948)
- monaco: getDiagnostics throws "TypeError: response is not a function"
Refactors
- language-server: improve error handling for unsupported capabilities
v2.4.2
Bug Fixes
- language-server: prepare language service for synchronized documents
- typescript: fix inlay hints mapping for large chunks of source code mapped verbatim to generated code (#236) - Thanks to @piotrtomiak!
v2.4.1
Bug Fixes
- fix(labs): add document selector check for language clients in virtualFilesView
- fix(labs): add document selector check for language clients in servicePluginsView
- fix(typescript): fix issue when mapping ranges are exactly the same as ranges passed to getFixesAtPosition and getFormattingEditsForRange (#270) - Thanks to @piotrtomiak!
- fix(typescript): robust calculation of generated span for semantic classifications (#271) - Thanks to @KazariEX
Other Changes
- chore: fix years in changelog (#268) - Thanks to @tomblachut
v2.4.0
Features
- language-service, language-server: add support for LSP
workspaceSymbol/resolverequest (#213) - language-service, language-server: add support for LSP
workspace/executeCommandrequest (#214) - language-service, language-server: add support for LSP
textDocument/declarationrequest - language-service, language-server: add support for LSP
textDocument/monikerrequest - language-service, language-server: add support for LSP
textDocument/prepareTypeHierarchytypeHierarchy/supertypestypeHierarchy/subtypesrequests - language-service, language-server: add support for LSP
textDocument/inlineValuerequest - monaco: implement CancellationToken for workers (#221)
- typescript: export
replaceTscContentfor downstream usage (#223) - Thanks @so1ve - kit: add support for checking project references files (#232)
Bug Fixes
- language-service: multi-level DocumentSymbol results from different virtual code are not merged accurately
- typescript: use Proxy instead of modifying LanguageService instance (#216)
- typescript: implement
directoryExistsfor language service host - typescript: improve accuracy of
runTscextensions parameter behavior (#222) - typescript: synchronize script snapshots in a side-effect-free manner (#226)
- typescript: add missing workspace symbols support for TS plugin (vuejs/language-tools#4595)
- typescript: add missing code actions support for TS plugin (vuejs/language-tools#4586)
- monaco: can't recognize the package with type definitions in
@types/xxx(#81) - language-server: simplify
asFileNameresult if possible (volarjs/vscode-typescript-web#4497) - language-server: avoid loading diagnosticMessages for en language
- language-server: use
Program.getSourceFileinstead ofaskedFilesto more accurately determine indirect reference files - language-server: respect client
linkSupportproperty for declaration, definition, typeDefinition, implementation requests - jsdelivr: avoid sending read file request if
pkgFilePathis empty - jsdelivr: avoid sending flat request for
xxx.ts,xxx.d.tsmodule names - jsdelivr: avoid sending flat request for
@types/xxxif packagexxxdo not exist - source-map: don't throw when
fromOffsetsis not sorted - labs: associated script mappings are not visible
Refactors
- language-server: update
watchFilesAPI to return Disposable - language-server: only register event handlers when the language server does support a certain language feature
- language-server: add
setuphook forcreateTypeScriptProjectfunction - langauge-server: improve LSP diagnostic integration (#230)
- language-server: split code based on logical concerns (#231)
- typescript: add
setuphook forrunTscfunction - typescript: add
extraExtensionsToRemoveoption forrunTscfunction for glint emit support - typescript:
createAsyncLanguageServicePlugin'sscriptKindparam allows pass a getter - monaco: add
setuphook forcreateSimpleWorkerLanguageService,createTypeScriptWorkerServicefunctions - monaco: replace
activateAutomaticTypeAcquisitionwithcreateNpmFileSystemfrom the new@volar/jsdelivrpackage (#218) (#219) - monaco: rename
servicePluginsoption tolanguageServicePlugins - monaco: update to
monaco-languageserver-types0.4 (#225) - Thanks @remcohaszing - language-core: no longer coupled to the TypeScript context, TypeScript properties are defined via interface merging in
@volar/typescript(#215) - language-service: move project context from
Languageto language service option (#217) - test-utils: update
startLanguageServerfunction to accept multiple workspace folders (#229)
v2.3.4
Bug Fixes
- language-service:
EmbeddedCodeFormattingOptions.levelvalue incorrect
v2.3.3
Bug Fixes
- language-core: move virtual code ID casing verify to language service (vuejs/language-tools#4497)
v2.3.2
Bug Fixes
- language-core: re-export
SourceMap(#210) - Thanks @KermanX - language-service: make sure provideSelectionRanges array length is valid
- language-service: don't format parent virtual code if formatting range inside embedded code
- language-core: assert virtual code ID must be lowercase
- language-server: fix Webpack compatibility
v2.3.1
Features
- labs: improving the capabilities of the virtual code editor (#208)
Bug Fixes
- labs: language client ID should not be case sensitive
- language-server: fix URI conversion for file names with similar embedded code ID
- language-server: write virtual file command broken
- vscode: error tolerant to
contentChangeslength (vuejs/language-tools#4457)
Performance
- source-map: use binary search for
translateOffset
Refactors
- source-map: decoupling from
muggle-string - source-map: improve range mapping accuracy (#204)
- source-map: API refactoring (Part of #206) - Thanks @piotrtomiak
- language-service: delete
SourceMapWithDocuments,LinkedCodeMapWithDocument - language-core: pluginized source map factory function (#207)
Other Changes
v2.3.0
Features
- language-core: added option to resolve hidden extensions (#190)
- language-core: reimplemented multi-source mapping (#194)
- language-core: completed support for multi-source mapping in plugin mode (#197) - Thanks @piotrtomiak
- language-server: added support for Workspace Diagnostics (#199)
- language-server: accurately defined language server capabilities (#185)
- typescript: added option to prevent offset in plugin mode (#191)
Bug Fixes
- language-service: fixed conversion of markdown links
- vscode: showed error on missing TypeScript lib (#195) - Thanks @msujew
- monaco: fixed Monaco selection ranges conversion (#198) - Thanks @remcohaszing
Performance
- vscode: auto insertion request now exits early on vscode (#157)
- language-server: improved snapshot reusability (#196)
- typescript: skips
searchExternalFilesif extra extensions are empty
Refactors
- typescript: added
setupoption forcreateLanguageServicePlugin,createAsyncLanguageServicePlugin - language-core:
LanguagePluginnow requires the first generic parameter to specify the script ID type - language-core:
updateVirtualCodeis now optional, if not provided,createVirtualCodeis always called to update source script - language-server:
createTypeScriptProjectProviderhas been renamed tocreateTypeScriptProject - language-server:
createSimpleProjectProviderhas been renamed tocreateSimpleProject - language-server: no longer handles
@vscode/l10n - language-server: removed
InitializationOptionsinterface - language-service: LSP related logic has been changed to be completely based on URI (#182)
- language-service:
LanguageServiceEnvironment#workapceFolderis now a URI array and has been renamed toworkspaceFolders - language-service:
provideAutoInsertionEdithas been renamed toprovideAutoInsertSnippet - language-service: normalized
LanguageServiceAPI name format - labs: Codegen Stacks debug feature has been removed (#184)
v2.2.5
Features
- source-map: add API to support generated code with different length than original code #183 - Thanks @piotrtomiak
v2.2.4
Bug Fixes
- typescript: path completion not working for meta files
v2.2.3
Bug Fixes
- typescript: empty items list should be valid completion result vuejs/language-tools#4368
- typescript: deduplication when merging hover infos #178
- language-service: transforming volar embedded URIs in markdown #180 - Thanks @remcohaszing
- language-server: memorize URI conversion results of synchronized documents #181
v2.2.2
Bug Fixes
- typescript: TS plugin only displays the first hover info
- language-core:
isRenameEnabledrespectCodeInformation.navigation.shouldRename - test-utils: use stdio transport for test server #175
v2.2.1
Features
- language-server: restored support for "Reload Project" command
Bug Fixes
- typescript: additional completion not working in TS plugin vuejs/language-tools#4323
- language-server: pass correct languageId when creating virtual code #173
v2.2.0
Features
Bug Fixes
- typescript:
runTsccannot display source code for errors vuejs/language-tools#4099 - typescript:
runTsccannot display source code for errors with--incremental#158 #162 - Thanks @wangshunnn - typescript: handle invalid references result
- typescript: parameter hints not working in TS plugin vuejs/language-tools#3948
- typescript: fault tolerance with TS file size assertion vuejs/language-tools#4278
- typescript: TS plugin find reference result's definition span should be able to fall back to file root
- typescript: prioritize resolving JS virtual script to matched
.d.tsfile - typescript: more inclusive performance rename operation vuejs/language-tools#4297
- typescript: normalize filePath for language service APIs vuejs/language-tools#4297
- typescript: avoid eagerly updating source scripts #166
- vscode: newly created file failed to match tsconfig immediately vuejs/language-tools#4297
- vscode: avoid crash when workspace tsdk does not exist
- language-server: fault-tolerant URI translation #159
- language-core: handle empty mappings in updateVirtualCodeMapOfMap #161 - Thanks @remcohaszing
Performance
- typescript: fix
runTscperformance regression since 2.0 vuejs/language-tools#4238 - typescript:
runTsccache module resolution result vuejs/language-tools#4177
Refactors
- More accurate interface design and terminology #154
- language-server: architecture improvements #167
- language-server: remove
ConfigurationHostabstract - language-service: expose changed setting sections on
onDidChangeConfiguration - language-service:
ServiceContext.injectmethod return nullable - typescript:
decorateLanguageServiceHostless side effects #160 - language-core: make
CodeInformationproperties optional - language-core: resolved language ID by LangaugePlugin #168
v2.1.6
Bug Fixes
- typescript: ts plugin cannot generate embedded code for .ts files
- typescript: handle mapping for formatting APIs in plugin vuejs/language-tools#4066
- typescript: handle mapping for file rename API in plugin vuejs/language-tools#3646
- typescript: semantic tokens range param does not mapped correctly vuejs/language-tools#3934 vuejs/language-tools#3935
v2.1.5
Bug Fixes
- language-server:
GetVirtualCodeRequestincorrectly responses empty vritual code if no mappings - typescript: mark the parent directory as exists when created a file
v2.1.4
Features
- test-utils: add 3 APIs:
updateTextDocument,updateConfiguration,didChangeWatchedFiles
Bug Fixes
- typescript: sys cache is not updated correctly in case sensitive file system #153
- typescript: create a new file did not update sys cache (https://github.com/withastro/language-tools/issues/685)
v2.1.3
Bug Fixes
- typescript: fix emit signature to enable incremental work to function properly #150 - thanks @skywalker512
- language-server: also consider deletions for getRootFiles #152 - thanks @Princesseuh
Other Changes
- language-service: add name for
SemanticTokentuple members - vscode: migrate from
StatusBarItemtoLanguageStatusItem
v2.1.2
Bug Fixes
- typescript: reverted f041c79 as it caused severe performance regressions vuejs/language-tools#4024
v2.1.1
Bug Fixes
- test-utils: allow unknown initialization options and expose
localeoption #142 - typescript: virtual file update condition should be based generated snapshot rather than source script version
- monaco: correct package name resolve on ATA #149
- language-service: provideCodeActions's range param is not accurately mapped
- language-service: provideInlayHints's range param is not accurately mapped
Refactors
v2.1.0
Features
- language-service: more reliable embedded code formatting #138
- Embedded code indentation is no longer handled by
@volar/language-service, but instead calculated and passed asinitialIndentLevel, which is then reliably handled by ServicePlugin for additional indentation in specific languages. - The
provideDocumentFormattingEditsandprovideOnTypeFormattingEditsAPIs now accept theEmbeddedCodeFormattingOptionsparameter, which includesinitialIndentLevel. - Formatting ranges are now correctly mapped to embedded code formatting ranges.
- Removed the no longer needed
ServicePlugin.provideFormattingIndentSensitiveLinesAPI. - No longer relies on the conventional
volar.format.initialIndenteditor setting. - Added
ServicePlugin.resolveEmbeddedCodeFormattingOptionsAPI, allowing downstream tools to modify theinitialIndentLevelpassed to ServicePlugin based on custom settings (replacingvolar.format.initialIndent).
- Embedded code indentation is no longer handled by
Refactors
- test-utils: server tester support
ClientCapabilitiesparam forinitialize()API - test-utils: server tester expose
sendDocumentRangeFormattingRequestRequest()andshutdown()API - language-core: make embeddedCodes optional in VirtualCode #137
- language-server: SemanticTokens requests are no longer delayed by 200ms
- language-server: APIs updates #140
createSimpleProjectProviderhas been renamed tocreateSimpleProjectProviderFactoryand needs to be invoked with no arguments.createTypeScriptProjectProviderhas been renamed tocreateTypeScriptProjectProviderFactoryand needs to be invoked with a TS module as an argument.- Deprecate
typescript#tsdk,typescript#tsdkUrl,ignoreTriggerCharactersinitialization options. - Deprecate
fullCompletionListinitialization option. #139 - Remove experimental
provideDiagnosticMarkupContentAPI.
Bug Fixes
- language-server: language features not working for untitled documents #135
- language-server:
pushDiagnosticsshould not be notified when closing a file if server push diagnostics are not enabled - language-service
provideSelectionRangesAPI multiple result merging method is inconsistent with VSCode - language-service
provideDocumentSemanticTokensAPI'srangeparam is not mapped to virtual code - language-service
provideDocumentFormattingEditsAPI'srangeparam is not accurately mapped to virtual code #136 - language-service fix caching of semantic diagnostics #141
- test-utils: invalidate cache when calling
openInMemoryDocument() - monaco:
insertTextandrangeproperties of completion item not converted correctly - typescript: ts plugin incorrectly resolve module name
v2.0.4
Features
- ci: integrate with https://github.com/volarjs/ecosystem-ci
Bug Fixes
- language-service: transform markdown links in completion items #133
- typescript: typescript plugin module resolve behavior inconsistent with language server
- typescript: typescript plugin breaks semantic highlighting for .ts files (https://github.com/withastro/language-tools/issues/788)
v2.0.3
Features
- labs: recognize Glint and other file extensions via reading installed extensions language configuration
- labs: improve mapping decorations display
Bug Fixes
- labs: extension keeps sending requests when output panel is opened
- language-service: transform markdown links for hover content (https://github.com/mdx-js/mdx-analyzer/issues/394)
- typescript: unable to resolve import path based on package export (https://github.com/withastro/language-tools/issues/778)
v2.0.2
Bug Fixes
- labs: extension not working with framework version 2.0.0
- typescript: remove runtime dependency on
@volar/language-service - typescript: additional completion not working in ts plugin
- typescript: remove warning when
allowNonTsExtensionsis not set
v2.0.1
Features
- typescript: expose
FileRegistryinproxyCreateProgram()#128 - typescript: re-support extra virtual scripts for LSP and Kit #132
Bug Fixes
- vscode: update
currentLabsVersionto2 - typescript: remove mistakenly published scripts
lib/quickstart/create(Async)TSServerPlugin, please uselib/quickstart/create(Async)LanguageServicePlugininstead of
v2.0.0
Please refer to #85 for details.
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Walkthrough
The recent changes involve an upgrade of the @volar/language-service dependency within the volar package's package.json file. The version has been updated from ^1.11.1 to ^2.0.0, reflecting a transition to a new major version. This upgrade may bring significant enhancements, including improved performance and compatibility, while potentially introducing breaking changes that developers should consider.
Changes
| File Path | Change Summary |
|---|---|
packages/volar/package.json |
Updated @volar/language-service version from ^1.11.1 to ^2.0.0 in peerDependencies and devDependencies. |
Sequence Diagram(s)
(No sequence diagrams generated as changes do not involve modifications to control flow or new features.)
Poem
🐇 In the garden of code, a change takes flight,
With a leap and a bound, it feels just right.
Upgraded the language service, oh what a delight,
A hop to version two, shining so bright!
Performance and features, a joyful sight!
Let's celebrate progress, our coding ignite! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai generate interesting stats about this repository and render them as a table.@coderabbitai show all the console.log statements in this repository.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (invoked as PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.