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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 1, 2024

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.10

Compare Source

Bug Fixes

v2.4.9

Compare Source

Bug Fixes
  • typescript: avoid crash when converting relatedInformation from overly large files

v2.4.8

Compare Source

Bug Fixes
  • typescript: content-sensitive features are only allowed to return results in contiguous mapped ranges (#​243)

v2.4.7

Compare Source

Bug Fixes

v2.4.6

Compare Source

Bug Fixes
  • language-server: correctly calculate coalesced document change (#​240) - Thanks to @​rchl!

v2.4.5

Compare Source

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

Compare Source

Bug Fixes
  • monaco: requests always cancel

v2.4.3

Compare Source

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

Compare Source

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

Compare Source

Bug Fixes

v2.4.0

Compare Source

Features
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 directoryExists for language service host
  • typescript: improve accuracy of runTsc extensions 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 asFileName result if possible (volarjs/vscode-typescript-web#4497)
  • 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)
  • language-server: split code based on logical concerns (#​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) (#​219)
  • monaco: rename servicePlugins option to languageServicePlugins
  • monaco: update to monaco-languageserver-types 0.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 Language to language service option (#​217)
  • test-utils: update startLanguageServer function to accept multiple workspace folders (#​229)

v2.3.4

Compare Source

Bug Fixes
  • language-service: EmbeddedCodeFormattingOptions.level value incorrect

v2.3.3

Compare Source

Bug Fixes

v2.3.2

Compare Source

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

Compare Source

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 contentChanges length (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
  • language-service: fix SourceMapWithDocuments virtualCode typo (#​190) - Thanks @​machty

v2.3.0

Compare Source

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 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)
  • 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)

v2.2.5

Compare Source

Features
  • source-map: add API to support generated code with different length than original code #​183 - Thanks @​piotrtomiak

v2.2.4

Compare Source

Bug Fixes
  • typescript: path completion not working for meta files

v2.2.3

Compare Source

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

Compare Source

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

v2.2.1

Compare Source

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

Compare Source

Features
  • Add ESLint integration #​171
  • language-service: auto insertion does not abstract selection #​156
Bug Fixes
  • typescript: runTsc cannot display source code for errors vuejs/language-tools#4099
  • typescript: runTsc cannot 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.ts file
  • 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
Refactors
  • More accurate interface design and terminology #​154
  • language-server: architecture improvements #​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
  • language-core: make CodeInformation properties optional
  • language-core: resolved language ID by LangaugePlugin #​168

v2.1.6

Compare Source

Bug Fixes

v2.1.5

Compare Source

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

Compare Source

Features
  • test-utils: add 3 APIs: updateTextDocument, updateConfiguration, didChangeWatchedFiles
Bug Fixes

v2.1.3

Compare Source

Bug Fixes
Other Changes
  • language-service: add name for SemanticToken tuple members
  • vscode: migrate from StatusBarItem to LanguageStatusItem

v2.1.2

Compare Source

Bug Fixes

v2.1.1

Compare Source

Bug Fixes
  • test-utils: allow unknown initialization options and expose locale option #​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
  • Webpack compatibility #​144
  • language-service: add provide generic to ServicePlugin type #​143

v2.1.0

Compare Source

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 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
  • language-server: SemanticTokens requests are no longer delayed by 200ms
  • language-server: APIs updates #​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
    • Remove experimental provideDiagnosticMarkupContent API.
Bug Fixes
  • language-server: language features not working for untitled documents #​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
  • language-service fix caching of semantic diagnostics #​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

Compare Source

Features
Bug Fixes

v2.0.3

Compare Source

Features
  • labs: recognize Glint and other file extensions via reading installed extensions language configuration
  • labs: improve mapping decorations display
Bug Fixes

v2.0.2

Compare Source

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

Compare Source

Features
  • typescript: expose FileRegistry in proxyCreateProgram() #​128
  • typescript: re-support extra virtual scripts for LSP and Kit #​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

Compare Source

Please refer to #​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.


  • If you want to rebase/retry this PR, check this box

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

Copy link

coderabbitai bot commented Feb 1, 2024

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

@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 3 times, most recently from 8df30d6 to 8a2721f Compare February 12, 2024 19:03
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from 8a2721f to a159d5c Compare February 16, 2024 04:40
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from a159d5c to e35814d Compare February 29, 2024 07:25
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 2 times, most recently from 99cc612 to f1c50e8 Compare March 10, 2024 06:45
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 3 times, most recently from f6cbdf1 to 4bbcda1 Compare March 25, 2024 22:41
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from 4bbcda1 to 8f1ca33 Compare March 31, 2024 03:35
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 3 times, most recently from 2e33c7c to 9404801 Compare May 9, 2024 11:59
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 2 times, most recently from 6ff2304 to b3d3d1e Compare May 18, 2024 14:41
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from b3d3d1e to c7aecdc Compare May 26, 2024 16:32
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from c7aecdc to 45d9977 Compare June 12, 2024 03:21
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch 4 times, most recently from 143199d to e7d7c8e Compare June 27, 2024 21:58
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from e7d7c8e to 55480a8 Compare August 18, 2024 04:29
@renovate renovate bot force-pushed the renovate/volar-language-service-2.x branch from 55480a8 to 88f6771 Compare August 21, 2024 06:11
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e7b3213 and 88f6771.

Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing (1)
  • packages/volar/package.json (2 hunks)
Additional comments not posted (2)
packages/volar/package.json (2)

69-69: Verify compatibility with @volar/language-service v2.0.0 in devDependencies.

Ensure that development tools and scripts are compatible with this version.

Run the following script to check for potential compatibility issues in development scripts:


54-54: Verify compatibility with @volar/language-service v2.0.0 in peerDependencies.

The update to a major version could introduce breaking changes. Ensure that the package is compatible with this version.

Run the following script to check for potential compatibility issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants