2018-08-21 05:27:52 +00:00
|
|
|
// Copyright 2017-2018 ccls Authors
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-03-02 04:33:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "lsp.h"
|
|
|
|
|
|
|
|
// codeAction
|
|
|
|
struct CommandArgs {
|
|
|
|
lsDocumentUri textDocumentUri;
|
|
|
|
std::vector<lsTextEdit> edits;
|
|
|
|
};
|
|
|
|
MAKE_REFLECT_STRUCT_WRITER_AS_ARRAY(CommandArgs, textDocumentUri, edits);
|
|
|
|
|
|
|
|
// codeLens
|
|
|
|
struct lsCodeLensUserData {};
|
|
|
|
MAKE_REFLECT_EMPTY_STRUCT(lsCodeLensUserData);
|
|
|
|
|
|
|
|
struct lsCodeLensCommandArguments {
|
|
|
|
lsDocumentUri uri;
|
|
|
|
lsPosition position;
|
|
|
|
std::vector<lsLocation> locations;
|
|
|
|
};
|
2018-04-22 17:01:44 +00:00
|
|
|
MAKE_REFLECT_STRUCT(lsCodeLensCommandArguments, uri, position, locations)
|