Skip to content

Commit a560acd

Browse files
committed
Remove test link provider
1 parent 56358ff commit a560acd

5 files changed

Lines changed: 0 additions & 26 deletions

File tree

src/vs/workbench/api/browser/mainThreadTerminalService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ class ExtensionTerminalLinkProvider implements ITerminalExternalLinkProvider {
425425
async provideLinks(instance: ITerminalInstance, line: string): Promise<ITerminalLink[] | undefined> {
426426
const proxy = this._proxy;
427427
const extHostLinks = await proxy.$provideLinks(instance.id, line);
428-
console.log('ExtensionTerminalLinkProvider#provideLinks', extHostLinks);
429428
return extHostLinks.map(dto => ({
430429
id: dto.id,
431430
startIndex: dto.startIndex,

src/vs/workbench/api/common/extHostTerminalService.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -341,23 +341,6 @@ export abstract class BaseExtHostTerminalService implements IExtHostTerminalServ
341341
onFirstListenerAdd: () => this._proxy.$startSendingDataEvents(),
342342
onLastListenerRemove: () => this._proxy.$stopSendingDataEvents()
343343
});
344-
345-
this.registerLinkProvider({
346-
provideTerminalLinks(ctx) {
347-
const links: vscode.TerminalLink[] = [
348-
{
349-
startIndex: 0,
350-
length: 10,
351-
tooltip: `Open this custom "${ctx.line.substr(0, 10)}" link`
352-
}
353-
];
354-
return links;
355-
},
356-
handleTerminalLink(link) {
357-
console.log('Handled link on ext host, tooltip=' + link.tooltip);
358-
return true;
359-
}
360-
});
361344
}
362345

363346
public abstract createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal;

src/vs/workbench/contrib/terminal/browser/terminal.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ export interface ITerminalInstance {
301301
/** A promise that resolves when the terminal's pty/process have been created. */
302302
processReady: Promise<void>;
303303

304-
/** A promise that resolves when xterm.js has been created. */
305-
xtermReady: Promise<void>;
306-
307304
/**
308305
* The title of the terminal. This is either title or the process currently running or an
309306
* explicit name given to the terminal instance through the extension API.

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
129129
// TODO: Should this be an event as it can fire twice?
130130
public get processReady(): Promise<void> { return this._processManager.ptyProcessReady; }
131131
public get areLinksReady(): boolean { return this._areLinksReady; }
132-
public get xtermReady(): Promise<void> { return this._xtermReadyPromise.then(() => { }); }
133132
public get exitCode(): number | undefined { return this._exitCode; }
134133
public get title(): string { return this._title; }
135134
public get hadFocusOnExit(): boolean { return this._hadFocusOnExit; }

src/vs/workbench/contrib/terminal/browser/terminalService.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ export class TerminalService implements ITerminalService {
8888
public get onInstancesChanged(): Event<void> { return this._onInstancesChanged.event; }
8989
private readonly _onInstanceTitleChanged = new Emitter<ITerminalInstance>();
9090
public get onInstanceTitleChanged(): Event<ITerminalInstance> { return this._onInstanceTitleChanged.event; }
91-
private readonly _onInstanceXtermReady = new Emitter<ITerminalInstance>();
92-
public get onInstanceXtermReady(): Event<ITerminalInstance> { return this._onInstanceXtermReady.event; }
9391
private readonly _onActiveInstanceChanged = new Emitter<ITerminalInstance | undefined>();
9492
public get onActiveInstanceChanged(): Event<ITerminalInstance | undefined> { return this._onActiveInstanceChanged.event; }
9593
private readonly _onTabDisposed = new Emitter<ITerminalTab>();
@@ -490,7 +488,6 @@ export class TerminalService implements ITerminalService {
490488
const disposables: IDisposable[] = [];
491489
this._linkProviders.add(linkProvider);
492490
for (const instance of this.terminalInstances) {
493-
// Only register immediately when xterm is ready
494491
if (instance.areLinksReady) {
495492
disposables.push(instance.registerLinkProvider(linkProvider));
496493
}
@@ -665,7 +662,6 @@ export class TerminalService implements ITerminalService {
665662
public createInstance(container: HTMLElement | undefined, shellLaunchConfig: IShellLaunchConfig): ITerminalInstance {
666663
const instance = this._instantiationService.createInstance(TerminalInstance, this._terminalFocusContextKey, this._terminalShellTypeContextKey, this._configHelper, container, shellLaunchConfig);
667664
this._onInstanceCreated.fire(instance);
668-
instance.xtermReady.then(() => this._onInstanceXtermReady.fire(instance));
669665
return instance;
670666
}
671667

0 commit comments

Comments
 (0)