We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a26a37 commit 5510cffCopy full SHA for 5510cff
src/extensions/sp_javascriptV2/index.js
@@ -90,12 +90,12 @@ function initBlockTools() {
90
}
91
92
let list = [];
93
- if (current) {
+ if (current && chain.length) {
94
list = [
95
...Object.getOwnPropertyNames(current),
96
...Object.getOwnPropertyNames(current.constructor.prototype)
97
];
98
- } else if (chain.length === 0 || chain[0] === "window") {
+ } else {
99
list.push(...aceCompleteSchema);
100
list.push("vm");
101
if (typeof Scratch === "object") list.push("Scratch");
@@ -107,7 +107,7 @@ function initBlockTools() {
107
caption: word,
108
value: word,
109
meta: chain.length ? "child of " + chain[chain.length - 1] : "root",
110
- score: 10000
+ score: 1000
111
})));
112
113
};
0 commit comments