Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

How to modify client's capabilities? #61

Closed
jadestrong opened this issue Dec 25, 2023 · 2 comments
Closed

How to modify client's capabilities? #61

jadestrong opened this issue Dec 25, 2023 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@jadestrong
Copy link

There seems not to export an interface to modify the initialize request's capabilities params?
I want to disable workspace.didChangeWatchedFiles capability, because there are no corresponding files to watch.

@kaisalmen
Copy link
Collaborator

@jadestrong the languageclient configuration options are only partially exposed and in contrast to monaco-languageclient you cannot fully pass a full LanguageClientOptions object. This is too limiting and needs to be enhanced/fixed.

@kaisalmen kaisalmen added enhancement New feature or request bug Something isn't working labels Dec 28, 2023
@kaisalmen
Copy link
Collaborator

@jadestrong It is now possible to provide and fully override both monaco-languageclient's clientOptions and connectionProvider. New releases are available:
https://www.npmjs.com/package/monaco-editor-wrapper/v/3.6.0
https://www.npmjs.com/package/@typefox/monaco-editor-react/v/2.6.0

It is briefly demonstrated here:
https://github.com/TypeFox/monaco-components/blob/main/packages/examples/src/reactPython.tsx#L45-L52

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants