mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Disable prelude import in language-server tests. (#7489)
This was substantially slowing down the overall test suite. Fixes #7453 Assisted-by: Gemini via Antigravity
This commit is contained in:
@@ -46,8 +46,8 @@ class Logger : public clang::clangd::Logger {
|
||||
|
||||
auto Run(const InstallPaths& installation, FILE* input_stream,
|
||||
llvm::raw_ostream& output_stream, llvm::raw_ostream& error_stream,
|
||||
llvm::raw_ostream* vlog_stream, Diagnostics::Consumer& consumer)
|
||||
-> bool {
|
||||
llvm::raw_ostream* vlog_stream, Diagnostics::Consumer& consumer,
|
||||
bool prelude_import) -> bool {
|
||||
// The language server internally uses diagnostics for logging issues, but the
|
||||
// clangd parts have their own logging system. We intercept that here.
|
||||
Logger logger(&error_stream, vlog_stream);
|
||||
@@ -59,7 +59,8 @@ auto Run(const InstallPaths& installation, FILE* input_stream,
|
||||
/*InMirror=*/nullptr,
|
||||
/*Pretty=*/true));
|
||||
OutgoingMessages outgoing(transport.get());
|
||||
Context context(&installation, vlog_stream, &consumer, &outgoing);
|
||||
Context context(&installation, vlog_stream, &consumer, &outgoing,
|
||||
prelude_import);
|
||||
IncomingMessages incoming(transport.get(), &context);
|
||||
|
||||
// Run the server loop.
|
||||
|
||||
Reference in New Issue
Block a user