llvm-project/clang-tools-extra/clangd
Marc-Andre Laperle bf11424b7f [clangd] Handle workspace/didChangeWatchedFiles
Summary:
The client can send notifications when it detects watched files have
changed. This patch adds the protocol handling for this type of notification.
For now, the notification will be passed down to the ClangdServer, but it will
not be acted upon. However, this will become useful for the indexer to react
to file changes.
The events could also potentially be used to invalidate other caches
(compilation database, etc).

This change also updates the VSCode extension so that it sends the events.

Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>

Reviewers: ilya-biryukov, Nebiroth

Subscribers: ilya-biryukov

Tags: #clang-tools-extra

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

llvm-svn: 314693
2017-10-02 18:00:37 +00:00
..
clients/clangd-vscode [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
tool [clangd] Command line arg to specify compile_commands.json path 2017-10-02 15:13:20 +00:00
CMakeLists.txt [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
ClangdLSPServer.cpp [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ClangdLSPServer.h [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ClangdServer.cpp [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ClangdServer.h [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ClangdUnit.cpp [clangd] Skip informative qualifier chunks. 2017-09-28 18:39:59 +00:00
ClangdUnit.h Small clangd cleanups, NFC 2017-09-29 16:41:23 +00:00
ClangdUnitStore.cpp [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
ClangdUnitStore.h [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
DraftStore.cpp Fixing compilation failures on buildbots. 2017-05-16 10:06:20 +00:00
DraftStore.h [clangd] Serialize onDiagnosticsReady callbacks for the same file. 2017-09-20 12:58:55 +00:00
GlobalCompilationDatabase.cpp [clangd] Command line arg to specify compile_commands.json path 2017-10-02 15:13:20 +00:00
GlobalCompilationDatabase.h [clangd] Command line arg to specify compile_commands.json path 2017-10-02 15:13:20 +00:00
JSONRPCDispatcher.cpp [clangd] Fix missing "message" key when responding with unsupported method 2017-09-25 17:16:47 +00:00
JSONRPCDispatcher.h [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
Logger.cpp [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
Logger.h [clangd] Introduced Logger interface. 2017-09-20 07:24:15 +00:00
Path.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
Protocol.cpp [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
Protocol.h [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ProtocolHandlers.cpp [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
ProtocolHandlers.h [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00