aboutsummaryrefslogtreecommitdiff
path: root/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
commitc94f5a9be66727138614e24d5c7038f833f766db (patch)
treeb714af70d9e7d2b49a8ada8f6c3dc7857ed7682f /clangd/clients
parent2ee3719dd06697df90767b24308b5ef5dcec71f7 (diff)
downloadclang-tools-extra-c94f5a9be66727138614e24d5c7038f833f766db.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@323660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clangd/clients')
-rw-r--r--clangd/clients/clangd-vscode/src/extension.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/clangd/clients/clangd-vscode/src/extension.ts b/clangd/clients/clangd-vscode/src/extension.ts
index 65f3d455..58c2c180 100644
--- a/clangd/clients/clangd-vscode/src/extension.ts
+++ b/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)
}