| 1234567891011121314151617181920212223242526 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- #ifndef CARBON_TOOLCHAIN_LANGUAGE_SERVER_CONTEXT_H_
- #define CARBON_TOOLCHAIN_LANGUAGE_SERVER_CONTEXT_H_
- #include "clang-tools-extra/clangd/Protocol.h"
- #include "clang-tools-extra/clangd/support/Function.h"
- #include "common/map.h"
- namespace Carbon::LanguageServer {
- // Context for LSP call handling.
- class Context {
- public:
- auto files() -> Map<std::string, std::string>& { return files_; }
- private:
- // Content of files managed by the language client.
- Map<std::string, std::string> files_;
- };
- } // namespace Carbon::LanguageServer
- #endif // CARBON_TOOLCHAIN_LANGUAGE_SERVER_CONTEXT_H_
|