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

Try to run a SAS file having no contents will lead to console error 'Cannot read properties of null (reading 'forEach')' #1201

Closed Zhirong2022 closed 1 week ago

Zhirong2022 commented 2 weeks ago

Describe the bug Open VSC SAS Extension base on Main branch. Create a SAS file, click the Run-man icon, console error will be thrown unexpectedly.

Steps to reproduce

  1. New a SAS file through File->New File
  2. Click Run button
  3. Open Console through Help->Toggle Developer Tools

Expected behavior No console error

Screenshots image

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