Skip to content

Commit bf4988e

Browse files
committed
Use the new install vscode-per-namespace-settings package
1 parent 66aa974 commit bf4988e

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

iris.script

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
// Unexpire passwords to simplify dev mode. Comment these two lines for Production use
21
zn "%SYS"
3-
Do ##class(Security.Users).UnExpireUserPasswords("*")
42

5-
; enabling callin for Embedded Python
3+
// Unexpire passwords and set up passwordless mode to simplify dev use.
4+
// ** Comment out these two line for Production use **
5+
do ##class(Security.Users).UnExpireUserPasswords("*")
6+
zpm "install passwordless"
7+
8+
// Enable callin for Embedded Python
69
do ##class(Security.Services).Get("%Service_CallIn",.prop)
710
set prop("Enabled")=1
811
set prop("AutheEnabled")=48
@@ -12,22 +15,13 @@
1215
do $SYSTEM.OBJ.Load("/home/irisowner/dev/Installer.cls", "ck")
1316
set sc = ##class(App.Installer).setup()
1417

15-
// create /_vscode web app to support intersystems-community.testingmanager VS Code extension
16-
kill prop
17-
set prop("AutheEnabled")=32
18-
set prop("AutoCompile")=0
19-
set prop("Description")="Storage for VS Code namespace-specific settings, snippets, debug configurations etc."
20-
set prop("NameSpace")="%SYS"
21-
set prop("Path")="/usr/irissys/.vscode"
22-
set sc=##class(Security.Applications).Create("/_vscode",.prop)
18+
zn "IRISAPP"
2319

24-
// Configure %UnitTest in IRISAPP to suit the VS Code extension
25-
set ^|"IRISAPP"|UnitTestRoot=prop("Path")_"/IRISAPP/UnitTestRoot"
20+
// Create /_vscode web app to support intersystems-community.testingmanager VS Code extension
21+
zpm "install vscode-per-namespace-settings"
2622

27-
// comment the line below for production images
28-
zpm "install passwordless"
29-
// load all the code of the project as a ZPM package
30-
zn "IRISAPP"
23+
// Configure %UnitTest in IRISAPP to suit the VS Code extension
24+
set ^UnitTestRoot="/usr/irissys/.vscode/IRISAPP/UnitTestRoot"
3125

3226
zpm "load /home/irisowner/dev/ -v":1:1
3327
halt

0 commit comments

Comments
 (0)