Support incomplete identifier in JSX initializer completions (#21681)

This commit is contained in:
Andy authored and GitHub committed 2018-02-06 11:40:39 -08:00
1 parent cd22ea73d3
commit c4c9a00a9f
4 files changed
+37 -6

No files matched your search

+4
View File
@@ -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 {