sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
117 stars 47 forks source link

Unexpected auto-indent at run; #1200

Open Zhirong2022 opened 2 weeks ago

Zhirong2022 commented 2 weeks ago

Describe the bug Open VSC SAS Extension base on Main branch. Type some code, indentation does not work properly in a specific scenario.

Steps to reproduce 1.Type code below in the editor

proc print data=test;
    title "title";
    format pf70 best8.;

2.Type Enter to line 4 3.Type Backspace to the start point of line 4 4.Type code below

proc print data=sashelp.cars; run;

Expected behavior No auto-indent of the second code block

Environment (please complete the following information): Client OS: [e.g. Windows 11] Extension version: [e.g. v1.10.2]