uni-helper / vite-plugin-uni-pages

为 Vite 下的 uni-app 提供基于文件系统的路由
https://uni-helper.js.org/vite-plugin-uni-pages
MIT License
104 stars 15 forks source link

chore(deps): update dependency @volar/language-service to v2 #137

Open renovate[bot] opened 7 months ago

renovate[bot] commented 7 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@volar/language-service (source) ^1.11.1 -> ^2.0.0 age adoption passing confidence

Release Notes

volarjs/volar.js (@​volar/language-service) ### [`v2.4.2`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#242-2024-09-04) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.4.1...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](https://redirect.github.com/volarjs/volar.js/issues/236)) - Thanks to [@​piotrtomiak](https://redirect.github.com/piotrtomiak)! ### [`v2.4.1`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#241-2024-08-29) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.4.0...v2.4.1) ##### Features - **language-server:** support files that do not exist in FS but are open in the editor for TS project ([#​235](https://redirect.github.com/volarjs/volar.js/issues/235)) ##### Bug Fixes - **typescript:** ensure unopened files are synced to project ([vuejs/language-tools#4711](https://redirect.github.com/vuejs/language-tools/issues/4711)) ([vuejs/language-tools#4632](https://redirect.github.com/vuejs/language-tools/issues/4632)) - Thanks to [@​davidmatter](https://redirect.github.com/davidmatter)! - **language-server:** avoid project initialized twice - **language-service:** don't set item data if item has been resolved - **language-service:** don't set item data if LanguageServicePlugin does not provide resolve hook ([#​233](https://redirect.github.com/volarjs/volar.js/issues/233)) - **test-utils:** correct `openUntitledDocument` params order - **typescript:** `runTsc` does not recognize service script with `preventLeadingOffset` enabled - **language-server:** replace `setTimeout` with `setImmediate` ([#​234](https://redirect.github.com/volarjs/volar.js/issues/234)) - Thanks to [@​nieyuyao](https://redirect.github.com/nieyuyao)! ##### Refactors - **language-server:** add `onDidChange` API for `LanguageServer.workspaceFolders` - **language-core:** add `error`, `source` params for `verification.shouldReport` hook ### [`v2.4.0`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#240-2024-08-18) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.3.4...v2.4.0) ##### Features - **language-service, language-server:** add support for LSP [`workspaceSymbol/resolve`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_symbolResolve) request ([#​213](https://redirect.github.com/volarjs/volar.js/issues/213)) - **language-service, language-server:** add support for LSP [`workspace/executeCommand`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_executeCommand) request ([#​214](https://redirect.github.com/volarjs/volar.js/issues/214)) - **language-service, language-server:** add support for LSP [`textDocument/declaration`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_declaration) request - **language-service, language-server:** add support for LSP [`textDocument/moniker`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_moniker) request - **language-service, language-server:** add support for LSP [`textDocument/prepareTypeHierarchy`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_prepareTypeHierarchy) [`typeHierarchy/supertypes`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#typeHierarchy_supertypes) [`typeHierarchy/subtypes`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#typeHierarchy_subtypes) requests - **language-service, language-server:** add support for LSP [`textDocument/inlineValue`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_inlineValue) request - **monaco:** implement CancellationToken for workers ([#​221](https://redirect.github.com/volarjs/volar.js/issues/221)) - **typescript:** export `replaceTscContent` for downstream usage ([#​223](https://redirect.github.com/volarjs/volar.js/issues/223)) - Thanks [@​so1ve](https://redirect.github.com/so1ve) - **kit:** add support for checking project references files ([#​232](https://redirect.github.com/volarjs/volar.js/issues/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](https://redirect.github.com/volarjs/volar.js/issues/216)) - **typescript:** implement `directoryExists` for language service host - **typescript:** improve accuracy of `runTsc` extensions parameter behavior ([#​222](https://redirect.github.com/volarjs/volar.js/issues/222)) - **typescript:** synchronize script snapshots in a side-effect-free manner ([#​226](https://redirect.github.com/volarjs/volar.js/issues/226)) - **typescript:** add missing workspace symbols support for TS plugin ([vuejs/language-tools#4595](https://redirect.github.com/vuejs/language-tools/issues/4595)) - **typescript:** add missing code actions support for TS plugin ([vuejs/language-tools#4586](https://redirect.github.com/vuejs/language-tools/issues/4586)) - **monaco:** can't recognize the package with type definitions in `@types/xxx` ([#​81](https://redirect.github.com/volarjs/volar.js/issues/81)) - **language-server:** simplify `asFileName` result if possible ([volarjs/vscode-typescript-web#4497](https://redirect.github.com/volarjs/vscode-typescript-web/issues/3)) - **language-server:** avoid loading diagnosticMessages for en language - **language-server:** use `Program.getSourceFile` instead of `askedFiles` to more accurately determine indirect reference files - **language-server:** respect client `linkSupport` property for declaration, definition, typeDefinition, implementation requests - **jsdelivr:** avoid sending read file request if `pkgFilePath` is empty - **jsdelivr:** avoid sending flat request for `xxx.ts`, `xxx.d.ts` module names - **jsdelivr:** avoid sending flat request for `@types/xxx` if package `xxx` do not exist - **source-map:** don't throw when `fromOffsets` is not sorted - **labs:** associated script mappings are not visible ##### Refactors - **language-server:** update `watchFiles` API to return Disposable - **language-server:** only register event handlers when the language server does support a certain language feature - **language-server:** add `setup` hook for `createTypeScriptProject` function - **langauge-server:** improve LSP diagnostic integration ([#​230](https://redirect.github.com/volarjs/volar.js/issues/230)) - **language-server:** split code based on logical concerns ([#​231](https://redirect.github.com/volarjs/volar.js/issues/231)) - **typescript:** add `setup` hook for `runTsc` function - **typescript:** add `extraExtensionsToRemove` option for `runTsc` function for glint emit support - **typescript:** `createAsyncLanguageServicePlugin`'s `scriptKind` param allows pass a getter - **monaco:** add `setup` hook for `createSimpleWorkerLanguageService`, `createTypeScriptWorkerService` functions - **monaco:** replace `activateAutomaticTypeAcquisition` with `createNpmFileSystem` from the new `@volar/jsdelivr` package ([#​218](https://redirect.github.com/volarjs/volar.js/issues/218)) ([#​219](https://redirect.github.com/volarjs/volar.js/issues/219)) - **monaco:** rename `servicePlugins` option to `languageServicePlugins` - **monaco:** update to `monaco-languageserver-types` 0.4 ([#​225](https://redirect.github.com/volarjs/volar.js/issues/225)) - Thanks [@​remcohaszing](https://redirect.github.com/remcohaszing) - **language-core:** no longer coupled to the TypeScript context, TypeScript properties are defined via interface merging in `@volar/typescript` ([#​215](https://redirect.github.com/volarjs/volar.js/issues/215)) - **language-service:** move project context from `Language` to language service option ([#​217](https://redirect.github.com/volarjs/volar.js/issues/217)) - **test-utils:** update `startLanguageServer` function to accept multiple workspace folders ([#​229](https://redirect.github.com/volarjs/volar.js/issues/229)) ### [`v2.3.4`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#234-2024-06-25) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.3.3...v2.3.4) ##### Bug Fixes - **language-service:** `EmbeddedCodeFormattingOptions.level` value incorrect ### [`v2.3.3`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#233-2024-06-24) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.3.2...v2.3.3) ##### Bug Fixes - **language-core:** move virtual code ID casing verify to language service ([vuejs/language-tools#4497](https://redirect.github.com/vuejs/language-tools/issues/4497)) ### [`v2.3.2`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#232-2024-06-24) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.3.1...v2.3.2) ##### Bug Fixes - **language-core:** re-export `SourceMap` ([#​210](https://redirect.github.com/volarjs/volar.js/issues/210)) - Thanks [@​KermanX](https://redirect.github.com/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`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#231-2024-06-22) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.3.0...v2.3.1) ##### Features - **labs:** improving the capabilities of the virtual code editor ([#​208](https://redirect.github.com/volarjs/volar.js/issues/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 `contentChanges` length ([vuejs/language-tools#4457](https://redirect.github.com/vuejs/language-tools/issues/4457)) ##### Performance - **source-map:** use binary search for `translateOffset` ##### Refactors - **source-map:** decoupling from `muggle-string` - **source-map:** improve range mapping accuracy ([#​204](https://redirect.github.com/volarjs/volar.js/issues/204)) - **source-map:** API refactoring ([Part of #​206](https://redirect.github.com/volarjs/volar.js/issues/206)) - Thanks [@​piotrtomiak](https://redirect.github.com/piotrtomiak) - **language-service:** delete `SourceMapWithDocuments`, `LinkedCodeMapWithDocument` - **language-core:** pluginized source map factory function ([#​207](https://redirect.github.com/volarjs/volar.js/issues/207)) ##### Other Changes - **language-service:** fix SourceMapWithDocuments virtualCode typo ([#​190](https://redirect.github.com/volarjs/volar.js/issues/190)) - Thanks [@​machty](https://redirect.github.com/machty) ### [`v2.3.0`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#230-2024-06-09) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.5...v2.3.0) ##### Features - **language-core:** added option to resolve hidden extensions ([#​190](https://redirect.github.com/volarjs/volar.js/issues/190)) - **language-core:** reimplemented multi-source mapping ([#​194](https://redirect.github.com/volarjs/volar.js/issues/194)) - **language-core:** completed support for multi-source mapping in plugin mode ([#​197](https://redirect.github.com/volarjs/volar.js/issues/197)) - Thanks [@​piotrtomiak](https://redirect.github.com/piotrtomiak) - **language-server:** added support for Workspace Diagnostics ([#​199](https://redirect.github.com/volarjs/volar.js/issues/199)) - **language-server:** accurately defined language server capabilities ([#​185](https://redirect.github.com/volarjs/volar.js/issues/185)) - **typescript:** added option to prevent offset in plugin mode ([#​191](https://redirect.github.com/volarjs/volar.js/issues/191)) ##### Bug Fixes - **language-service:** fixed conversion of markdown links - **vscode:** showed error on missing TypeScript lib ([#​195](https://redirect.github.com/volarjs/volar.js/issues/195)) - Thanks [@​msujew](https://redirect.github.com/msujew) - **monaco:** fixed Monaco selection ranges conversion ([#​198](https://redirect.github.com/volarjs/volar.js/issues/198)) - Thanks [@​remcohaszing](https://redirect.github.com/remcohaszing) ##### Performance - **vscode:** auto insertion request now exits early on vscode ([#​157](https://redirect.github.com/volarjs/volar.js/issues/157)) - **language-server:** improved snapshot reusability ([#​196](https://redirect.github.com/volarjs/volar.js/issues/196)) - **typescript:** skips `searchExternalFiles` if extra extensions are empty ##### Refactors - **typescript:** added `setup` option for `createLanguageServicePlugin`, `createAsyncLanguageServicePlugin` - **language-core:** `LanguagePlugin` now requires the first generic parameter to specify the script ID type - **language-core:** `updateVirtualCode` is now optional, if not provided, `createVirtualCode` is always called to update source script - **language-server:** `createTypeScriptProjectProvider` has been renamed to `createTypeScriptProject` - **language-server:** `createSimpleProjectProvider` has been renamed to `createSimpleProject` - **language-server:** no longer handles `@vscode/l10n` - **language-server:** removed `InitializationOptions` interface - **language-service:** LSP related logic has been changed to be completely based on URI ([#​182](https://redirect.github.com/volarjs/volar.js/issues/182)) - **language-service:** `LanguageServiceEnvironment#workapceFolder` is now a URI array and has been renamed to `workspaceFolders` - **language-service:** `provideAutoInsertionEdit` has been renamed to `provideAutoInsertSnippet` - **language-service:** normalized `LanguageService` API name format - **labs:** Codegen Stacks debug feature has been removed ([#​184](https://redirect.github.com/volarjs/volar.js/issues/184)) ### [`v2.2.5`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#225-2024-05-23) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.4...v2.2.5) ##### Features - **source-map:** add API to support generated code with different length than original code [#​183](https://redirect.github.com/volarjs/volar.js/issues/183) - Thanks [@​piotrtomiak](https://redirect.github.com/piotrtomiak) ### [`v2.2.4`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#224-2024-05-15) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.3...v2.2.4) ##### Bug Fixes - **typescript:** path completion not working for meta files ### [`v2.2.3`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#223-2024-05-15) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.2...v2.2.3) ##### Bug Fixes - **typescript:** empty items list should be valid completion result [vuejs/language-tools#4368](https://redirect.github.com/vuejs/language-tools/issues/4368) - **typescript:** deduplication when merging hover infos [#​178](https://redirect.github.com/volarjs/volar.js/issues/178) - **language-service:** transforming volar embedded URIs in markdown [#​180](https://redirect.github.com/volarjs/volar.js/issues/180) - Thanks [@​remcohaszing](https://redirect.github.com/remcohaszing) - **language-server:** memorize URI conversion results of synchronized documents [#​181](https://redirect.github.com/volarjs/volar.js/issues/181) ### [`v2.2.2`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#222-2024-05-10) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.1...v2.2.2) ##### Bug Fixes - **typescript:** TS plugin only displays the first hover info - **language-core:** `isRenameEnabled` respect `CodeInformation.navigation.shouldRename` - **test-utils:** use stdio transport for test server [#​175](https://redirect.github.com/volarjs/volar.js/issues/175) ### [`v2.2.1`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#221-2024-05-06) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.2.0...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](https://redirect.github.com/vuejs/language-tools/issues/4323) - **language-server:** pass correct languageId when creating virtual code [#​173](https://redirect.github.com/volarjs/volar.js/issues/173) ### [`v2.2.0`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#220-2024-05-01) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.6...v2.2.0) ##### Features - Add ESLint integration [#​171](https://redirect.github.com/volarjs/volar.js/issues/171) - **language-service:** auto insertion does not abstract selection [#​156](https://redirect.github.com/volarjs/volar.js/issues/156) ##### Bug Fixes - **typescript:** `runTsc` cannot display source code for errors [vuejs/language-tools#4099](https://redirect.github.com/vuejs/language-tools/issues/4099) - **typescript:** `runTsc` cannot display source code for errors with `--incremental` [#​158](https://redirect.github.com/volarjs/volar.js/issues/158) [#​162](https://redirect.github.com/volarjs/volar.js/issues/162) - Thanks [@​wangshunnn](https://redirect.github.com/wangshunnn) - **typescript:** handle invalid references result - **typescript:** parameter hints not working in TS plugin [vuejs/language-tools#3948](https://redirect.github.com/vuejs/language-tools/issues/3948) - **typescript:** fault tolerance with TS file size assertion [vuejs/language-tools#4278](https://redirect.github.com/vuejs/language-tools/issues/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.ts` file - **typescript:** more inclusive performance rename operation [vuejs/language-tools#4297](https://redirect.github.com/vuejs/language-tools/issues/4297) - **typescript:** normalize filePath for language service APIs [vuejs/language-tools#4297](https://redirect.github.com/vuejs/language-tools/issues/4297) - **typescript:** avoid eagerly updating source scripts [#​166](https://redirect.github.com/volarjs/volar.js/issues/166) - **vscode:** newly created file failed to match tsconfig immediately [vuejs/language-tools#4297](https://redirect.github.com/vuejs/language-tools/issues/4297) - **vscode:** avoid crash when workspace tsdk does not exist - **language-server:** fault-tolerant URI translation [#​159](https://redirect.github.com/volarjs/volar.js/issues/159) - **language-core:** handle empty mappings in updateVirtualCodeMapOfMap [#​161](https://redirect.github.com/volarjs/volar.js/issues/161) - Thanks [@​remcohaszing](https://redirect.github.com/remcohaszing) ##### Performance - **typescript:** fix `runTsc` performance regression since 2.0 [vuejs/language-tools#4238](https://redirect.github.com/vuejs/language-tools/issues/4238) - **typescript:** `runTsc` cache module resolution result [vuejs/language-tools#4177](https://redirect.github.com/vuejs/language-tools/issues/4177) ##### Refactors - More accurate interface design and terminology [#​154](https://redirect.github.com/volarjs/volar.js/issues/154) - **language-server:** architecture improvements [#​167](https://redirect.github.com/volarjs/volar.js/issues/167) - **language-server:** remove `ConfigurationHost` abstract - **language-service:** expose changed setting sections on `onDidChangeConfiguration` - **language-service:** `ServiceContext.inject` method return nullable - **typescript:** `decorateLanguageServiceHost` less side effects [#​160](https://redirect.github.com/volarjs/volar.js/issues/160) - **language-core:** make `CodeInformation` properties optional - **language-core:** resolved language ID by LangaugePlugin [#​168](https://redirect.github.com/volarjs/volar.js/issues/168) ### [`v2.1.6`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#216-2024-03-28) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.5...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](https://redirect.github.com/vuejs/language-tools/issues/4066) - **typescript:** handle mapping for file rename API in plugin [vuejs/language-tools#3646](https://redirect.github.com/vuejs/language-tools/issues/3646) - **typescript:** semantic tokens range param does not mapped correctly [vuejs/language-tools#3934](https://redirect.github.com/vuejs/language-tools/issues/3934) [vuejs/language-tools#3935](https://redirect.github.com/vuejs/language-tools/issues/3935) ### [`v2.1.5`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#215-2024-03-23) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.4...v2.1.5) ##### Bug Fixes - **language-server:** `GetVirtualCodeRequest` incorrectly responses empty vritual code if no mappings - **typescript:** mark the parent directory as exists when created a file ### [`v2.1.4`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#214-2024-03-22) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.3...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](https://redirect.github.com/volarjs/volar.js/issues/153) - **typescript:** create a new file did not update sys cache ([https://github.com/withastro/language-tools/issues/685](https://redirect.github.com/withastro/language-tools/issues/685)) ### [`v2.1.3`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#213-2024-03-20) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.2...v2.1.3) ##### Bug Fixes - **typescript:** fix emit signature to enable incremental work to function properly [#​150](https://redirect.github.com/volarjs/volar.js/issues/150) - thanks [@​skywalker512](https://redirect.github.com/skywalker512) - **language-server:** also consider deletions for getRootFiles [#​152](https://redirect.github.com/volarjs/volar.js/issues/152) - thanks [@​Princesseuh](https://redirect.github.com/Princesseuh) ##### Other Changes - **language-service:** add name for `SemanticToken` tuple members - **vscode:** migrate from `StatusBarItem` to `LanguageStatusItem` ### [`v2.1.2`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#212-2024-03-07) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.1...v2.1.2) ##### Bug Fixes - **typescript:** reverted [f041c79](https://redirect.github.com/volarjs/volar.js/commit/f041c79df5e3ea95c8ba78d1616405dfa9c25135) as it caused severe performance regressions [vuejs/language-tools#4024](https://redirect.github.com/vuejs/language-tools/issues/4024) ### [`v2.1.1`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#211-2024-03-05) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.1.0...v2.1.1) ##### Bug Fixes - **test-utils:** allow unknown initialization options and expose `locale` option [#​142](https://redirect.github.com/volarjs/volar.js/issues/142) - **typescript:** virtual file update condition should be based generated snapshot rather than source script version - **monaco:** correct package name resolve on ATA [#​149](https://redirect.github.com/volarjs/volar.js/issues/149) - **language-service:** provideCodeActions's range param is not accurately mapped - **language-service:** provideInlayHints's range param is not accurately mapped ##### Refactors - Webpack compatibility [#​144](https://redirect.github.com/volarjs/volar.js/issues/144) - **language-service:** add provide generic to ServicePlugin type [#​143](https://redirect.github.com/volarjs/volar.js/issues/143) ### [`v2.1.0`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#210-2024-02-26) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.0.4...v2.1.0) ##### Features - **language-service**: more reliable embedded code formatting [#​138](https://redirect.github.com/volarjs/volar.js/issues/138) - Embedded code indentation is no longer handled by `@volar/language-service`, but instead calculated and passed as `initialIndentLevel`, which is then reliably handled by ServicePlugin for additional indentation in specific languages. - The `provideDocumentFormattingEdits` and `provideOnTypeFormattingEdits` APIs now accept the `EmbeddedCodeFormattingOptions` parameter, which includes `initialIndentLevel`. - Formatting ranges are now correctly mapped to embedded code formatting ranges. - Removed the no longer needed `ServicePlugin.provideFormattingIndentSensitiveLines` API. - No longer relies on the conventional `volar.format.initialIndent` editor setting. - Added `ServicePlugin.resolveEmbeddedCodeFormattingOptions` API, allowing downstream tools to modify the `initialIndentLevel` passed to ServicePlugin based on custom settings (replacing `volar.format.initialIndent`). ##### Refactors - **test-utils:** server tester support `ClientCapabilities` param for `initialize()` API - **test-utils:** server tester expose `sendDocumentRangeFormattingRequestRequest()` and `shutdown()` API - **language-core:** make embeddedCodes optional in VirtualCode [#​137](https://redirect.github.com/volarjs/volar.js/issues/137) - **language-server:** SemanticTokens requests are no longer delayed by 200ms - **language-server:** APIs updates [#​140](https://redirect.github.com/volarjs/volar.js/issues/140) - `createSimpleProjectProvider` has been renamed to `createSimpleProjectProviderFactory` and needs to be invoked with no arguments. - `createTypeScriptProjectProvider` has been renamed to `createTypeScriptProjectProviderFactory` and needs to be invoked with a TS module as an argument. - Deprecate `typescript#tsdk`, `typescript#tsdkUrl`, `ignoreTriggerCharacters` initialization options. - Deprecate `fullCompletionList` initialization option. [#​139](https://redirect.github.com/volarjs/volar.js/issues/139) - Remove experimental `provideDiagnosticMarkupContent` API. ##### Bug Fixes - **language-server:** language features not working for untitled documents [#​135](https://redirect.github.com/volarjs/volar.js/issues/135) - **language-server:** `pushDiagnostics` should not be notified when closing a file if server push diagnostics are not enabled - **language-service** `provideSelectionRanges` API multiple result merging method is inconsistent with VSCode - **language-service** `provideDocumentSemanticTokens` API's `range` param is not mapped to virtual code - **language-service** `provideDocumentFormattingEdits` API's `range` param is not accurately mapped to virtual code [#​136](https://redirect.github.com/volarjs/volar.js/issues/136) - **language-service** fix caching of semantic diagnostics [#​141](https://redirect.github.com/volarjs/volar.js/issues/141) - **test-utils:** invalidate cache when calling `openInMemoryDocument()` - **monaco:** `insertText` and `range` properties of completion item not converted correctly - **typescript:** ts plugin incorrectly resolve module name ### [`v2.0.4`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#204-2024-02-13) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.0.3...v2.0.4) ##### Features - **ci:** integrate with https://github.com/volarjs/ecosystem-ci ##### Bug Fixes - **language-service:** transform markdown links in completion items [#​133](https://redirect.github.com/volarjs/volar.js/issues/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](https://redirect.github.com/withastro/language-tools/issues/788)) ### [`v2.0.3`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#203-2024-02-10) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.0.2...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](https://redirect.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](https://redirect.github.com/withastro/language-tools/issues/778)) ### [`v2.0.2`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#202-2024-02-08) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.0.1...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 `allowNonTsExtensions` is not set ### [`v2.0.1`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#201-2024-02-05) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v2.0.0...v2.0.1) ##### Features - **typescript:** expose `FileRegistry` in `proxyCreateProgram()` [#​128](https://redirect.github.com/volarjs/volar.js/issues/128) - **typescript:** re-support extra virtual scripts for LSP and Kit [#​132](https://redirect.github.com/volarjs/volar.js/issues/132) ##### Bug Fixes - **vscode:** update `currentLabsVersion` to `2` - **typescript:** remove mistakenly published scripts `lib/quickstart/create(Async)TSServerPlugin`, please use `lib/quickstart/create(Async)LanguageServicePlugin` instead of ### [`v2.0.0`](https://redirect.github.com/volarjs/volar.js/blob/HEAD/CHANGELOG.md#200-2024-01-21) [Compare Source](https://redirect.github.com/volarjs/volar.js/compare/v1.11.1...v2.0.0) Please refer to [#​85](https://redirect.github.com/volarjs/volar.js/issues/85) for details.

Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - "before 4am on the first day of the month" (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.



This PR was generated by Mend Renovate. View the repository job log.

coderabbitai[bot] commented 7 months ago

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?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `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 `@coderabbitai` in 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 `@coderabbitai` in 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 pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to 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.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.