Update src/browser/services/DecorationService.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
Megan Rogge
2022-02-08 21:18:31 -06:00
committed by GitHub
co-authored by Daniel Imms
parent 53606820a7
commit a9b496f06f
+2 -2
View File
@@ -61,9 +61,9 @@ export class DecorationService extends Disposable implements IDecorationService
export const IDecorationService = createDecorator<IDecorationService>('DecorationService');
class Decoration extends Disposable implements IDecoration {
private static _nextId = 1;
private _marker: IMarker;
private readonly _marker: IMarker;
private _element: HTMLElement | undefined;
private _id: number = Decoration._nextId++;
private readonly _id: number = Decoration._nextId++;
public isDisposed: boolean = false;
public get id(): number { return this._id; }