-
Notifications
You must be signed in to change notification settings - Fork 9
Allow configuration of Snippet Tool for side by side #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -26,6 +26,11 @@ export class CodeSnippetPanel extends AbstractWebviewPanel { | |||
super.setWebviewPanel(webViewPanel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super.setWebviewPanel(webViewPanel, uiOptions);
|
||
if (uiOptions.viewColumn) { | ||
this.viewColumn = uiOptions.viewColumn; | ||
} | ||
|
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version update
No description provided.