From 8916f912b0fbbac3b2ed806e3a6ff6f80970b34c Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Wed, 18 Sep 2024 09:32:35 +0200 Subject: [PATCH] wip-try-forcing-input-into-terminal --- .vscode/settings.json | 15 ++++++++++++++- client/src/ui/BitbakeTerminal.ts | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6808821e..a97be54e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,5 +14,18 @@ "source.fixAll.eslint": "explicit" }, "jest.jestCommandLine": "node_modules/.bin/jest", - "jest.monitorLongRun": 300000 + "jest.monitorLongRun": 300000, + "python.autoComplete.extraPaths": [ + "${workspaceFolder}/yocto-build/sources/poky/bitbake/lib", + "${workspaceFolder}/yocto-build/sources/poky/meta/lib" + ], + "python.analysis.extraPaths": [ + "${workspaceFolder}/yocto-build/sources/poky/bitbake/lib", + "${workspaceFolder}/yocto-build/sources/poky/meta/lib" + ], + "files.associations": { + "*.txt": "diff", + "*.conf": "bitbake", + "*.inc": "bitbake" + } } diff --git a/client/src/ui/BitbakeTerminal.ts b/client/src/ui/BitbakeTerminal.ts index da9ba930..440840b8 100644 --- a/client/src/ui/BitbakeTerminal.ts +++ b/client/src/ui/BitbakeTerminal.ts @@ -103,6 +103,7 @@ export class BitbakePseudoTerminal implements vscode.Pseudoterminal { } handleInput (data: string): void { + logger.warn('EDRT Received input:' + data) if (this.process === undefined) { this.closeEmitter.fire(0) if (!this.isTaskTerminal()) { bitbakeTerminals.splice(bitbakeTerminals.indexOf(this.parentTerminal as BitbakeTerminal), 1) } @@ -113,6 +114,8 @@ export class BitbakePseudoTerminal implements vscode.Pseudoterminal { void this.bitbakeDriver.killBitbake() } } + process?.stdin.write(data) + if ((process?.send) != null) { process?.send(data) } } }