summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_close.h
blob: e2eaa2cfcd802b228d6b33e1d77dbe0828543e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once



#include "LibLsp/JsonRpc/NotificationInMessage.h"




namespace TextDocumentDidClose  {

  struct Params {
    lsTextDocumentIdentifier textDocument;
	void swap(Params& arg) noexcept
	{
		textDocument.swap(arg.textDocument);
	}
  	
  };

};

MAKE_REFLECT_STRUCT(TextDocumentDidClose::Params, textDocument);

/**
 * The document close notification is sent from the client to the server
 * when the document got closed in the client. The document's truth now
 * exists where the document's uri points to (e.g. if the document's uri is
 * a file uri the truth now exists on disk).
 *
 * Registration Options: TextDocumentRegistrationOptions
 */
DEFINE_NOTIFICATION_TYPE(Notify_TextDocumentDidClose, TextDocumentDidClose::Params, "textDocument/didClose");