8000 Don't handle cursor move if disposed · githubnext/vscode@dc6bb3c · GitHub
[go: up one dir, main page]

Skip to content

Commit dc6bb3c

Browse files
committed
Don't handle cursor move if disposed
1 parent a910c60 commit dc6bb3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ export class CommandDetectionCapability extends Disposable implements ICommandDe
149149

150150
@debounce(500)
151151
private _handleCursorMove() {
152+
if (this._store.isDisposed) {
153+
return;
154+
}
152155
// Early versions of conpty do not have real support for an alt buffer, in addition certain
153156
// commands such as tsc watch will write to the top of the normal buffer. The following
154157
// checks when the cursor has moved while the normal buffer is empty and if it is above the

0 commit comments

Comments
 (0)
0