mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Use ??= in more places (#163594)
This commit is contained in:
@@ -144,9 +144,7 @@ class VSCodeExtensionMarkdownContributionProvider extends Disposable implements
|
||||
public readonly onContributionsChanged = this._onContributionsChanged.event;
|
||||
|
||||
public get contributions(): MarkdownContributions {
|
||||
if (!this._contributions) {
|
||||
this._contributions = this.getCurrentContributions();
|
||||
}
|
||||
this._contributions ??= this.getCurrentContributions();
|
||||
return this._contributions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user