@marko/language-server 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1089,7 +1089,7 @@ function AttrName({
|
|
|
1089
1089
|
let label = attr.name;
|
|
1090
1090
|
let snippet = attr.name;
|
|
1091
1091
|
if (attr.enum) {
|
|
1092
|
-
snippet += `="
|
|
1092
|
+
snippet += `="$1"$0`;
|
|
1093
1093
|
} else {
|
|
1094
1094
|
switch (type) {
|
|
1095
1095
|
case "string":
|
|
@@ -3575,7 +3575,6 @@ var service = {
|
|
|
3575
3575
|
);
|
|
3576
3576
|
},
|
|
3577
3577
|
async doComplete(doc, params, cancel) {
|
|
3578
|
-
let isIncomplete = false;
|
|
3579
3578
|
const itemsByLabel = /* @__PURE__ */ new Map();
|
|
3580
3579
|
await Promise.allSettled(
|
|
3581
3580
|
plugins.map(async (plugin) => {
|
|
@@ -3589,7 +3588,6 @@ var service = {
|
|
|
3589
3588
|
curItems = cur;
|
|
3590
3589
|
} else {
|
|
3591
3590
|
curItems = cur.items;
|
|
3592
|
-
isIncomplete ||= cur.isIncomplete;
|
|
3593
3591
|
}
|
|
3594
3592
|
for (const item of curItems) {
|
|
3595
3593
|
const { label } = item;
|
|
@@ -3608,7 +3606,7 @@ var service = {
|
|
|
3608
3606
|
if (cancel.isCancellationRequested)
|
|
3609
3607
|
return;
|
|
3610
3608
|
if (itemsByLabel.size) {
|
|
3611
|
-
return { items: [...itemsByLabel.values()], isIncomplete };
|
|
3609
|
+
return { items: [...itemsByLabel.values()], isIncomplete: true };
|
|
3612
3610
|
}
|
|
3613
3611
|
},
|
|
3614
3612
|
async doCompletionResolve(item, cancel) {
|