@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.js
CHANGED
|
@@ -1094,7 +1094,7 @@ function AttrName({
|
|
|
1094
1094
|
let label = attr.name;
|
|
1095
1095
|
let snippet = attr.name;
|
|
1096
1096
|
if (attr.enum) {
|
|
1097
|
-
snippet += `="
|
|
1097
|
+
snippet += `="$1"$0`;
|
|
1098
1098
|
} else {
|
|
1099
1099
|
switch (type) {
|
|
1100
1100
|
case "string":
|
|
@@ -3541,7 +3541,6 @@ var service = {
|
|
|
3541
3541
|
);
|
|
3542
3542
|
},
|
|
3543
3543
|
async doComplete(doc, params, cancel) {
|
|
3544
|
-
let isIncomplete = false;
|
|
3545
3544
|
const itemsByLabel = /* @__PURE__ */ new Map();
|
|
3546
3545
|
await Promise.allSettled(
|
|
3547
3546
|
plugins.map(async (plugin) => {
|
|
@@ -3555,7 +3554,6 @@ var service = {
|
|
|
3555
3554
|
curItems = cur;
|
|
3556
3555
|
} else {
|
|
3557
3556
|
curItems = cur.items;
|
|
3558
|
-
isIncomplete ||= cur.isIncomplete;
|
|
3559
3557
|
}
|
|
3560
3558
|
for (const item of curItems) {
|
|
3561
3559
|
const { label } = item;
|
|
@@ -3574,7 +3572,7 @@ var service = {
|
|
|
3574
3572
|
if (cancel.isCancellationRequested)
|
|
3575
3573
|
return;
|
|
3576
3574
|
if (itemsByLabel.size) {
|
|
3577
|
-
return { items: [...itemsByLabel.values()], isIncomplete };
|
|
3575
|
+
return { items: [...itemsByLabel.values()], isIncomplete: true };
|
|
3578
3576
|
}
|
|
3579
3577
|
},
|
|
3580
3578
|
async doCompletionResolve(item, cancel) {
|