diff --git a/package.json b/package.json index c312bd1..744f122 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "lsp-sample", - "description": "A language server example", - "author": "Microsoft Corporation", + "name": "cpp2-lsp", + "description": "Experimental language server for cpp2/cppfront", + "author": "Vance Palacio", "license": "MIT", "version": "1.0.0", "repository": { "type": "git", - "url": "https://github.com/Microsoft/vscode-extension-samples" + "url": "https://github.com/vanceism7/ls-cpp2" }, - "publisher": "vscode-samples", + "publisher": "vp", "categories": [], "keywords": [ "multi-root ready" @@ -17,7 +17,7 @@ "vscode": "^1.75.0" }, "activationEvents": [ - "onLanguage:plaintext" + "onLanguage:cpp2" ], "main": "./client/out/extension", "contributes": { @@ -86,6 +86,7 @@ }, "dependencies": { "@types/sarif": "^2.1.7", + "@vscode/vsce": "^3.6.0", "glob": "^11.0.0", "which": "^5.0.0" } diff --git a/server/src/util.ts b/server/src/util.ts index 88ef11c..dbf3ee1 100644 --- a/server/src/util.ts +++ b/server/src/util.ts @@ -6,7 +6,7 @@ import * as fs from "fs"; * Turns a uri into a local file path */ export const unuri = (uri: string) => - uri.replace("file:///", "").replace("%3A", ":"); + uri.replace("file://", "").replace("%3A", ":"); /** * A promise version of `spawn`