Skip to content

Polishing session view #7075

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

Merged
merged 1 commit into from
Jun 25, 2025
Merged

Polishing session view #7075

merged 1 commit into from
Jun 25, 2025

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Jun 25, 2025

  • Adds back button
  • Adds open on web command
  • Use codicons
  • Fix overflow
  • Add state restore

- Adds back button
- Adds open on web command
- Use codicons
- Fix overflow
- Add state restore
@vs-code-engineering vs-code-engineering bot added this to the June 2025 milestone Jun 25, 2025
@mjbvz mjbvz merged commit 3b4e6f5 into main Jun 25, 2025
3 checks passed
@mjbvz mjbvz deleted the dev/mjbvz/session-log-state-restore branch June 25, 2025 00:25
@alexr00 alexr00 restored the dev/mjbvz/session-log-state-restore branch June 25, 2025 09:35
Comment on lines +174 to +180
webviewPanel.onDidChangeViewState(() => {
if (webviewPanel.active) {
this._activePanel = logView;
} else if (this._activePanel === logView && !webviewPanel.active) {
this._activePanel = undefined;
}
});
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this listener can leak

Comment on lines +49 to +51
onClick={() => {
vscode.postMessage({ type: 'openPullRequestView' });
}}>
Copy link
Member

Choose a reason for hiding this comment

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

You could also just use a link and use the PR URI format.

export async function toOpenPullRequestWebviewUri(params: OpenPullRequestWebviewUriParams): Promise<vscode.Uri> {
const query = JSON.stringify(params);
return vscode.env.asExternalUri(vscode.Uri.from({ scheme: vscode.env.uriScheme, authority: EXTENSION_ID, path: UriHandlerPaths.OpenPullRequestWebview, query }));
}

@alexr00 alexr00 deleted the dev/mjbvz/session-log-state-restore branch June 25, 2025 09:46
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.

3 participants