Skip to content

fix: An error occurred while loading view: continue.continueGUIView #6116

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extensions/vscode/src/ContinueGUIWebviewViewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
_context: vscode.WebviewViewResolveContext,
_token: vscode.CancellationToken,
): void | Thenable<void> {
this.webviewProtocol.webview = webviewView.webview;
this._webviewView = webviewView;
this._webview = webviewView.webview;
webviewView.webview.html = this.getSidebarContent(
Expand Down Expand Up @@ -51,7 +52,7 @@
}

sendMainUserInput(input: string) {
this.webview?.postMessage({

Check warning on line 55 in extensions/vscode/src/ContinueGUIWebviewViewProvider.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
type: "userInput",
input,
});
Expand Down Expand Up @@ -86,7 +87,7 @@

const inDevelopmentMode =
context?.extensionMode === vscode.ExtensionMode.Development;
if (!inDevelopmentMode) {

Check warning on line 90 in extensions/vscode/src/ContinueGUIWebviewViewProvider.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

Unexpected negated condition
scriptUri = panel.webview
.asWebviewUri(vscode.Uri.joinPath(extensionUri, "gui/assets/index.js"))
.toString();
Expand Down Expand Up @@ -127,7 +128,7 @@
e.affectsConfiguration("workbench.preferredHighContrastLightColorTheme")
) {
// Send new theme to GUI to update embedded Monaco themes
this.webviewProtocol?.request("setTheme", { theme: getTheme() });

Check warning on line 131 in extensions/vscode/src/ContinueGUIWebviewViewProvider.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});

Expand Down
Loading