-
Notifications
You must be signed in to change notification settings - Fork 325
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
Add capability information to the metamodel #1591
base: main
Are you sure you want to change the base?
Conversation
@@ -25,6 +25,7 @@ export namespace ConfigurationRequest { | |||
export const type = new ProtocolRequestType<ConfigurationParams, LSPAny[], never, void, void>(method); | |||
export type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>; | |||
export type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>; | |||
export const capabilities: { client: 'workspace.configuration'; server: 'workspace' } = { client: 'workspace.configuration', server: 'workspace' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbaeumer The spec doesn't mention a server capability for the workspace/configuration
request so I'm unsure about this. Since this is requested by the server it seems like there's no server capability needed here?
@@ -59,6 +59,7 @@ export namespace CallHierarchyPrepareRequest { | |||
export const messageDirection: MessageDirection = MessageDirection.clientToServer; | |||
export const type = new ProtocolRequestType<CallHierarchyPrepareParams, CallHierarchyItem[] | null, never, void, CallHierarchyRegistrationOptions>(method); | |||
export type HandlerSignature = RequestHandler<CallHierarchyPrepareParams, CallHierarchyItem[] | null, void>; | |||
export const capabilities: { client: 'textDocument.callHierarchy'; server: 'callHierarchyProvider' } = { client: 'textDocument.callHierarchy', server: 'callHierarchyProvider' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbaeumer Do you think we should add capability information for requests like callHierarchy/incomingCalls
that don't define their own capabilities and instead depend on whether the server supports other methods (in this case textDocument/prepareCallHierarchy
)?
c10685b
to
24151f6
Compare
24151f6
to
9dce9a9
Compare
@microsoft-github-policy-service agree |
Closes microsoft/language-server-protocol#2059.