mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Rename webview.show to webview.reveal
Make it more clear that this command only reveals an existing webview Fixes #44580
This commit is contained in:
@@ -189,8 +189,8 @@ export class MarkdownPreview {
|
||||
return this.matchesResource(otherPreview._resource, otherPreview.viewColumn, otherPreview.locked);
|
||||
}
|
||||
|
||||
public show(viewColumn: vscode.ViewColumn) {
|
||||
this.webview.show(viewColumn);
|
||||
public reveal(viewColumn: vscode.ViewColumn) {
|
||||
this.webview.reveal(viewColumn);
|
||||
}
|
||||
|
||||
public toggleLock() {
|
||||
|
||||
@@ -63,7 +63,7 @@ export class MarkdownPreviewManager {
|
||||
): void {
|
||||
let preview = this.getExistingPreview(resource, previewSettings);
|
||||
if (preview) {
|
||||
preview.show(previewSettings.previewColumn);
|
||||
preview.reveal(previewSettings.previewColumn);
|
||||
} else {
|
||||
preview = this.createNewPreview(resource, previewSettings);
|
||||
this.previews.push(preview);
|
||||
|
||||
Reference in New Issue
Block a user