@intentius/chant-lexicon-aws 0.13.0 → 0.14.0
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/generated/index.d.ts +113 -18
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +4 -4
- package/dist/manifest.json +1 -1
- package/dist/meta.json +1274 -208
- package/dist/types/index.d.ts +1377 -252
- package/package.json +2 -2
- package/src/generated/index.d.ts +1377 -252
- package/src/generated/index.ts +119 -24
- package/src/generated/lexicon-aws.json +1274 -208
- package/src/lsp/completions.test.ts +4 -2
|
@@ -46,7 +46,7 @@ describe("awsCompletions", () => {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
test("
|
|
49
|
+
test("caps the unfiltered `new ` dump", () => {
|
|
50
50
|
const ctx = makeCtx({
|
|
51
51
|
linePrefix: "const x = new ",
|
|
52
52
|
wordAtCursor: "",
|
|
@@ -55,7 +55,9 @@ describe("awsCompletions", () => {
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
const items = awsCompletions(ctx);
|
|
58
|
-
|
|
58
|
+
// Bare `new ` (no prefix) returns a bounded sample; a typed prefix returns
|
|
59
|
+
// every match so common resources aren't truncated (#600).
|
|
60
|
+
expect(items.length).toBeLessThanOrEqual(100);
|
|
59
61
|
});
|
|
60
62
|
|
|
61
63
|
test("returns empty for non-matching context", () => {
|