Files
carbon-lang/toolchain/language_server/testdata/verbose.carbon
T
Jon Ross-Perkins 16b2cafae1 Clean up language server's output handling (#4855)
Handles verbose logging and printing errors as diagnostics to stderr
when there's no way to communicate them back on a request.
2025-01-30 18:34:03 +00:00

24 lines
817 B
Plaintext

// 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
//
// ARGS: -v language-server
//
// Verbose output includes a timestamp.
// NOAUTOUPDATE
// TIP: To test this file alone, run:
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/language_server/testdata/verbose.carbon
// TIP: To dump output, run:
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/language_server/testdata/verbose.carbon
// CHECK:STDERR: V[{{.+}}] <<< {
// CHECK:STDERR: "jsonrpc": "2.0",
// CHECK:STDERR: "method": "exit"
// CHECK:STDERR: }
// CHECK:STDERR:
// CHECK:STDERR:
// CHECK:STDOUT:
// --- STDIN
[[@LSP-NOTIFY:exit:]]