Defines workspace‑related LSP request/notification structures.
// Source: https://github.com/JohnnyMorganz/luau-lsp | License: MIT | Copyright 2022 JohnnyMorganz
// Provided via justclaw.it.com; keep this notice with the code.
#pragma once
#include <optional>
#include <string>
#include "Protocol/Structures.hpp"
#include "nlohmann/json.hpp"
namespace lsp
{
struct DidChangeConfigurationParams
{
json settings;
};
NLOHMANN_DEFINE_OPTIONAL(DidChangeConfigurationParams, settings)
struct ConfigurationItem
{
std::optional<DocumentUri> scopeUri = std::nullopt;
std::optional<std::string> section = std::nullopt;
};
NLOHMANN_DEFINE_OPTIONAL(ConfigurationItem, scopeUri, section)
struct ConfigurationParams
{
std::vector<ConfigurationItem> items{};
};
NLOHMANN_DEFINE_OPTIONAL(ConfigurationParams, items)
using GetConfigurationResponse = std::vecto
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key