mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Remove test link provider
This commit is contained in:
@@ -425,7 +425,6 @@ class ExtensionTerminalLinkProvider implements ITerminalExternalLinkProvider {
|
||||
async provideLinks(instance: ITerminalInstance, line: string): Promise<ITerminalLink[] | undefined> {
|
||||
const proxy = this._proxy;
|
||||
const extHostLinks = await proxy.$provideLinks(instance.id, line);
|
||||
console.log('ExtensionTerminalLinkProvider#provideLinks', extHostLinks);
|
||||
return extHostLinks.map(dto => ({
|
||||
id: dto.id,
|
||||
startIndex: dto.startIndex,
|
||||
|
||||
@@ -341,23 +341,6 @@ export abstract class BaseExtHostTerminalService implements IExtHostTerminalServ
|
||||
onFirstListenerAdd: () => this._proxy.$startSendingDataEvents(),
|
||||
onLastListenerRemove: () => this._proxy.$stopSendingDataEvents()
|
||||
});
|
||||
|
||||
this.registerLinkProvider({
|
||||
provideTerminalLinks(ctx) {
|
||||
const links: vscode.TerminalLink[] = [
|
||||
{
|
||||
startIndex: 0,
|
||||
length: 10,
|
||||
tooltip: `Open this custom "${ctx.line.substr(0, 10)}" link`
|
||||
}
|
||||
];
|
||||
return links;
|
||||
},
|
||||
handleTerminalLink(link) {
|
||||
console.log('Handled link on ext host, tooltip=' + link.tooltip);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public abstract createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal;
|
||||
|
||||
Reference in New Issue
Block a user