diff --git a/extensions/markdown-language-features/src/commands/showSource.ts b/extensions/markdown-language-features/src/commands/showSource.ts index fb28397440b..d61a3211e8c 100644 --- a/extensions/markdown-language-features/src/commands/showSource.ts +++ b/extensions/markdown-language-features/src/commands/showSource.ts @@ -15,10 +15,10 @@ export class ShowSourceCommand implements Command { ) { } public execute() { - const { activePreviewResource, activePreviewSourceViewColumn } = this.previewManager; - if (activePreviewResource && activePreviewSourceViewColumn) { + const { activePreviewResource, activePreviewResourceColumn } = this.previewManager; + if (activePreviewResource && activePreviewResourceColumn) { return vscode.workspace.openTextDocument(activePreviewResource).then(document => { - vscode.window.showTextDocument(document, activePreviewSourceViewColumn); + vscode.window.showTextDocument(document, activePreviewResourceColumn); }); } return undefined; diff --git a/extensions/markdown-language-features/src/features/preview.ts b/extensions/markdown-language-features/src/features/preview.ts index 596c86e81b7..8822b8d4a61 100644 --- a/extensions/markdown-language-features/src/features/preview.ts +++ b/extensions/markdown-language-features/src/features/preview.ts @@ -101,13 +101,13 @@ export class MarkdownPreview extends Disposable { const resource = vscode.Uri.parse(state.resource); const locked = state.locked; const line = state.line; - const sourceViewColumn = state.sourceViewColumn; + const resourceColumn = state.resourceColumn; const preview = new MarkdownPreview( webview, resource, locked, - sourceViewColumn, + resourceColumn, contentProvider, previewConfigurations, logger, @@ -158,7 +158,7 @@ export class MarkdownPreview extends Disposable { webview: vscode.WebviewPanel, resource: vscode.Uri, locked: boolean, - private readonly _sourceViewColumn: vscode.ViewColumn, + private readonly _resourceColumn: vscode.ViewColumn, private readonly _contentProvider: MarkdownContentProvider, private readonly _previewConfigurations: MarkdownPreviewConfigurationManager, private readonly _logger: Logger, @@ -253,8 +253,8 @@ export class MarkdownPreview extends Disposable { return this._resource; } - public get sourceViewColumn(): vscode.ViewColumn { - return this._sourceViewColumn; + public get resourceColumn(): vscode.ViewColumn { + return this._resourceColumn; } public get state() { @@ -262,7 +262,7 @@ export class MarkdownPreview extends Disposable { resource: this.resource.toString(), locked: this._locked, line: this.line, - sourceViewColumn: this.sourceViewColumn, + resourceColumn: this.resourceColumn, imageInfo: this.imageInfo }; } diff --git a/extensions/markdown-language-features/src/features/previewManager.ts b/extensions/markdown-language-features/src/features/previewManager.ts index db09c2aaa11..3fc8106908b 100644 --- a/extensions/markdown-language-features/src/features/previewManager.ts +++ b/extensions/markdown-language-features/src/features/previewManager.ts @@ -65,8 +65,8 @@ export class MarkdownPreviewManager extends Disposable implements vscode.Webview return this._activePreview && this._activePreview.resource; } - public get activePreviewSourceViewColumn() { - return this._activePreview && this._activePreview.sourceViewColumn; + public get activePreviewResourceColumn() { + return this._activePreview && this._activePreview.resourceColumn; } public toggleLock() {