Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Don't monkey patch vscode ext API #24103

Copy link
Copy link
Open
@Tyriar

Description

@Tyriar
Issue body actions

😱

/**
* 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

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.