summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/clients
Commit message (Collapse)AuthorAgeFilesLines
* NFC: Fix trivial typos in commentsKazuaki Ishizaki2020-01-041-1/+1
|
* [clangd] register cuda language activation event and activate for .cuh filesptaylor2019-12-042-12/+14
| | | | | | | | | | | | | | Patch by Paul Taylor! Reviewers: hokein Reviewed By: hokein Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70041
* [clangd] fixes semantic highlighting testHaojian Wu2019-11-111-21/+29
| | | | | | | | | | | | | | | | Summary: fixes https://github.com/clangd/clangd/issues/176 Patch by liu hui! Reviewers: ilya-biryukov, hokein, sammccall Reviewed By: hokein Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D70078
* [clangd] Fixes colon escaping on WindowsIlya Biryukov2019-11-113-22/+24
| | | | | | vscode always escapes the colon on the file uri, which causes the semantic highlighting fails on windows. fixes: https://github.com/clangd/clangd/issues/176
* [clangd] update the package-lock.json.Haojian Wu2019-10-041-364/+380
| | | | llvm-svn: 373739
* [clangd] Bump vscode-clangd v0.0.18Haojian Wu2019-09-261-1/+1
| | | | | | | | CHANGELOG: - enable semantic highlighting by default - upgrade the LSP dependencies to pickup the incoming LSP v3.15.0 llvm-svn: 372981
* [clangd][vscode] Add npm helper commands to package/release the extension.Haojian Wu2019-09-262-3/+5
| | | | | | | | | | | | | | Summary: Help to fix https://github.com/clangd/clangd/issues/159. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68080 llvm-svn: 372980
* [clangd][vscode] Update vscode lsp dependencies to pickup the new changes in ↵Haojian Wu2019-09-261-3/+3
| | | | | | | | | | | | | | | | LSP v3.15.0. Summary: This would enable the newly-added semantic selection feature in vscode. Reviewers: usaxena95 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67964 llvm-svn: 372970
* [clangd][vscode] Turn on the semantic highlighting by default.Haojian Wu2019-09-261-1/+1
| | | | | | | | | | | | | | | | Summary: We have turned on the flag manually and used it for a while, and don't see any major issues, let's enable it by default. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68077 llvm-svn: 372969
* [clangd][vscode] update the development doc.Haojian Wu2019-09-161-2/+2
| | | | llvm-svn: 371986
* [clangd] Bump vscode-clangd v0.0.17Haojian Wu2019-09-161-1/+1
| | | | | | | | | | | CHANGELOG: - added semantic highlighting support (under the clangd.semanticHighlighting flag); - better error message when clangd fails to execute refactoring-like actions; - improved the readme doc; llvm-svn: 371980
* [clangd] some tweaks on the vscode readme, NFCHaojian Wu2019-09-101-3/+3
| | | | llvm-svn: 371495
* [clangd] Update clangd-vscode docs to be more user-focused.Sam McCall2019-09-099-56/+131
| | | | | | | | | | | | | | Summary: Relegate "updating the extension" docs to a separate file. Reviewers: hokein, kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67092 llvm-svn: 371390
* [clangd][vscode] Add a flag to enable semantic highlighting in clangdHaojian Wu2019-09-052-4/+11
| | | | | | | | | | | | Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67096 llvm-svn: 371038
* [clangd][vscode] Make SemanticHighlightingFeature more self-contained.Haojian Wu2019-09-052-7/+16
| | | | | | | | | | | | | | | | | Summary: so that we don't have too many usage from the client side (just a single occurrance for register), this also aligns with how other builtin feature being implemented in vscode. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67165 llvm-svn: 371036
* [clangd] Add .vscode-test to .gitignore.Haojian Wu2019-08-301-0/+1
| | | | | | | | | | | | Reviewers: jvikstrom Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66949 llvm-svn: 370446
* [clangd] Update out-of-date links in readme, NFC.Haojian Wu2019-08-291-3/+3
| | | | llvm-svn: 370371
* [clangd] Update themeRuleMatcher when color theme changes in vscode extension.Johan Vikstrom2019-08-291-0/+7
| | | | | | | | | | | | | | | | | Summary: Add event listener that listens to configuration changes and reloads the ThemeRuleMatcher when the theme changes. Right now it will not recolor the files, depends on the colorizer CL for that. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66406 llvm-svn: 370305
* [clangd][vscode] Don't leak the resourcesHaojian Wu2019-08-281-2/+5
| | | | | | | | | | | | | | Summary: We miss a few places where we need to add them to the subscriptions. Reviewers: jvikstrom Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66881 llvm-svn: 370218
* [clangd] Cleans up the semantic highlighting resources if clangd stops.Johan Vikstrom2019-08-283-34/+47
| | | | | | | | | | | | | | Summary: Disposes of the vscode listeners when clangd crashes and reuses the old highlighter when it restarts. The reason for reusing the highlighter is because this way the highlightings will not disappear as we won't have to dispose of them. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66743 llvm-svn: 370202
* [clangd] Handling text editor/document lifetimes in vscode extension.Johan Vikstrom2019-08-262-11/+36
| | | | | | | | | | | | | | | | Summary: Just reapplies highlightings for all files when visible text editors change. Could find the correct text editor that should be reapplied but going for a simple implementation instead. Removes the associated highlighting entry from the Colorizer when a text document is closed. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66735 llvm-svn: 369911
* [clangd] Added a colorizer to the vscode extension.Johan Vikstrom2019-08-263-9/+230
| | | | | | | | | | | | | | | | | | | | Summary: Adds the main colorizer component. It colorizes every time clangd sends a publishSemanticHighlighting notification. Every time it colorizes it does a full recolorization (removes all decorations from the editor and applies new ones). The reason for this is that all ranges for the same scope share a TextEditorDecorationType. This is due to TextEditorDecorationTypes being very expensive to create. The prototype used one DecorationType per range but that ran into very big performance problems (it took >100 ms to apply 600 lines of highlightings which froze the editor). This version does not share the problem of being extremly slow, but there is probably potential to optimize it even more. No document/texteditor lifecycle management code in this CL, that will come in the next one. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66219 llvm-svn: 369893
* [clangd][vscode] Surface the error when applying tweaks failsHaojian Wu2019-08-141-2/+19
| | | | | | | | | | | | | | | | | | | Summary: The current behavior for a failed request is just to log it in the output panel. When applyTweak fails for whatever reason, users usually don't get informed (unless they open the output panel and dig the log). this patch is to surface these errors by prompting up a message diag. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66211 llvm-svn: 368851
* [clangd] Loading TokenColorRules as a class mapping the rules to their ↵Johan Vikstrom2019-08-142-3/+67
| | | | | | | | | | | | | | | | associated clangd TextMate scope index. Summary: Loads a mapping of the clangd scope lookup table scopes to the most specific rule with the highest "precedence" on initialize. Preprocesses into a class so it's simple/fast to access when doing the actual coloring later. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65856 llvm-svn: 368834
* [clangd] Added the vscode SemanticHighlighting feature code but did not ↵Johan Vikstrom2019-08-123-5/+115
| | | | | | | | | | | | | | | | enable it in the client. Summary: Added the code for the StaticFeature that must be registered to the client. Also decoding the notification data into objects. Did not register it to the client yet. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65998 llvm-svn: 368568
* [clangd] Added a TextMate theme parser to the vscode extension.Johan Vikstrom2019-08-075-1/+167
| | | | | | | | | | | | | | | Summary: Adds a TextMate parser module to the vscode extension. It parses a theme into an array of a pair of TextMate scopes and text colors. Reviewers: hokein, ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65738 llvm-svn: 368136
* [clangd][vscode] clang-format the the extension code.Haojian Wu2019-08-025-99/+105
| | | | | | | | | | | | | | | | | | | | | Summary: As we are going to grow the extension in the near future, it is time to formalize the TS code format/style of our extension (although we'd lose the history). We use default options of clang-format: - 80 max line length - 2 space indent Reviewers: ilya-biryukov, sammccall, jvikstrom Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65657 llvm-svn: 367684
* [clangd] Bump vscode-clangd v0.0.16Haojian Wu2019-07-242-345/+376
| | | | | | | | CHANGELOG: - detect C++ language based on some well-known file paths - upgrade the lsp-client and lsp-server dependencies llvm-svn: 366877
* [clangd] Implement "prepareRename"Haojian Wu2019-07-241-3/+3
| | | | | | | | | | | | | | | | | | Summary: - "prepareRename" request is added in LSP v3.12.0 - also update the vscode-client dependency to pick-up the rename bug fix[1] [1]: https://github.com/microsoft/vscode-languageserver-node/issues/447 Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63126 llvm-svn: 366873
* [clangd] Detect C++ language based on well-known file path in vscode extensionHaojian Wu2019-06-181-0/+4
| | | | | | | | | | | | | | | | | | | | Summary: Matching the "C++" pattern on the first line of the file doesn't cover all cases, MSVC C++ headers doesn't have such pattern. This patch introduce a new heuristic to detect language based on the file path. MSVC C++ standard headers are in the directory like "c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63483 llvm-svn: 363662
* [clangd] Bump vscode-clangd v0.0.15.Haojian Wu2019-06-171-1/+1
| | | | | | | CHANGELOG: - support detecting C++ language from first line (`-*- C++ -*-`) of the file. llvm-svn: 363555
* [clangd] Detect C++ for extension-less source files in vscode extensionHaojian Wu2019-06-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | Summary: Extend our extension to support detecting these files as C++ files based on the first line (`-*- C++ -*-`), it will make clangd work on C++ standard headers (e.g. iostream). We use the contributes.languages[1] to enrich the builtin VScode C++ support. [1]: https://code.visualstudio.com/api/references/contribution-points#contributes.languages Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63397 llvm-svn: 363554
* [clangd] Bump vscode-clangd v0.0.14Haojian Wu2019-06-141-1/+1
| | | | | | | | | CHANGELOG: - use the vscode-buildin feature to detect language (rather than using file extensions), this fixes the extension not working on non-standard C++ files (e.g. via files.associations) llvm-svn: 363375
* [clangd] Don't maintain a list of c-family extensions in vscode extension.Haojian Wu2019-06-141-10/+11
| | | | | | | | | | | | | | | | Summary: There is no need to maintain this list by ourself, vscode already provides this feature. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63323 llvm-svn: 363372
* [clangd] Also update package-lock.jsonKadir Cetinkaya2019-05-231-1/+1
| | | | llvm-svn: 361488
* [clangd] Bump vscode extension versionKadir Cetinkaya2019-05-231-1/+1
| | | | llvm-svn: 361486
* [clangd-vscode] Do not customize uri converters in vscodeKadir Cetinkaya2019-05-231-12/+0
| | | | | | | | | | | | | | | | | | | Summary: Clangd is already resolving symlinks on the server side, therefore there is no more need to handle it in client side. This was also resulting in breakages whenever index contained a symbol coming from a non-existent file(like a generated file), e.g. during workspace symbols whole response was dropped since stat had failed. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62288 llvm-svn: 361475
* [clangd-vscode] Bump versions dependencies. NFCIlya Biryukov2019-05-231-20/+11
| | | | | | Result of running 'npm audit fix', which tracks security vulnerabilities. llvm-svn: 361464
* [clangd] Bump vscode-clangd v0.0.12.Haojian Wu2019-03-271-1/+1
| | | | | | | | | CHANGELOG: - add an explicit command to activate the extension. - support .cu files (the extension is not activated for .cu files by default, you need to manually activate the extension). llvm-svn: 357082
* [clangd] Fix the inconsistent code indent in vscode extension, NFC.Haojian Wu2019-03-271-21/+21
| | | | llvm-svn: 357078
* [clangd] Add activate command to the vscode extension.Haojian Wu2019-03-272-1/+10
| | | | | | | | | | | | | | | | Summary: This would help minizime the annoying part of not activating the extension for .cu file. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D59817 llvm-svn: 357075
* [clangd] Add .cu files to VSCode extensionIlya Biryukov2019-03-251-1/+11
| | | | | | | | | | | | | | | | | | | | | | Summary: clangd should be able to handle those with a proper compilation database. However, users using 'nvcc' might start seeing spurious errors in '.cu' files after this change. My plan is to land and release this, but be ready to revert in case of negative user feedback. Reviewers: hokein Reviewed By: hokein Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D59759 llvm-svn: 356916
* [clangd] Bump vscode-clangd v0.0.11Haojian Wu2019-02-061-1/+1
| | | | | | | CHANGELOG: - activate the extension on ObjC files. llvm-svn: 353309
* [clangd] Update dev dependencies of clangd-vscodeIlya Biryukov2019-02-063-5/+2031
| | | | | | | | | | | | | | | | | | | | | | Summary: The version bumps are a result of running `npm audit`, which found 3 security issues in previous versions of our dependencies. Also add 'package-lock.json' to the repo, it's a common practice to check in those files into the repository to get consistent versions of dependencies when running on different machines. Reviewers: hokein Reviewed By: hokein Subscribers: dschuff, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57814 llvm-svn: 353296
* [clangd] Enable clangd on Objective-C in VSCodeIlya Biryukov2019-02-061-1/+3
| | | | | | | | | | | | | | | | Summary: Thanks to Andreas Ostermeyer for raising this on the mailing list. Reviewers: hokein Reviewed By: hokein Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57813 llvm-svn: 353295
* [clangd] Bump vscode-clangd v0.0.10Haojian Wu2019-02-041-1/+1
| | | | | | | | CHANGELOG: - cleanup filestatus caches when clangd crashes - extension workwith LSP v3.14.0, support go-to-declaration feature llvm-svn: 353027
* [clangd] Update vscode dependenciesHaojian Wu2019-02-041-3/+3
| | | | | | This allows us to use latest LSP v3.14.0 (for go-to-declaration feature). llvm-svn: 353026
* [clangd] Clean the cache of file statuses on vscode-clangd when clangd crashes.Haojian Wu2019-01-241-5/+17
| | | | | | | | | | | | | | Summary: Clear the cached file statuses, otherwise we will leave some garbage texts on the status bar when clangd crashes. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D56540 llvm-svn: 352049
* Update year in license filesHans Wennborg2019-01-151-1/+1
| | | | | | | In last year's update (D48219) it was suggested that the release manager might want to do this, so here we go. llvm-svn: 351194
* [clangd] Bump vscode-clangd v0.0.9Haojian Wu2019-01-031-1/+1
| | | | llvm-svn: 350324
OpenPOWER on IntegriCloud