Files
carbon-lang/toolchain/language_server/testdata/basics/quiet_notifications.carbon
T
Richard Smith 277815fd94 language-server: Stub out support for some messages we don't handle yet. (#7637)
This suppresses warnings for unhandled messages where we currently have
nothing to do. No functionality change, except for less spam in the VS
Code output tab.

Assisted-by: Claude Code
2026-08-14 20:15:42 +00:00

26 lines
997 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
//
// AUTOUPDATE
// TIP: To test this file alone, run:
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/language_server/testdata/basics/quiet_notifications.carbon
// TIP: To dump output, run:
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/language_server/testdata/basics/quiet_notifications.carbon
// Notifications that we accept without doing anything, and so should produce no
// output at all. `$/` notifications are ignored whether or not we know them.
// --- STDIN
[[@LSP-NOTIFY:initialized]]
[[@LSP-NOTIFY:textDocument/didSave:
"textDocument": {"uri": "file:/unknown.carbon"}
]]
[[@LSP-NOTIFY:$/cancelRequest:"id": 1]]
[[@LSP-NOTIFY:$/unknown-notify]]
[[@LSP-NOTIFY:exit]]
// --- AUTOUPDATE-SPLIT
// CHECK:STDOUT: