llvm-project/clang-tools-extra/clangd/clients/clangd-vscode
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
..
.vscode
src [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
test
.gitignore
.vscodeignore
README.txt
package.json [clangd] Handle workspace/didChangeWatchedFiles 2017-10-02 18:00:37 +00:00
tsconfig.json
vsc-extension-quickstart.md

README.txt

A *toy* VS Code integration for development purposes.

Steps:
1. Make sure you have clangd in /usr/bin/clangd or edit src/extension.ts to
point to the binary.
2. Make sure you have nodejs and npm installed.
3. Make sure you have VS Code installed.
4. In order to start a development instance of VS code extended with this, run:
   $ npm install
   $ code .
   When VS Code starts, press <F5>.