Files
clice/include/Protocol/Language/Declaration.h
2024-09-03 20:14:47 +08:00

33 lines
1.0 KiB
C++

#pragma once
#include "../Basic.h"
namespace clice::protocol {
/// Client Capability:
/// - property name (optional): `textDocument.declaration`
/// - property type: `DeclarationClientCapabilities` defined as follows:
struct DeclarationClientCapabilities {
/// Whether declaration supports dynamic registration. If this is set to
///`true` the client supports the new `DeclarationRegistrationOptions`
/// return value for the corresponding server capability as well.
bool dynamicRegistration = false;
/// The client supports additional metadata in the form of declaration links.
bool linkSupport = false;
};
/// Request:
/// - method: 'textDocument/declaration'
/// - params: `DeclarationParams` defined follows:
using DeclarationParams = Combine<TextDocumentPositionParams
// WorkDoneProgressParams,
// PartialResultParams,
>;
/// Response:
/// result: Location
using DeclarationResult = Location;
} // namespace clice::protocol