Skip to content

Commit 8947c50

Browse files
System globals with auto-complete support
1 parent 0bfd4ea commit 8947c50

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.2.13",
8+
"version": "4.2.14",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/client/js/parser/grammar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,10 @@ rule("variable").split(
589589
)
590590
).exit().end();
591591

592-
rule("globalBody").branch().id({ class: "global", type: "global" }).split(
592+
rule("globalBody").split(
593+
char({ value: "%", class: "global", type: "global" }),
594+
any()
595+
).branch().id({ class: "global", type: "global" }).split(
593596
char({ value: ".", class: "global", type: "global" }).merge(),
594597
any()
595598
).split(

src/cls/WebTerminal/Autocomplete.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ClassMethod GetGlobals(namespace As %String = "%SYS", beginning As %String = "")
99
new $Namespace
1010
set $Namespace = namespace
1111
set rset = ##class(%ResultSet).%New("%SYS.GlobalQuery:NameSpaceList")
12-
do rset.Execute($Namespace, pattern, 0)
12+
do rset.Execute($Namespace, pattern, 1)
1313
while (rset.Next()) {
1414
set result = result _ $case(result = "", 1:"", :",") _ rset.GetData(1)
1515
}

0 commit comments

Comments
 (0)