mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Support incomplete identifier in JSX initializer completions (#21681)
This commit is contained in:
4 files changed
+37
-6
No files matched your search
@@ -3156,6 +3156,9 @@ Actual: ${stringify(fullActual)}`);
|
||||
assert.equal(item.hasAction, hasAction, "hasAction");
|
||||
assert.equal(item.isRecommended, options && options.isRecommended, "isRecommended");
|
||||
assert.equal(item.insertText, options && options.insertText, "insertText");
|
||||
if (options && options.replacementSpan) { // TODO: GH#21679
|
||||
assert.deepEqual(item.replacementSpan, options && options.replacementSpan && textSpanFromRange(options.replacementSpan), "replacementSpan");
|
||||
}
|
||||
}
|
||||
|
||||
private findFile(indexOrName: string | number) {
|
||||
@@ -4616,6 +4619,7 @@ namespace FourSlashInterface {
|
||||
sourceDisplay: string;
|
||||
isRecommended?: true;
|
||||
insertText?: string;
|
||||
replacementSpan?: FourSlash.Range;
|
||||
}
|
||||
|
||||
export interface VerifyDocumentHighlightsOptions {
|
||||
|
||||
Reference in new issue
Block a user