Declare documentLink is not supported in capabilities

This commit is contained in:
Riatre Foo 2018-10-25 04:39:57 +08:00
parent 0e372ce3db
commit 551c306536

View File

@ -74,13 +74,6 @@ struct lsDocumentOnTypeFormattingOptions {
MAKE_REFLECT_STRUCT(lsDocumentOnTypeFormattingOptions, firstTriggerCharacter, MAKE_REFLECT_STRUCT(lsDocumentOnTypeFormattingOptions, firstTriggerCharacter,
moreTriggerCharacter); moreTriggerCharacter);
// Document link options
struct lsDocumentLinkOptions {
// Document links have a resolve provider as well.
bool resolveProvider = false;
};
MAKE_REFLECT_STRUCT(lsDocumentLinkOptions, resolveProvider);
// Save options. // Save options.
struct lsSaveOptions { struct lsSaveOptions {
// The client is supposed to include the content on save. // The client is supposed to include the content on save.
@ -170,8 +163,6 @@ struct lsServerCapabilities {
lsDocumentOnTypeFormattingOptions documentOnTypeFormattingProvider; lsDocumentOnTypeFormattingOptions documentOnTypeFormattingProvider;
// The server provides rename support. // The server provides rename support.
bool renameProvider = true; bool renameProvider = true;
// The server provides document link support.
lsDocumentLinkOptions documentLinkProvider;
bool foldingRangeProvider = true; bool foldingRangeProvider = true;
// The server provides execute command support. // The server provides execute command support.
struct ExecuteCommandOptions { struct ExecuteCommandOptions {
@ -197,8 +188,7 @@ MAKE_REFLECT_STRUCT(lsServerCapabilities, textDocumentSync, hoverProvider,
codeLensProvider, documentFormattingProvider, codeLensProvider, documentFormattingProvider,
documentRangeFormattingProvider, documentRangeFormattingProvider,
documentOnTypeFormattingProvider, renameProvider, documentOnTypeFormattingProvider, renameProvider,
documentLinkProvider, foldingRangeProvider, foldingRangeProvider, executeCommandProvider, workspace);
executeCommandProvider, workspace);
// Workspace specific client capabilities. // Workspace specific client capabilities.
struct lsWorkspaceClientCapabilites { struct lsWorkspaceClientCapabilites {