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);
|
this.linkifier = this._instantiationService.createInstance(Linkifier);
|
||||||
}
|
}
|
||||||
if (!this.linkifier2) {
|
if (!this.linkifier2) {
|
||||||
this.linkifier2 = new Linkifier2(this._bufferService);
|
this.linkifier2 = this._instantiationService.createInstance(Linkifier2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.windowsMode) {
|
if (this.options.windowsMode) {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export class Linkifier2 implements ILinkifier2 {
|
|||||||
public get onHideLinkUnderline(): IEvent<ILinkifierEvent> { return this._onHideLinkUnderline.event; }
|
public get onHideLinkUnderline(): IEvent<ILinkifierEvent> { return this._onHideLinkUnderline.event; }
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly _bufferService: IBufferService
|
@IBufferService private readonly _bufferService: IBufferService
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user