Skip to content

Commit b0acd8e

Browse files
authored
feat: Allow running Python code files in SAS Content (#1815)
* feat: Add test output log and update package.json. Signed-off-by: Tom Li <tom.li@sas.com> * chore: remove accidental test log Signed-off-by: Tom Li <tom.li@sas.com> * add editorFocus back to the change updated all occurrences in to be more permissive and concise, use regular expression (resourceScheme =~ /^sas(Content|Server).*/). Signed-off-by: Tom Li <tom.li@sas.com> --------- Signed-off-by: Tom Li <tom.li@sas.com>
1 parent 713e879 commit b0acd8e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,12 @@
877877
],
878878
"keybindings": [
879879
{
880-
"when": "editorFocus && editorLangId == sas && !SAS.hideRunMenuItem",
880+
"when": "editorFocus && (editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
881881
"command": "SAS.run",
882882
"key": "f8"
883883
},
884884
{
885-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
885+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
886886
"command": "SAS.runSelected",
887887
"key": "f3"
888888
},
@@ -1108,23 +1108,23 @@
11081108
],
11091109
"editor/title/run": [
11101110
{
1111-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1111+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11121112
"command": "SAS.runSelected"
11131113
}
11141114
],
11151115
"editor/context": [
11161116
{
1117-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1117+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11181118
"command": "SAS.run",
11191119
"group": "navigation@2"
11201120
},
11211121
{
1122-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1122+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11231123
"command": "SAS.runSelected",
11241124
"group": "navigation@1"
11251125
},
11261126
{
1127-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1127+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11281128
"command": "SAS.runRegion",
11291129
"group": "navigation@3"
11301130
}
@@ -1143,15 +1143,15 @@
11431143
],
11441144
"commandPalette": [
11451145
{
1146-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1146+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11471147
"command": "SAS.run"
11481148
},
11491149
{
1150-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1150+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11511151
"command": "SAS.runSelected"
11521152
},
11531153
{
1154-
"when": "editorLangId == sas && !SAS.hideRunMenuItem",
1154+
"when": "(editorLangId == sas || (editorLangId == python && resourceScheme =~ /^sas(Content|Server).*/)) && !SAS.hideRunMenuItem",
11551155
"command": "SAS.runRegion"
11561156
},
11571157
{

0 commit comments

Comments
 (0)