summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/clients
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-01-29 15:37:46 +0000
committerEric Liu <ioeric@google.com>2018-01-29 15:37:46 +0000
commit78ed91a76cf0381090ebd118228fbab96c3736b6 (patch)
tree93615f6cac43d6b7c9ae89b7ed262eca482639a2 /clang-tools-extra/clangd/clients
parentba8daf0964c74ec394e905cc07ca3042360b51bf (diff)
downloadbcm5719-llvm-78ed91a76cf0381090ebd118228fbab96c3736b6.tar.gz
bcm5719-llvm-78ed91a76cf0381090ebd118228fbab96c3736b6.zip
[clangd] Use new URI with scheme support in place of the existing LSP URI
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
Diffstat (limited to 'clang-tools-extra/clangd/clients')
-rw-r--r--clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts b/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
index 65f3d4551c3..58c2c1806fb 100644
--- a/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
+++ b/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
@@ -27,13 +27,6 @@ export function activate(context: vscode.ExtensionContext) {
const clientOptions: vscodelc.LanguageClientOptions = {
// Register the server for C/C++ files
documentSelector: [{scheme: 'file', pattern: filePattern}],
- uriConverters: {
- // FIXME: by default the URI sent over the protocol will be percent encoded (see rfc3986#section-2.1)
- // the "workaround" below disables temporarily the encoding until decoding
- // is implemented properly in clangd
- code2Protocol: (uri: vscode.Uri) : string => uri.toString(true),
- protocol2Code: (uri: string) : vscode.Uri => vscode.Uri.parse(uri)
- },
synchronize: !syncFileEvents ? undefined : {
fileEvents: vscode.workspace.createFileSystemWatcher(filePattern)
}
OpenPOWER on IntegriCloud