mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fourslash support for the builder property on completion lists.
This commit is contained in:
1 parent
1d2554b166
commit
8c26917146
2 files changed
+16
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user