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:
Matt Bierner
2018-03-20 16:16:05 -07:00
parent 683f86041c
commit 67d8eebaf4
6 changed files with 9 additions and 9 deletions

View File

@@ -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() {

View File

@@ -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);