[gnome-builder] libide/lsp: don't clear environment for LSP subprocess
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/lsp: don't clear environment for LSP subprocess
- Date: Fri, 30 Sep 2022 22:12:31 +0000 (UTC)
commit 51ec3464fe73931ec458b66df9d47c1312bd53c6
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 30 15:10:58 2022 -0700
libide/lsp: don't clear environment for LSP subprocess
When spawning in Builder environment, make sure we have access to the
various environment variables Builder also sees.
src/libide/lsp/ide-lsp-service.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libide/lsp/ide-lsp-service.c b/src/libide/lsp/ide-lsp-service.c
index 0a44f1052..e10409a62 100644
--- a/src/libide/lsp/ide-lsp-service.c
+++ b/src/libide/lsp/ide-lsp-service.c
@@ -284,6 +284,7 @@ ide_lsp_service_real_create_launcher (IdeLspService *self,
launcher = ide_subprocess_launcher_new (flags);
ide_subprocess_launcher_push_argv (launcher, path);
ide_subprocess_launcher_set_cwd (launcher, srcdir);
+ ide_subprocess_launcher_set_clear_env (launcher, FALSE);
IDE_RETURN (g_steal_pointer (&launcher));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]