Răsfoiți Sursa

feat: add ROO_ACTIVE env variable to terminal env settings (#11862)

AJ Juaire 1 lună în urmă
părinte
comite
52ce796e42

+ 1 - 0
src/integrations/terminal/Terminal.ts

@@ -152,6 +152,7 @@ export class Terminal extends BaseTerminal {
 
 	public static getEnv(): Record<string, string> {
 		const env: Record<string, string> = {
+			ROO_ACTIVE: "true",
 			PAGER: process.platform === "win32" ? "" : "cat",
 
 			// VTE must be disabled because it prevents the prompt command from executing

+ 4 - 0
src/integrations/terminal/__tests__/TerminalRegistry.spec.ts

@@ -46,6 +46,7 @@ describe("TerminalRegistry", () => {
 				iconPath: expect.any(Object),
 				env: {
 					PAGER,
+					ROO_ACTIVE: "true",
 					VTE_VERSION: "0",
 					PROMPT_EOL_MARK: "",
 				},
@@ -66,6 +67,7 @@ describe("TerminalRegistry", () => {
 					iconPath: expect.any(Object),
 					env: {
 						PAGER,
+						ROO_ACTIVE: "true",
 						PROMPT_COMMAND: "sleep 0.05",
 						VTE_VERSION: "0",
 						PROMPT_EOL_MARK: "",
@@ -88,6 +90,7 @@ describe("TerminalRegistry", () => {
 					iconPath: expect.any(Object),
 					env: {
 						PAGER,
+						ROO_ACTIVE: "true",
 						VTE_VERSION: "0",
 						PROMPT_EOL_MARK: "",
 						ITERM_SHELL_INTEGRATION_INSTALLED: "Yes",
@@ -109,6 +112,7 @@ describe("TerminalRegistry", () => {
 					iconPath: expect.any(Object),
 					env: {
 						PAGER,
+						ROO_ACTIVE: "true",
 						VTE_VERSION: "0",
 						PROMPT_EOL_MARK: "",
 						POWERLEVEL9K_TERM_SHELL_INTEGRATION: "true",