Skip to content

Commit 92d65c9

Browse files
committed
refactor(lsp): remove test-only workaround
We have a workaround for tests creating empty byte_buffers. After a recent lsp_linter interface redesign, tests no longer do this. Remove the now-unnecessary workaround.
1 parent b80023e commit 92d65c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/quick-lint-js/lsp/lsp-server.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ byte_buffer& outgoing_lsp_message_queue::new_message() {
155155

156156
void outgoing_lsp_message_queue::send(lsp_endpoint_remote& remote) {
157157
for (byte_buffer& notification_json : this->messages_) {
158-
if (notification_json.empty()) {
159-
// TODO(strager): Fix our tests so they don't make empty
160-
// byte_buffer-s.
161-
continue;
162-
}
163158
remote.send_message(std::move(notification_json));
164159
}
165160
this->messages_.clear();

0 commit comments

Comments
 (0)