Skip to content

Conversation

NetaMolcho
Copy link
Collaborator

No description provided.

@@ -26,6 +26,11 @@ export class CodeSnippetPanel extends AbstractWebviewPanel {
super.setWebviewPanel(webViewPanel);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super.setWebviewPanel(webViewPanel, uiOptions);

Comment on lines 29 to 33

if (uiOptions.viewColumn) {
this.viewColumn = uiOptions.viewColumn;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@@ -30,6 +31,7 @@ export abstract class AbstractWebviewPanel {
public setWebviewPanel(webviewPanel: vscode.WebviewPanel, state?: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public setWebviewPanel(webviewPanel: vscode.WebviewPanel, uiOptions?: any) {

@@ -30,6 +31,7 @@ export abstract class AbstractWebviewPanel {
public setWebviewPanel(webviewPanel: vscode.WebviewPanel, state?: any) {
this.webViewPanel = webviewPanel;
this.state = state;
Copy link
Contributor

@tomer-epstein tomer-epstein Nov 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace the 'state' with -
this.uiOptions= uiOptions;

@@ -30,6 +31,7 @@ export abstract class AbstractWebviewPanel {
public setWebviewPanel(webviewPanel: vscode.WebviewPanel, state?: any) {
this.webViewPanel = webviewPanel;
this.state = state;
this.viewColumn = vscode.ViewColumn.One;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

	this.viewColumn = this.uiOptions?.viewColumn || vscode.ViewColumn.One;

Copy link
Contributor

@tomer-epstein tomer-epstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version update

@NetaMolcho NetaMolcho merged commit 978b6de into master Nov 12, 2020
@NetaMolcho NetaMolcho deleted the viewColumn branch November 12, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants