mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Added show options to simple browser open command
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { SimpleBrowserView } from './simpleBrowserView';
|
||||
import { ShowOptions, SimpleBrowserView } from './simpleBrowserView';
|
||||
|
||||
export class SimpleBrowserManager {
|
||||
|
||||
@@ -19,11 +19,11 @@ export class SimpleBrowserManager {
|
||||
this._activeView = undefined;
|
||||
}
|
||||
|
||||
public show(url: string): void {
|
||||
public show(url: string, options?: ShowOptions): void {
|
||||
if (this._activeView) {
|
||||
this._activeView.show(url);
|
||||
this._activeView.show(url, options);
|
||||
} else {
|
||||
const view = new SimpleBrowserView(this.extensionUri, url);
|
||||
const view = new SimpleBrowserView(this.extensionUri, url, options);
|
||||
view.onDispose(() => {
|
||||
if (this._activeView === view) {
|
||||
this._activeView = undefined;
|
||||
|
||||
Reference in New Issue
Block a user