-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Move command invalidation from decoration addon to command detection capability #145893
Copy link
Copy link
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersterminal-persistenceRelating to process reconnection or process reviveRelating to process reconnection or process reviveterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.verifiedVerification succeededVerification succeeded
Milestone
Description
We currently have this which runs on the renderer process only:
vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts
Lines 174 to 180 in 483ec48
| this._commandFinishedListener = capability.onCommandFinished(command => { | |
| if (command.command.trim().toLowerCase() === 'clear' || command.command.trim().toLowerCase() === 'cls') { | |
| this.clearDecorations(); | |
| return; | |
| } | |
| this.registerCommandDecoration(command); | |
| }); |
What we should do instead to ensure these changes carry over across reconnects is to mark commands as invalid or something and fire an event inside the command detection capability. The decorations addon would then listen to it and react accordingly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersterminal-persistenceRelating to process reconnection or process reviveRelating to process reconnection or process reviveterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.verifiedVerification succeededVerification succeeded