Rename Linkifier2 -> Linkifier
This commit is contained in:
@@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
import { assert } from 'chai';
|
import { assert } from 'chai';
|
||||||
import { IBufferService } from 'common/services/Services';
|
import { IBufferService } from 'common/services/Services';
|
||||||
import { Linkifier2 } from './Linkifier2';
|
import { Linkifier } from './Linkifier';
|
||||||
import { MockBufferService } from 'common/TestUtils.test';
|
import { MockBufferService } from 'common/TestUtils.test';
|
||||||
import { ILink } from 'browser/Types';
|
import { ILink } from 'browser/Types';
|
||||||
import { LinkProviderService } from 'browser/services/LinkProviderService';
|
import { LinkProviderService } from 'browser/services/LinkProviderService';
|
||||||
import jsdom = require('jsdom');
|
import jsdom = require('jsdom');
|
||||||
|
|
||||||
class TestLinkifier2 extends Linkifier2 {
|
class TestLinkifier2 extends Linkifier {
|
||||||
public set currentLink(link: any) {
|
public set currentLink(link: any) {
|
||||||
this._currentLink = link;
|
this._currentLink = link;
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@ import { IDisposable } from 'common/Types';
|
|||||||
import { IBufferService } from 'common/services/Services';
|
import { IBufferService } from 'common/services/Services';
|
||||||
import { ILinkProviderService, IMouseService, IRenderService } from './services/Services';
|
import { ILinkProviderService, IMouseService, IRenderService } from './services/Services';
|
||||||
|
|
||||||
export class Linkifier2 extends Disposable implements ILinkifier2 {
|
export class Linkifier extends Disposable implements ILinkifier2 {
|
||||||
public get currentLink(): ILinkWithState | undefined { return this._currentLink; }
|
public get currentLink(): ILinkWithState | undefined { return this._currentLink; }
|
||||||
protected _currentLink: ILinkWithState | undefined;
|
protected _currentLink: ILinkWithState | undefined;
|
||||||
private _mouseDownLink: ILinkWithState | undefined;
|
private _mouseDownLink: ILinkWithState | undefined;
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
import { copyHandler, handlePasteEvent, moveTextAreaUnderMouseCursor, paste, rightClickHandler } from 'browser/Clipboard';
|
import { copyHandler, handlePasteEvent, moveTextAreaUnderMouseCursor, paste, rightClickHandler } from 'browser/Clipboard';
|
||||||
import { addDisposableDomListener } from 'browser/Lifecycle';
|
import { addDisposableDomListener } from 'browser/Lifecycle';
|
||||||
import { Linkifier2 } from './Linkifier2';
|
import { Linkifier } from './Linkifier';
|
||||||
import * as Strings from 'browser/LocalizableStrings';
|
import * as Strings from 'browser/LocalizableStrings';
|
||||||
import { OscLinkProvider } from 'browser/OscLinkProvider';
|
import { OscLinkProvider } from 'browser/OscLinkProvider';
|
||||||
import { CharacterJoinerHandler, CustomKeyEventHandler, CustomWheelEventHandler, IBrowser, IBufferRange, ICompositionHelper, ILinkifier2, ITerminal, IViewport } from 'browser/Types';
|
import { CharacterJoinerHandler, CustomKeyEventHandler, CustomWheelEventHandler, IBrowser, IBufferRange, ICompositionHelper, ILinkifier2, ITerminal, IViewport } from 'browser/Types';
|
||||||
@@ -490,7 +490,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
|||||||
this._mouseService = this._instantiationService.createInstance(MouseService);
|
this._mouseService = this._instantiationService.createInstance(MouseService);
|
||||||
this._instantiationService.setService(IMouseService, this._mouseService);
|
this._instantiationService.setService(IMouseService, this._mouseService);
|
||||||
|
|
||||||
this.linkifier = this.register(this._instantiationService.createInstance(Linkifier2, this.screenElement));
|
this.linkifier = this.register(this._instantiationService.createInstance(Linkifier, this.screenElement));
|
||||||
|
|
||||||
// Performance: Add viewport and helper elements from the fragment
|
// Performance: Add viewport and helper elements from the fragment
|
||||||
this.element.appendChild(fragment);
|
this.element.appendChild(fragment);
|
||||||
|
|||||||
Reference in New Issue
Block a user