Skip to content
\n

I'm not too concerned about this latter part, as I assume the inability to suggest something to fix is a consequence of being in a state where there is nothing to fix.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I will implement the feature set check since it is mainstream implementation style. But I still hope all client integration can be fully spec-compliant.

\n

Note, LSP protocol does not mandate server/client to not send unsupported requests or not to listen to unsupported notifications. Since the protocol does require a request to be responded to with an error, it is possible to try...except... the request without feature detection, a popular style in Python.

","upvoteCount":0,"url":"https://github.com/ast-grep/ast-grep/discussions/2211#discussioncomment-14307665"}}}
Discussion options

You must be logged in to vote

I will implement the feature set check since it is mainstream implementation style. But I still hope all client integration can be fully spec-compliant.

Note, LSP protocol does not mandate server/client to not send unsupported requests or not to listen to unsupported notifications. Since the protocol does require a request to be responded to with an error, it is possible to try...except... the request without feature detection, a popular style in Python.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@HerringtonDarkholme
Comment options

@HerringtonDarkholme
Comment options

@rymdbar
Comment options

@HerringtonDarkholme
Comment options

Answer selected by rymdbar
@HerringtonDarkholme
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants