[all-commits] [llvm/llvm-project] 67e02b: [clangd] Add support TextDocumentEdit.

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Apr 25 04:08:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67e02b282b70c05b10e4862fdeae4de45de39844
      https://github.com/llvm/llvm-project/commit/67e02b282b70c05b10e4862fdeae4de45de39844
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdLSPServer.h
    M clang-tools-extra/clangd/Diagnostics.cpp
    M clang-tools-extra/clangd/Diagnostics.h
    M clang-tools-extra/clangd/Protocol.cpp
    M clang-tools-extra/clangd/Protocol.h
    A clang-tools-extra/clangd/test/fixits-codeaction-documentchanges.test
    A clang-tools-extra/clangd/test/fixits-command-documentchanges.test
    M clang-tools-extra/clangd/test/fixits-embed-in-diagnostic.test

  Log Message:
  -----------
  [clangd] Add support TextDocumentEdit.

This is an initial patch to add TextDocumentEdit (versioned edits) support in
clangd, the scope is minimal:

- add and extend the corresponding protocol structures
- propagate the documentChanges for diagnostic codeactions (our motivated case)

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




More information about the All-commits mailing list