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

Add support for AutoExec file in the Connection Profile #340

Closed smorrisj closed 1 year ago

smorrisj commented 1 year ago

Is your feature request related to a problem? Please describe. As a SAS programmer I'd like the ability to define custom SAS code that will run once on session start for my rest connection profile.

  1. In the Connection Profile, I should be able to directly embed sas code for brief statements
  2. Alternatively I should be able to link to an external sas file that has code for longer form statements

Describe the solution you'd like The BaseProfile class should be extended to allow for definition of an embedded or externally referenced auto exec.

Environment Viya

smorrisj commented 1 year ago

For phase 1, we could support files that are sourced at a path that is reachable from where the extension sas executable runs. For phase 2, we could possibly consider supporting autoexec files sourced from sas content for viya connection profiles.