Documentation
¶
Index ¶
- Variables
- func CompletionFunctionMembersPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
- func CompletionFunctionMembersWithPrototypePlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
- func CompletionGlobalTypesPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
- func CompletionGlobalsInJSPlus(items []fourslash.CompletionsExpectedItem, noLib bool) []fourslash.CompletionsExpectedItem
- func CompletionGlobalsPlus(items []fourslash.CompletionsExpectedItem, noLib bool) []fourslash.CompletionsExpectedItem
- func CompletionTypeKeywordsPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
- func ToAny[T any](items []T) []any
Constants ¶
This section is empty.
Variables ¶
View Source
var CompletionClassElementInJSKeywords = getInJSKeywords(CompletionClassElementKeywords)
View Source
var CompletionClassElementKeywords = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "abstract", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "accessor", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "async", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "constructor", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "declare", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "get", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "override", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "private", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "protected", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "public", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "readonly", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "set", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "static", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, }
View Source
var CompletionConstructorParameterKeywords = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "override", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "private", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "protected", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "public", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "readonly", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, }
View Source
var CompletionFunctionMembers = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "apply", Kind: new(lsproto.CompletionItemKindMethod), }, &lsproto.CompletionItem{ Label: "arguments", Kind: new(lsproto.CompletionItemKindField), }, &lsproto.CompletionItem{ Label: "bind", Kind: new(lsproto.CompletionItemKindMethod), }, &lsproto.CompletionItem{ Label: "call", Kind: new(lsproto.CompletionItemKindMethod), }, &lsproto.CompletionItem{ Label: "caller", Kind: new(lsproto.CompletionItemKindField), }, &lsproto.CompletionItem{ Label: "length", Kind: new(lsproto.CompletionItemKindField), }, &lsproto.CompletionItem{ Label: "toString", Kind: new(lsproto.CompletionItemKindMethod), }, }
View Source
var CompletionFunctionMembersWithPrototype = sortCompletionItems(slices.Concat( CompletionFunctionMembers, []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "prototype", Kind: new(lsproto.CompletionItemKindField), }, }, ))
View Source
var CompletionGlobalInJSKeywords = getInJSKeywords(CompletionGlobalKeywords)
View Source
var CompletionGlobalKeywords = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "abstract", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "any", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "as", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "asserts", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "async", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "await", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "bigint", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "boolean", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "break", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "case", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "catch", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "class", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "const", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "continue", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "debugger", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "declare", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "default", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "delete", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "do", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "else", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "enum", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "export", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "extends", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "false", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "finally", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "for", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "function", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "if", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "implements", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "import", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "in", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "infer", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "instanceof", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "interface", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "keyof", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "let", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "module", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "namespace", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "never", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "new", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "null", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "number", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "object", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "package", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "readonly", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "return", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "satisfies", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "string", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "super", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "switch", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "symbol", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "this", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "throw", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "true", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "try", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "type", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "typeof", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "unique", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "unknown", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "using", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "var", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "void", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "while", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "with", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "yield", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, }
View Source
var CompletionGlobalThisItem = &lsproto.CompletionItem{ Label: "globalThis", Kind: new(lsproto.CompletionItemKindModule), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }
View Source
var CompletionGlobalTypeDecls = []fourslash.CompletionsExpectedItem{}/* 119 elements not displayed */
View Source
var CompletionGlobalTypes = CompletionGlobalTypesPlus(nil)
View Source
var CompletionGlobalVars = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "ArrayBuffer", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Boolean", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "DataView", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Date", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Error", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "EvalError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Float32Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Float64Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Function", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Infinity", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Int16Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Int32Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Int8Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Intl", Kind: new(lsproto.CompletionItemKindModule), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "JSON", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Math", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "NaN", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Number", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Object", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "RangeError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "ReferenceError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "RegExp", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "String", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "SyntaxError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "TypeError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "URIError", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Uint16Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Uint32Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Uint8Array", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "Uint8ClampedArray", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "decodeURI", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "decodeURIComponent", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "encodeURI", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "encodeURIComponent", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "eval", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "isFinite", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "isNaN", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "parseFloat", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "parseInt", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "escape", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.DeprecateSortText(ls.SortTextGlobalsOrKeywords))), }, &lsproto.CompletionItem{ Label: "unescape", Kind: new(lsproto.CompletionItemKindFunction), SortText: new(string(ls.DeprecateSortText(ls.SortTextGlobalsOrKeywords))), }, }
View Source
var CompletionGlobals = sortCompletionItems(slices.Concat( CompletionGlobalVars, CompletionGlobalKeywords, []fourslash.CompletionsExpectedItem{ CompletionGlobalThisItem, CompletionUndefinedVarItem, }, ))
View Source
var CompletionTypeAssertionKeywords = CompletionGlobalTypesPlus([]fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "const", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, })
View Source
var CompletionTypeKeywords = []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "any", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "asserts", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "bigint", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "boolean", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "false", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "infer", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "keyof", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "never", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "null", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "number", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "object", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "readonly", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "string", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "symbol", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "true", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "typeof", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "undefined", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "unique", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "unknown", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, &lsproto.CompletionItem{ Label: "void", Kind: new(lsproto.CompletionItemKindKeyword), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }, }
View Source
var CompletionUndefinedVarItem = &lsproto.CompletionItem{ Label: "undefined", Kind: new(lsproto.CompletionItemKindVariable), SortText: new(string(ls.SortTextGlobalsOrKeywords)), }
View Source
var DefaultCommitCharacters = []string{".", ",", ";"}
View Source
var Ignored = struct{}{}
Functions ¶
func CompletionFunctionMembersPlus ¶
func CompletionFunctionMembersPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
func CompletionFunctionMembersWithPrototypePlus ¶
func CompletionFunctionMembersWithPrototypePlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
func CompletionGlobalTypesPlus ¶
func CompletionGlobalTypesPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
func CompletionGlobalsInJSPlus ¶
func CompletionGlobalsInJSPlus(items []fourslash.CompletionsExpectedItem, noLib bool) []fourslash.CompletionsExpectedItem
func CompletionGlobalsPlus ¶
func CompletionGlobalsPlus(items []fourslash.CompletionsExpectedItem, noLib bool) []fourslash.CompletionsExpectedItem
func CompletionTypeKeywordsPlus ¶
func CompletionTypeKeywordsPlus(items []fourslash.CompletionsExpectedItem) []fourslash.CompletionsExpectedItem
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.