nixd
Loading...
Searching...
No Matches
Public Attributes | List of all members
lspserver::DidChangeTextDocumentParams Struct Reference

#include <Protocol.h>

Collaboration diagram for lspserver::DidChangeTextDocumentParams:
[legend]

Public Attributes

VersionedTextDocumentIdentifier textDocument
 
std::vector< TextDocumentContentChangeEventcontentChanges
 The actual content changes.
 
std::optional< boolwantDiagnostics
 
bool forceRebuild = false
 

Detailed Description

Definition at line 758 of file lspserver/include/lspserver/Protocol.h.

Member Data Documentation

◆ contentChanges

std::vector<TextDocumentContentChangeEvent> lspserver::DidChangeTextDocumentParams::contentChanges

The actual content changes.

Definition at line 765 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ forceRebuild

bool lspserver::DidChangeTextDocumentParams::forceRebuild = false

Force a complete rebuild of the file, ignoring all cached state. Slow! This is useful to defeat clangd's assumption that missing headers will stay missing. This is a clangd extension.

Definition at line 777 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ textDocument

VersionedTextDocumentIdentifier lspserver::DidChangeTextDocumentParams::textDocument

The document that did change. The version number points to the version after all provided content changes have been applied.

Definition at line 762 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ wantDiagnostics

std::optional<bool> lspserver::DidChangeTextDocumentParams::wantDiagnostics

Forces diagnostics to be generated, or to not be generated, for this version of the file. If not set, diagnostics are eventually consistent: either they will be provided for this version or some subsequent one. This is a clangd extension.

Definition at line 771 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().


The documentation for this struct was generated from the following file: