We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df634b commit 996923aCopy full SHA for 996923a
src/extension.ts
@@ -60,8 +60,17 @@ export async function activate(context: ExtensionContext): Promise<void> {
60
61
if (existsSync(lsp)) {
62
crystalOutputChannel.appendLine(`[Crystal] loading lsp ${lsp}`)
63
+ const server_env = config["server-env"]
64
+
65
+ let serverOptions: ServerOptions = {
66
+ command: lsp,
67
+ args: []
68
+ }
69
70
+ if (server_env) {
71
+ serverOptions.options = { env: { ...process.env, ...server_env } }
72
73
- let serverOptions: ServerOptions = { command: lsp, args: [] }
74
let clientOptions: LanguageClientOptions = {
75
documentSelector: selector,
76
synchronize: {
0 commit comments