forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
debtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on
Description
😱
vscode-python/src/client/common/application/terminalManager.ts
Lines 28 to 41 in 6578d9d
/** | |
* Monkeypatch the terminal to log commands sent. | |
*/ | |
function monkeyPatchTerminal(terminal: Terminal) { | |
if (!(terminal as any).isPatched) { | |
const oldSendText = terminal.sendText.bind(terminal); | |
terminal.sendText = (text: string, addNewLine: boolean = true) => { | |
traceLog(`Send text to terminal: ${text}`); | |
return oldSendText(text, addNewLine); | |
}; | |
(terminal as any).isPatched = true; | |
} | |
return terminal; | |
} |
Metadata
Metadata
Assignees
Labels
debtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on