mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 19:27:35 -06:00
Changes from CR feedback
This commit is contained in:
parent
d186c83119
commit
62fddba88e
@ -756,10 +756,7 @@ namespace FourSlash {
|
||||
|
||||
public verifyCompletionListIsGlobal(expected: boolean) {
|
||||
const completions = this.getCompletionListAtCaret();
|
||||
if (!completions && expected !== undefined) {
|
||||
this.raiseError(`verifyCompletionListIsGlobal failed - expected result to be ${completions}`);
|
||||
}
|
||||
else if (completions && completions.isGlobalCompletion !== expected) {
|
||||
if (completions && completions.isGlobalCompletion !== expected) {
|
||||
this.raiseError(`verifyCompletionListIsGlobal failed - expected result to be ${completions.isGlobalCompletion}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -886,7 +886,7 @@ namespace ts.Completions {
|
||||
}
|
||||
|
||||
const semanticStart = timestamp();
|
||||
let isGlobalCompletion: boolean;
|
||||
let isGlobalCompletion = false;
|
||||
let isMemberCompletion: boolean;
|
||||
let isNewIdentifierLocation: boolean;
|
||||
let symbols: Symbol[] = [];
|
||||
@ -902,7 +902,6 @@ namespace ts.Completions {
|
||||
else {
|
||||
symbols = tagSymbols;
|
||||
}
|
||||
isGlobalCompletion = false;
|
||||
isMemberCompletion = true;
|
||||
isNewIdentifierLocation = false;
|
||||
}
|
||||
@ -913,7 +912,6 @@ namespace ts.Completions {
|
||||
if (!typeChecker.isUnknownSymbol(tagSymbol)) {
|
||||
symbols = [tagSymbol];
|
||||
}
|
||||
isGlobalCompletion = false;
|
||||
isMemberCompletion = true;
|
||||
isNewIdentifierLocation = false;
|
||||
}
|
||||
|
||||
@ -23,17 +23,17 @@
|
||||
goTo.marker("1");
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("2");
|
||||
verify.completionListIsGlobal(undefined);
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("3");
|
||||
verify.completionListIsGlobal(undefined);
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("4");
|
||||
verify.completionListIsGlobal(true);
|
||||
goTo.marker("5");
|
||||
verify.completionListIsGlobal(undefined);
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("6");
|
||||
verify.completionListIsGlobal(true);
|
||||
goTo.marker("7");
|
||||
verify.completionListIsGlobal(undefined);
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("8");
|
||||
verify.completionListIsGlobal(false);
|
||||
goTo.marker("9");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user