Skip to content

Commit

Permalink
Use correct metadata in goto source (#10248)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo authored Jun 1, 2022
1 parent 8c17157 commit 8e08f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/2 Fixes/10205.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix 'go to source' to work again in the interactive window.
2 changes: 1 addition & 1 deletion src/interactive-window/interactiveWindowCommandListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export class InteractiveWindowCommandListener implements IDataScienceCommandList
private async goToCodeInInteractiveWindow(context?: NotebookCell) {
if (context && context.metadata?.interactive) {
const uri = Uri.parse(context.metadata.interactive.uristring);
const line = context.metadata.interactive.line;
const line = context.metadata.interactive.lineIndex;

const editor = await this.documentManager.showTextDocument(uri, { viewColumn: ViewColumn.One });

Expand Down

0 comments on commit 8e08f92

Please sign in to comment.