[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 = {
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": {
"keys": {
"params": [
@ -529,7 +580,10 @@ export const completions = {
]
},
"random": {
"params": []
"params": [
"min",
"max"
]
},
"clamp": {
"params": [

View File

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