Skip to content

Commit 5aa6253

Browse files
committed
Import type from xterm/headless
Fixes microsoft#248589
1 parent 026aae2 commit 5aa6253

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

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

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,11 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { Event } from '../../../../base/common/event.js';
7-
import { IDisposable } from '../../../../base/common/lifecycle.js';
87
import type { IPromptInputModel, ISerializedPromptInputModel } from './commandDetection/promptInputModel.js';
98
import { ICurrentPartialCommand } from './commandDetection/terminalCommand.js';
109
import { ITerminalOutputMatch, ITerminalOutputMatcher } from '../terminal.js';
1110
import { ReplayEntry } from '../terminalProcess.js';
12-
13-
interface IEvent<T, U = void> {
14-
(listener: (arg1: T, arg2: U) => any): IDisposable;
15-
}
16-
17-
export interface IMarker extends IDisposable {
18-
/**
19-
* A unique identifier for this marker.
20-
*/
21-
readonly id: number;
22-
23-
/**
24-
* Whether this marker is disposed.
25-
*/
26-
readonly isDisposed: boolean;
27-
28-
/**
29-
* The actual line index in the buffer at this point in time. This is set to
30-
* -1 if the marker has been disposed.
31-
*/
32-
readonly line: number;
33-
34-
/**
35-
* Event listener to get notified when the marker gets disposed. Automatic disposal
36-
* might happen for a marker, that got invalidated by scrolling out or removal of
37-
* a line from the buffer.
38-
*/
39-
onDispose: IEvent<void>;
40-
}
41-
11+
import type { IMarker } from '@xterm/headless';
4212

4313
/**
4414
* Primarily driven by the shell integration feature, a terminal capability is the mechanism for

0 commit comments

Comments
 (0)