[clangd] in VSCode client, filter extensions properly and only accept file: URIs
authorSam McCall <sam.mccall@gmail.com>
Mon, 18 Dec 2017 11:29:45 +0000 (11:29 +0000)
committerSam McCall <sam.mccall@gmail.com>
Mon, 18 Dec 2017 11:29:45 +0000 (11:29 +0000)
commit16d682b6e519bfa55d9da904992fbd08e6fff83a
treeccc310b0d29a442ef27b35402266258b6c34a053
parent06997a767e16a01e1fb55e3461e4c15e32affdd1
[clangd] in VSCode client, filter extensions properly and only accept file: URIs

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
clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts