ec114b8931
* Add parsing * fix all api * check gramma of import call * Add more part of assertion * Add some case * Add baseline * use module insted of target * strip assertion in d.ts * Update new baseline * accept baseline * Revert error number changes * Update diagnostic message * Accept baseline * rename path * Fix cr issues * Accept baseline * Accept baseline * Error if assertion and typeonly import * Accept baseline * Make lint happy * Add some comment * Fix cr issues * Fix more issue * Incorporate PR feedback, fix module resolution for import() * Add contextual type and completions for ImportCall options argument Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
140 lines
3.1 KiB
Plaintext
140 lines
3.1 KiB
Plaintext
[
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/main.ts",
|
|
"position": 24,
|
|
"name": "0"
|
|
},
|
|
"completionList": {
|
|
"isGlobalCompletion": false,
|
|
"isMemberCompletion": true,
|
|
"isNewIdentifierLocation": false,
|
|
"entries": [
|
|
{
|
|
"name": "assert",
|
|
"kind": "property",
|
|
"kindModifiers": "declare,optional",
|
|
"sortText": "12",
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "property",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "ImportCallOptions",
|
|
"kind": "interfaceName"
|
|
},
|
|
{
|
|
"text": ".",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "assert",
|
|
"kind": "propertyName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "ImportAssertions",
|
|
"kind": "interfaceName"
|
|
}
|
|
],
|
|
"documentation": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/main.ts",
|
|
"position": 57,
|
|
"name": "1"
|
|
},
|
|
"completionList": {
|
|
"isGlobalCompletion": false,
|
|
"isMemberCompletion": true,
|
|
"isNewIdentifierLocation": false,
|
|
"optionalReplacementSpan": {
|
|
"start": 53,
|
|
"length": 4
|
|
},
|
|
"entries": [
|
|
{
|
|
"name": "assert",
|
|
"kind": "property",
|
|
"kindModifiers": "declare,optional",
|
|
"sortText": "12",
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "property",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "ImportCallOptions",
|
|
"kind": "interfaceName"
|
|
},
|
|
{
|
|
"text": ".",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "assert",
|
|
"kind": "propertyName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "ImportAssertions",
|
|
"kind": "interfaceName"
|
|
}
|
|
],
|
|
"documentation": []
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |