f6e88cd659
This is a prerequisite to fix a bug in template completions whereby completion of the string `ti` for the variable `title` results in `tititle`. This is because the position where the completion is requested is used to insert the completion text. This is incorrect. Instead, a `replacementSpan` should be used to indicate the span of text that needs to be replaced. Angular's own `Completion` interface is insufficient to hold this information. Instead, we should just use ts.CompletionEntry. Also added string enum for `CompletionKind`, which is similar to ts.ScriptElementKind but contains more info about HTML entities. PR Close #32375
225 lines
4.4 KiB
JSON
225 lines
4.4 KiB
JSON
{
|
|
"seq": 0,
|
|
"type": "response",
|
|
"command": "completionInfo",
|
|
"request_seq": 5,
|
|
"success": true,
|
|
"body": {
|
|
"isGlobalCompletion": false,
|
|
"isMemberCompletion": false,
|
|
"isNewIdentifierLocation": false,
|
|
"entries": [
|
|
{
|
|
"name": "anchor",
|
|
"kind": "method",
|
|
"sortText": "anchor"
|
|
},
|
|
{
|
|
"name": "big",
|
|
"kind": "method",
|
|
"sortText": "big"
|
|
},
|
|
{
|
|
"name": "blink",
|
|
"kind": "method",
|
|
"sortText": "blink"
|
|
},
|
|
{
|
|
"name": "bold",
|
|
"kind": "method",
|
|
"sortText": "bold"
|
|
},
|
|
{
|
|
"name": "charAt",
|
|
"kind": "method",
|
|
"sortText": "charAt"
|
|
},
|
|
{
|
|
"name": "charCodeAt",
|
|
"kind": "method",
|
|
"sortText": "charCodeAt"
|
|
},
|
|
{
|
|
"name": "codePointAt",
|
|
"kind": "method",
|
|
"sortText": "codePointAt"
|
|
},
|
|
{
|
|
"name": "concat",
|
|
"kind": "method",
|
|
"sortText": "concat"
|
|
},
|
|
{
|
|
"name": "endsWith",
|
|
"kind": "method",
|
|
"sortText": "endsWith"
|
|
},
|
|
{
|
|
"name": "fixed",
|
|
"kind": "method",
|
|
"sortText": "fixed"
|
|
},
|
|
{
|
|
"name": "fontcolor",
|
|
"kind": "method",
|
|
"sortText": "fontcolor"
|
|
},
|
|
{
|
|
"name": "fontsize",
|
|
"kind": "method",
|
|
"sortText": "fontsize"
|
|
},
|
|
{
|
|
"name": "includes",
|
|
"kind": "method",
|
|
"sortText": "includes"
|
|
},
|
|
{
|
|
"name": "indexOf",
|
|
"kind": "method",
|
|
"sortText": "indexOf"
|
|
},
|
|
{
|
|
"name": "italics",
|
|
"kind": "method",
|
|
"sortText": "italics"
|
|
},
|
|
{
|
|
"name": "lastIndexOf",
|
|
"kind": "method",
|
|
"sortText": "lastIndexOf"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"kind": "property",
|
|
"sortText": "length"
|
|
},
|
|
{
|
|
"name": "link",
|
|
"kind": "method",
|
|
"sortText": "link"
|
|
},
|
|
{
|
|
"name": "localeCompare",
|
|
"kind": "method",
|
|
"sortText": "localeCompare"
|
|
},
|
|
{
|
|
"name": "match",
|
|
"kind": "method",
|
|
"sortText": "match"
|
|
},
|
|
{
|
|
"name": "normalize",
|
|
"kind": "method",
|
|
"sortText": "normalize"
|
|
},
|
|
{
|
|
"name": "repeat",
|
|
"kind": "method",
|
|
"sortText": "repeat"
|
|
},
|
|
{
|
|
"name": "replace",
|
|
"kind": "method",
|
|
"sortText": "replace"
|
|
},
|
|
{
|
|
"name": "search",
|
|
"kind": "method",
|
|
"sortText": "search"
|
|
},
|
|
{
|
|
"name": "slice",
|
|
"kind": "method",
|
|
"sortText": "slice"
|
|
},
|
|
{
|
|
"name": "small",
|
|
"kind": "method",
|
|
"sortText": "small"
|
|
},
|
|
{
|
|
"name": "split",
|
|
"kind": "method",
|
|
"sortText": "split"
|
|
},
|
|
{
|
|
"name": "startsWith",
|
|
"kind": "method",
|
|
"sortText": "startsWith"
|
|
},
|
|
{
|
|
"name": "strike",
|
|
"kind": "method",
|
|
"sortText": "strike"
|
|
},
|
|
{
|
|
"name": "sub",
|
|
"kind": "method",
|
|
"sortText": "sub"
|
|
},
|
|
{
|
|
"name": "substr",
|
|
"kind": "method",
|
|
"sortText": "substr"
|
|
},
|
|
{
|
|
"name": "substring",
|
|
"kind": "method",
|
|
"sortText": "substring"
|
|
},
|
|
{
|
|
"name": "sup",
|
|
"kind": "method",
|
|
"sortText": "sup"
|
|
},
|
|
{
|
|
"name": "toLocaleLowerCase",
|
|
"kind": "method",
|
|
"sortText": "toLocaleLowerCase"
|
|
},
|
|
{
|
|
"name": "toLocaleUpperCase",
|
|
"kind": "method",
|
|
"sortText": "toLocaleUpperCase"
|
|
},
|
|
{
|
|
"name": "toLowerCase",
|
|
"kind": "method",
|
|
"sortText": "toLowerCase"
|
|
},
|
|
{
|
|
"name": "toString",
|
|
"kind": "method",
|
|
"sortText": "toString"
|
|
},
|
|
{
|
|
"name": "toUpperCase",
|
|
"kind": "method",
|
|
"sortText": "toUpperCase"
|
|
},
|
|
{
|
|
"name": "trim",
|
|
"kind": "method",
|
|
"sortText": "trim"
|
|
},
|
|
{
|
|
"name": "trimLeft",
|
|
"kind": "method",
|
|
"sortText": "trimLeft"
|
|
},
|
|
{
|
|
"name": "trimRight",
|
|
"kind": "method",
|
|
"sortText": "trimRight"
|
|
},
|
|
{
|
|
"name": "valueOf",
|
|
"kind": "method",
|
|
"sortText": "valueOf"
|
|
}
|
|
]
|
|
}
|
|
}
|