Skip to content

Instantly share code, notes, and snippets.

@ganeshrn
Created July 28, 2021 19:39
Show Gist options
  • Save ganeshrn/ea05907233e2699255cd2e0a3ebe8bed to your computer and use it in GitHub Desktop.
Save ganeshrn/ea05907233e2699255cd2e0a3ebe8bed to your computer and use it in GitHub Desktop.
client-diff-code
% git diff package.json
diff --git a/package.json b/package.json
index 1b192b2..428b13b 100644
--- a/package.json
+++ b/package.json
@@ -191,6 +191,10 @@
"test": "mocha --require ts-node/register './server/src/test/**/*.ts'",
"deploy": "vsce publish"
},
+ "dependencies": {
+ "vscode-languageclient": "^7.0.0",
+ "ansible-language-server": "^0.1.0-1"
+ },
"devDependencies": {
"@types/chai": "^4.2.21",
"@types/mocha": "^8.2.3",
% git diff client/src/extension.ts
diff --git a/client/src/extension.ts b/client/src/extension.ts
index 187b661..dfdbabd 100644
--- a/client/src/extension.ts
+++ b/client/src/extension.ts
@@ -11,9 +11,11 @@ import {
let client: LanguageClient;
export function activate(context: ExtensionContext): void {
- const serverModule = context.asAbsolutePath(
- path.join('server', 'out', 'server.js')
- );
+
+ // The Ansible language server is implemented in node
+ const serverModule = context.asAbsolutePath(
+ path.join('node_modules', 'ansible-language-server', 'out', 'server', 'src', 'server.js')
+);
// server is run at port 6009 for debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment