[PATCH] D63397: [clangd] Detect C++ for extension-less source files in vscode extension

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 01:22:36 PDT 2019


hokein updated this revision to Diff 204999.
hokein marked 2 inline comments as done.
hokein added a comment.

Address comments.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63397/new/

https://reviews.llvm.org/D63397

Files:
  clang-tools-extra/clangd/clients/clangd-vscode/package.json


Index: clang-tools-extra/clangd/clients/clangd-vscode/package.json
===================================================================
--- clang-tools-extra/clangd/clients/clangd-vscode/package.json
+++ clang-tools-extra/clangd/clients/clangd-vscode/package.json
@@ -50,6 +50,10 @@
         "url": "http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/"
     },
     "contributes": {
+        "languages": [{
+            "id": "cpp",
+            "firstLine": "^\/[/*].*-\\*-\\s*C\\+\\+\\s*-\\*-.*"
+        }],
         "configuration": {
             "type": "object",
             "title": "clangd configuration",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63397.204999.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190617/bc3de48e/attachment.bin>


More information about the cfe-commits mailing list