Fourslash support for the builder property on completion lists.

This commit is contained in:
Paul van Brenk committed 2015-01-19 16:57:06 -08:00
1 parent 1d2554b166
commit 8c26917146
2 files changed
+16

No files matched your search

+12
View File
@@ -657,6 +657,18 @@ module FourSlash {
}
}
public verifyCompletionListIsBuilder(negative: boolean) {
var completions = this.getCompletionListAtCaret();
if (!completions) {
this.raiseError("Expected completion list");
} else if ((completions && !completions.isBuilder) && !negative) {
this.raiseError("Expected builder completion entry");
} else if ((completions && completions.isBuilder) && negative) {
this.raiseError("Un expected the builder completion entry");
}
}
public verifyCompletionListContains(symbol: string, text?: string, documentation?: string, kind?: string) {
var completions = this.getCompletionListAtCaret();
this.assertItemInCompletionList(completions.entries, symbol, text, documentation, kind);