mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Allow passing viewColumn to simpleBrowser.api.open
This commit is contained in:
@@ -11,6 +11,7 @@ const localize = nls.loadMessageBundle();
|
||||
|
||||
export interface ShowOptions {
|
||||
readonly preserveFocus?: boolean;
|
||||
readonly viewColumn?: vscode.ViewColumn;
|
||||
}
|
||||
|
||||
export class SimpleBrowserView extends Disposable {
|
||||
@@ -75,7 +76,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
|
||||
public show(url: string, options?: ShowOptions) {
|
||||
this._webviewPanel.webview.html = this.getHtml(url);
|
||||
this._webviewPanel.reveal(undefined, options?.preserveFocus);
|
||||
this._webviewPanel.reveal(options?.viewColumn, options?.preserveFocus);
|
||||
}
|
||||
|
||||
private getHtml(url: string) {
|
||||
|
||||
Reference in New Issue
Block a user