Update package.json to enable the plugin for .py and .sql files#1728
Open
svenjoel wants to merge 1 commit into
Open
Update package.json to enable the plugin for .py and .sql files#1728svenjoel wants to merge 1 commit into
svenjoel wants to merge 1 commit into
Conversation
feat(editor): enable proc python/sql execution in .py/.sql; expose Run UI + hotkeys Previously, wrapping and execution for `proc python` and `proc sql` were only enabled in `.sasnb` notebooks. This change extends that functionality to the regular code editor for `.sas`, `.py`, and `.sql` files. UI & commands - Show the SAS “Running man” Run button in Python/SQL editors - Enable F8 → `SAS.run` and F3 → `SAS.runSelected` - Expose `SAS.run`, `SAS.runRegion`, and `SAS.runSelected` in: - editor context menu - command palette Keybinding & menu conditions - Broaden `when` clauses to `(editorLangId == sas || python || sql)` - Require `editorFocus` for both F8 and F3 bindings - Continue to respect `!SAS.hideRunMenuItem` so shortcuts/menus are hidden when the Run item is disabled User impact - Unified run experience across SAS notebooks and code files - Improved discoverability and consistency for running code blocks and selections - Same user experiance when exectuing python code as in SAS Studio No breaking changes; behavior is scoped to Python/SQL editors and guarded by existing visibility flags.
scottdover
approved these changes
Dec 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(editor): enable proc python/sql execution in .py/.sql; expose Run UI + hotkeys Previously, wrapping and execution for
proc pythonandproc sqlwere only enabled in.sasnbnotebooks. This change extends that functionality to the regular code editor for.sas,.py, and.sqlfiles.UI & commands
Show the SAS “Running man” Run button in Python/SQL editors
Enable F8 →
SAS.runand F3 →SAS.runSelectedExpose
SAS.run,SAS.runRegion, andSAS.runSelectedin:Keybinding & menu conditions
whenclauses to(editorLangId == sas || python || sql)editorFocusfor both F8 and F3 bindings!SAS.hideRunMenuItemso shortcuts/menus are hidden when the Run item is disabledUser impact
No breaking changes; behavior is scoped to Python/SQL editors and guarded by existing visibility flags.
Summary:
Enables the plugin for .py and .sql files
Testing:
Tested hot keys, command pallets from my local VS Code with .sql & .py files,
If use has a local python env the "running man" icon is overwritten by the python "play" button, the run SAS command is acceible using the drop down next to the "play" button, hot keys and command pallet.
TODOs: