|
|
@ -7,7 +7,7 @@ import type { |
|
|
|
WebviewViewResolveContext, |
|
|
|
} from 'vscode'; |
|
|
|
import { Disposable, Uri, ViewColumn, window } from 'vscode'; |
|
|
|
import type { Commands, WebviewTypes, WebviewViewTypes } from '../constants'; |
|
|
|
import type { Commands, WebviewIds, WebviewTypes, WebviewViewIds, WebviewViewTypes } from '../constants'; |
|
|
|
import type { Container } from '../container'; |
|
|
|
import { ensurePlusFeaturesEnabled } from '../plus/subscription/utils'; |
|
|
|
import { executeCoreCommand, registerCommand } from '../system/command'; |
|
|
@ -19,7 +19,7 @@ import type { WebviewProvider } from './webviewController'; |
|
|
|
import { WebviewController } from './webviewController'; |
|
|
|
|
|
|
|
export interface WebviewPanelDescriptor { |
|
|
|
id: `gitlens.${WebviewTypes}`; |
|
|
|
id: WebviewIds; |
|
|
|
readonly fileName: string; |
|
|
|
readonly iconPath: string; |
|
|
|
readonly title: string; |
|
|
@ -37,7 +37,7 @@ interface WebviewPanelRegistration { |
|
|
|
} |
|
|
|
|
|
|
|
export interface WebviewPanelProxy extends Disposable { |
|
|
|
readonly id: `gitlens.${WebviewTypes}`; |
|
|
|
readonly id: WebviewIds; |
|
|
|
readonly ready: boolean; |
|
|
|
readonly visible: boolean; |
|
|
|
close(): void; |
|
|
@ -46,7 +46,7 @@ export interface WebviewPanelProxy extends Disposable { |
|
|
|
} |
|
|
|
|
|
|
|
export interface WebviewViewDescriptor { |
|
|
|
id: `gitlens.views.${WebviewViewTypes}`; |
|
|
|
id: WebviewViewIds; |
|
|
|
readonly fileName: string; |
|
|
|
readonly title: string; |
|
|
|
readonly contextKeyPrefix: `gitlens:webviewView:${WebviewViewTypes}`; |
|
|
@ -65,7 +65,7 @@ interface WebviewViewRegistration { |
|
|
|
} |
|
|
|
|
|
|
|
export interface WebviewViewProxy extends Disposable { |
|
|
|
readonly id: `gitlens.views.${WebviewViewTypes}`; |
|
|
|
readonly id: WebviewViewIds; |
|
|
|
readonly ready: boolean; |
|
|
|
readonly visible: boolean; |
|
|
|
refresh(force?: boolean): Promise<void>; |
|
|
|