Skip to content

Take Save Output action against the SASNotbook code cell, focus does not change to the specified cell with right mouse clicking #1648

@Zhirong2022

Description

@Zhirong2022

Describe the bug

Open VSC SAS Extension base on Main branch. New a .sasnb file, create two notebook cells. Put some code in each cell and run, focus on the first cell and move mouse to the second one, take 'Save Output' action from the ContextMenu, it will save the output of the first cell unexpectedly.

Steps to reproduce

1.Open VSC
2.New a .sasnb file and create 2 code cells
3.Run code
4.Click the first code cell
5.Move mouse to the second one and open ContextMenu
6.Select 'Save Output'
7.Select ODS HTML
8.Open the saved file

SAS code (if applicable)

code in cell 1:
proc print data=sashelp.cars(obs=1);
run;

code in cell 2:
title 'The SAS System';
proc sgplot data=sashelp.class; histogram age; run;

Expected behavior

Focus changes to the specified code cell with right mouse click, otherwise, it will not save the specified cell contents.

Screenshots

Image

Client OS

No response

Extension version

1.17.0

SAS version

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions