Skip to content

Commit 78dcefc

Browse files
committed
Enable setting custom libraries path
1 parent 5fb9f73 commit 78dcefc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

client/src/extension.ts

+10
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ export async function activate(ctx: ExtensionContext) {
9898
break;
9999
}
100100

101+
let librariesLocation = workspace
102+
.getConfiguration()
103+
.get('vhdlls.standardLibraries');
104+
105+
if (lsBinary !== 'docker' && librariesLocation) {
106+
const args = ['--libraries', librariesLocation as string];
107+
serverOptions.run.args = args;
108+
serverOptions.debug.args = args;
109+
}
110+
101111
// Options to control the language client
102112
let clientOptions: LanguageClientOptions = {
103113
documentSelector: [{ scheme: 'file', language: 'vhdl' }],

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
"Add the file to an anonymous library and analyze that file"
120120
],
121121
"default": "analyze"
122+
},
123+
"vhdlls.standardLibraries": {
124+
"type": "string",
125+
"description": "Defines the path where the VHDL standard libraries (ieee, std, ...) are located. If omitted, will search in pre-defined standard paths for these libraries"
122126
}
123127
}
124128
},

0 commit comments

Comments
 (0)