summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/clients
Commit message (Collapse)AuthorAgeFilesLines
...
* [clangd] Show FileStatus in vscode-clangd.Haojian Wu2019-01-021-0/+37
| | | | | | | | | | | | | | Summary: The file status will be shown in the status bar. Depends on D55363. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D55374 llvm-svn: 350210
* [clangd] Bump vscode-clangd v0.0.8Haojian Wu2018-11-301-1/+1
| | | | llvm-svn: 347969
* [clangd] Fix junk output in clangd vscode pluginHaojian Wu2018-11-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When using the vscode clangd plugin, lots and lots of junk output is printed to the output window, which constantly reopens itself. Example output: I[11:13:17.733] <-- textDocument/codeAction(4) I[11:13:17.733] --> reply:textDocument/codeAction(4) 0 ms I[11:13:17.937] <-- textDocument/codeAction(5) I[11:13:17.937] --> reply:textDocument/codeAction(5) 0 ms I[11:13:18.557] <-- textDocument/hover(6) I[11:13:18.606] --> reply:textDocument/hover(6) 48 ms This should prevent that from happening. Patch by James Findley! Reviewers: ioeric, ilya-biryukov, hokein Reviewed By: ioeric Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D55052 llvm-svn: 347968
* [clangd] Bump vscode-clangd v0.0.7Haojian Wu2018-11-281-1/+1
| | | | llvm-svn: 347737
* [clangd] Add 'Switch header/source' command in clangd-vscodeMarc-Andre Laperle2018-11-242-5/+42
| | | | | | | | | | | | | | | | | Summary: Alt+o is used on Windows/Linux and Option+Cmd+o on macOS. Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com> Reviewers: hokein, ilya-biryukov, ioeric Reviewed By: ioeric Subscribers: sammccall, ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D54781 llvm-svn: 347509
* [clangd] Add support for hierarchical documentSymbolIlya Biryukov2018-11-231-3/+3
| | | | | | | | | | | | Reviewers: ioeric, sammccall, simark Reviewed By: sammccall Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D52311 llvm-svn: 347498
* [clangd] Fix category in clangd-vscode's package.jsonSimon Marchi2018-07-231-1/+1
| | | | | | | | | | | | | | | | | Summary: When opening package.json, vscode shows: Use 'Programming Languages' instead Replacing "Languages" with this fixes it. Reviewers: ilya-biryukov Subscribers: arphaman, ilya-biryukov, ioeric, MaskRay, jkorous, cfe-commits Differential Revision: https://reviews.llvm.org/D49253 llvm-svn: 337697
* [clangd] Bump v0.0.6 for vscode-clangd.Haojian Wu2018-04-091-1/+1
| | | | llvm-svn: 329583
* [clangd-vscode] Update VScode dependenciesMarc-Andre Laperle2018-04-091-4/+4
| | | | | | | | | | | | | | | Summary: This allows the extension to work with LSP 3.0 and is useful for testing. Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewers: ilya-biryukov Subscribers: hokein, klimek, ilya-biryukov, jkorous-apple, ioeric, MaskRay, cfe-commits Differential Revision: https://reviews.llvm.org/D45285 llvm-svn: 329574
* [clangd-vscode] Add package-lock.json to .gitignoreEric Liu2018-03-091-1/+2
| | | | llvm-svn: 327130
* [clangd] Bump vscode extension version to 0.0.5Eric Liu2018-03-081-1/+1
| | | | llvm-svn: 327019
* [clangd:vscode] Resolve symlinks for file paths from clangd.Eric Liu2018-03-081-5/+17
| | | | | | | | | | | | | | | | | | | | | Summary: For features like go-to-definition, clangd can point clients to symlink paths (e.g. in bazel execroot) which might not be desired if the symlink points to a file in the workspace. Clangd might not be able to build the file, and users might prefer to edit the file on the real path. This change converts file paths from clangd to real path (e.g. resolving symlinks). Long term, we might want to the symlink handling logic to clangd where clangd can better decide whether symlinks should be resolved according to e.g. compile commands. Reviewers: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D44158 llvm-svn: 327009
* [clangd:vscode] Bump clangd-vscode version to 0.0.4.Eric Liu2018-03-021-1/+1
| | | | llvm-svn: 326548
* [clangd:vscode] check empty/null string correctly.Eric Liu2018-03-021-1/+1
| | | | llvm-svn: 326547
* [clangd] Forward all environment variables along with CLANGD_TRACE to clangd.Eric Liu2018-03-011-2/+4
| | | | llvm-svn: 326452
* [clangd] Correct the doc, password => Personal Access Token.Haojian Wu2018-02-191-1/+1
| | | | llvm-svn: 325503
* [clangd] Add brief instructions on how to make a release for vscode-clangd ↵Haojian Wu2018-02-191-0/+25
| | | | | | | | | | | | extension. Reviewers: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D43455 llvm-svn: 325499
* [clangd] Bump vs-code clangd extension v0.0.3Haojian Wu2018-02-191-1/+1
| | | | | | | | | | Reviewers: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits, ioeric Differential Revision: https://reviews.llvm.org/D43452 llvm-svn: 325484
* [clangd] Add "clangd.trace" VSCode setting to enable tracing.Sam McCall2018-02-192-5/+14
| | | | | | | | | | | | | | Summary: Setting the CLANGD_TRACE environment variable directly is awkward with VSCode's "reload from the command palette" workflow. Reviewers: ilya-biryukov Subscribers: klimek, jkorous-apple, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D43385 llvm-svn: 325477
* [clangd] Use new URI with scheme support in place of the existing LSP URIEric Liu2018-01-291-7/+0
| | | | | | | | | | | | | | | | | | Summary: o Replace the existing clangd::URI with a wrapper of FileURI which also carries a resolved file path. o s/FileURI/URI/ o Get rid of the URI hack in vscode extension. Reviewers: sammccall Reviewed By: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D42419 llvm-svn: 323660
* [clangd] Use the clang-tools-extra as the official repo for `vscode-clangd` ↵Haojian Wu2017-12-214-15/+88
| | | | | | | | | | | | | | | | | | | | | | | extension. Summary: Previously, we use a separate GitHub repository (https://github.com/llvm-vs-code-extensions/vscode-clangd) for publishing `vscode-clangd` extension to marketplace. To reduce the maintain burden, we will use the vscode extension in the clang-tools-extra, and deprecate the one on GitHub. Test in https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.clangd-vscode-test Reviewers: sammccall, krasimir Reviewed By: sammccall Subscribers: klimek, ilya-biryukov, cfe-commits Differential Revision: https://reviews.llvm.org/D41391 llvm-svn: 321252
* [clangd] in VSCode client, filter extensions properly and only accept file: URIsSam McCall2017-12-181-4/+4
| | | | | | | | | | | | | | | | | | | Summary: The filtering wasn't previously working as intended - the string list is interpreted as a list of editor modes, not file extensions. (It happens to mostly work as "c" and "cpp" are the names of modes, but we're missing objective-c) The file: restriction is new - clangd needs to be able to convert URI<->path in order to determine how to build. Reviewers: hokein Subscribers: klimek, ilya-biryukov, cfe-commits Differential Revision: https://reviews.llvm.org/D41343 llvm-svn: 320972
* [clangd] Handle clangd.applyFix server-sideMarc-Andre Laperle2017-11-031-20/+0
| | | | | | | | | | | | | | | | | | | | | | | Summary: When the user selects a fix-it (or any code action with commands), it is possible to let the client forward the selected command to the server. When the clangd.applyFix command is handled on the server, it can send a workspace/applyEdit request to the client. This has the advantage that the client doesn't explicitly have to know how to handle clangd.applyFix. Therefore, the code to handle clangd.applyFix in the VS Code extension (and any other Clangd client) is not required anymore. Reviewers: ilya-biryukov, sammccall, Nebiroth, hokein Reviewed By: hokein Subscribers: ioeric, hokein, rwols, puremourning, bkramer, ilya-biryukov Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D39276 llvm-svn: 317322
* [clangd] Handle workspace/didChangeWatchedFilesMarc-Andre Laperle2017-10-022-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* [clangd] Add support for snippet completionsIlya Biryukov2017-09-122-4/+4
| | | | | | | | | | | | | | Enhances CompletionItemsCollector in such a way that snippet completions can be presented to the client. Enable snippet completion items by specifying -enable-snippets while invoking the clangd executable. See: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#completion-request See: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/browser/snippet.md Patch by Raoul Wols. llvm-svn: 313029
* [clangd] Fix Go to Definition not working in VSCode extensionMarc-Andre Laperle2017-07-111-1/+1
| | | | | | | | | | | | | | | | | | Summary: The URI conversion logic was returning 'undefined' when going from server to VSCode which broke the Go to Definition functionality. Reviewers: krasimir Reviewed By: krasimir Subscribers: cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D35215 llvm-svn: 307715
* [clangd] Extract FsPath from file:// uriKrasimir Georgiev2017-04-071-2/+10
| | | | | | | | | | | | | Patch contributed by stanionascu! rfc8089#appendix-E.2 specifies that paths can begin with a drive letter e.g. as file:///c:/. In this case just consuming front file:// is not enough and the 3rd slash must be consumed to produce a valid path on windows. The patch introduce a generic way of converting an uri to a filesystem path and back. Differential Revision: https://reviews.llvm.org/D31401 llvm-svn: 299758
* [clangd] Add support for vscode extension configurationKrasimir Georgiev2017-03-242-5/+36
| | | | | | | | | | | | | Summary: Adds vscode workspace level configuration options for path to clangd binary and its arguments. Contributed by stanionascu! Reviewers: cfe-commits, bkramer, krasimir Reviewed By: krasimir Differential Revision: https://reviews.llvm.org/D31121 llvm-svn: 298696
* [clangd] Add support for FixIts.Benjamin Kramer2017-03-011-1/+17
| | | | | | | | | | | | | | | | | | | Summary: This uses CodeActions to show 'apply fix' actions when code actions are requested for a location. The actions themselves make use of a clangd.applyFix command which has to be implemented on the editor side. I included an implementation for vscode. This also adds a -run-synchronously flag which runs everything on the main thread. This is useful for testing. Reviewers: krasimir Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D30498 llvm-svn: 296636
* [clangd] Add a toy VS Code integration for development purposesKrasimir Georgiev2017-03-0112-0/+251
Summary: This patch adds bare-bone VS Code integration for development purposes of clangd. Reviewers: klimek, bkramer, mprobst Reviewed By: bkramer Subscribers: mprobst Differential Revision: https://reviews.llvm.org/D30102 llvm-svn: 296618
OpenPOWER on IntegriCloud