Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' into stringLiteralCompletions
  • Loading branch information
mhegazy committed Jun 8, 2016
commit 9027da4d17db78b34cfd252f70f762e0f4b435cb
4 changes: 2 additions & 2 deletions src/services/breakpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ namespace ts.BreakpointResolver {
return spanInNode(variableDeclaration.parent.parent);
}

// If this is a destructuring pattern set breakpoint in binding pattern
// If this is a destructuring pattern, set breakpoint in binding pattern
if (isBindingPattern(variableDeclaration.name)) {
return spanInBindingPattern(<BindingPattern>variableDeclaration.name);
}
Expand Down Expand Up @@ -723,4 +723,4 @@ namespace ts.BreakpointResolver {
}
}
}
}
}
7 changes: 5 additions & 2 deletions src/services/signatureHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ namespace ts.SignatureHelp {

// // Did not find matching token
// return null;
//}
// }

const emptyArray: any[] = [];

const enum ArgumentListKind {
Expand Down Expand Up @@ -189,6 +190,7 @@ namespace ts.SignatureHelp {
}

const argumentInfo = getContainingArgumentInfo(startingToken, position, sourceFile);

cancellationToken.throwIfCancellationRequested();

// Semantic filtering of signature help
Expand Down Expand Up @@ -316,6 +318,7 @@ namespace ts.SignatureHelp {
argumentCount: argumentCount
};
}
return undefined;
}
else if (node.kind === SyntaxKind.NoSubstitutionTemplateLiteral && node.parent.kind === SyntaxKind.TaggedTemplateExpression) {
// Check if we're actually inside the template;
Expand Down Expand Up @@ -542,7 +545,7 @@ namespace ts.SignatureHelp {
const isTypeParameterList = argumentListInfo.kind === ArgumentListKind.TypeArguments;

const invocation = argumentListInfo.invocation;
const callTarget = getInvokedExpression(invocation)
const callTarget = getInvokedExpression(invocation);
const callTargetSymbol = typeChecker.getSymbolAtLocation(callTarget);
const callTargetDisplayParts = callTargetSymbol && symbolToDisplayParts(typeChecker, callTargetSymbol, /*enclosingDeclaration*/ undefined, /*meaning*/ undefined);
const items: SignatureHelpItem[] = map(candidates, candidateSignature => {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.