[vscode] add new prelude functions

This commit is contained in:
Chris Wanstrath 2025-12-10 11:12:48 -08:00
parent 1a308eadf5
commit 93518f8294
2 changed files with 60 additions and 1 deletions

View File

@ -8,6 +8,57 @@ export type CompletionMetadata = {
export const completions = { export const completions = {
modules: { modules: {
"date": {
"now": {
"params": []
},
"year": {
"params": [
"time"
]
},
"month": {
"params": [
"time"
]
},
"date": {
"params": [
"time"
]
},
"hour": {
"params": [
"time"
]
},
"minute": {
"params": [
"time"
]
},
"second": {
"params": [
"time"
]
},
"ms": {
"params": [
"time"
]
},
"new": {
"params": [
"year",
"month",
"day",
"hour",
"minute",
"second",
"ms"
]
}
},
"dict": { "dict": {
"keys": { "keys": {
"params": [ "params": [
@ -529,7 +580,10 @@ export const completions = {
] ]
}, },
"random": { "random": {
"params": [] "params": [
"min",
"max"
]
}, },
"clamp": { "clamp": {
"params": [ "params": [

View File

@ -6,7 +6,9 @@ export const PRELUDE_NAMES = [
"array?", "array?",
"at", "at",
"bnot", "bnot",
"boolean",
"boolean?", "boolean?",
"date",
"dec", "dec",
"describe", "describe",
"dict", "dict",
@ -24,15 +26,18 @@ export const PRELUDE_NAMES = [
"json", "json",
"length", "length",
"list", "list",
"list?",
"load", "load",
"math", "math",
"not", "not",
"null?", "null?",
"number",
"number?", "number?",
"range", "range",
"ref", "ref",
"some?", "some?",
"str", "str",
"string",
"string?", "string?",
"type", "type",
"var", "var",