[all-commits] [llvm/llvm-project] 31db1e: [clangd] Send the correct error code when cancelli...

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Apr 13 10:43:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 31db1e0bd1ea020046eb7ac2359ced8c7239de1e
      https://github.com/llvm/llvm-project/commit/31db1e0bd1ea020046eb7ac2359ced8c7239de1e
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

  Changed paths:
    M clang-tools-extra/clangd/Cancellation.cpp
    M clang-tools-extra/clangd/Cancellation.h
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/clangd/JSONTransport.cpp
    M clang-tools-extra/clangd/Protocol.h
    M clang-tools-extra/clangd/TUScheduler.cpp
    M clang-tools-extra/clangd/unittests/CancellationTests.cpp
    M clang-tools-extra/clangd/unittests/JSONTransportTests.cpp
    M clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp

  Log Message:
  -----------
  [clangd] Send the correct error code when cancelling requests.

Summary:
I couldn't quite bring myself to make Cancellation depend on LSP ErrorCode.
Magic numbers instead...

Reviewers: kadircet

Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, jfb, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77947




More information about the All-commits mailing list