mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Use DI with Linkifier2
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
||||
this.linkifier = this._instantiationService.createInstance(Linkifier);
|
||||
}
|
||||
if (!this.linkifier2) {
|
||||
this.linkifier2 = new Linkifier2(this._bufferService);
|
||||
this.linkifier2 = this._instantiationService.createInstance(Linkifier2);
|
||||
}
|
||||
|
||||
if (this.options.windowsMode) {
|
||||
|
||||
@@ -32,7 +32,7 @@ export class Linkifier2 implements ILinkifier2 {
|
||||
public get onHideLinkUnderline(): IEvent<ILinkifierEvent> { return this._onHideLinkUnderline.event; }
|
||||
|
||||
constructor(
|
||||
private readonly _bufferService: IBufferService
|
||||
@IBufferService private readonly _bufferService: IBufferService
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user