[vscode] add new prelude functions
This commit is contained in:
parent
1a308eadf5
commit
93518f8294
|
|
@ -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": [
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user