|
|
@ -1,4 +1,4 @@ |
|
|
|
import type { Webview, WebviewPanel, WebviewView, WindowState } from 'vscode'; |
|
|
|
import type { ViewBadge, Webview, WebviewPanel, WebviewView, WindowState } from 'vscode'; |
|
|
|
import { Disposable, EventEmitter, Uri, ViewColumn, window, workspace } from 'vscode'; |
|
|
|
import { getNonce } from '@env/crypto'; |
|
|
|
import type { Commands, CustomEditorIds, WebviewIds, WebviewViewIds } from '../constants'; |
|
|
@ -194,6 +194,17 @@ export class WebviewController< |
|
|
|
return !this._isEditor; |
|
|
|
} |
|
|
|
|
|
|
|
get badge(): ViewBadge | undefined { |
|
|
|
return 'badge' in this.parent ? this.parent.badge : undefined; |
|
|
|
} |
|
|
|
set badge(value: ViewBadge | undefined) { |
|
|
|
if ('badge' in this.parent) { |
|
|
|
this.parent.badge = value; |
|
|
|
} else { |
|
|
|
throw new Error("The 'badge' property not supported on Webview parent"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private _description: string | undefined; |
|
|
|
get description(): string | undefined { |
|
|
|
if ('description' in this.parent) { |
|
|
|