Don't include this function types in completeFunctionCall (#195)
This commit is contained in:
parent
47d3dba90a
commit
e4f3ab555b
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ export function getParameterListParts(
|
|||
const next = displayParts[i + 1]
|
||||
// Skip optional parameters
|
||||
const nameIsFollowedByOptionalIndicator = next && next.text === '?'
|
||||
if (!nameIsFollowedByOptionalIndicator) {
|
||||
// Skip this parameter
|
||||
const nameIsThis = part.text === 'this'
|
||||
if (!nameIsFollowedByOptionalIndicator && !nameIsThis) {
|
||||
parts.push(part)
|
||||
}
|
||||
hasOptionalParameters = hasOptionalParameters || nameIsFollowedByOptionalIndicator
|
||||
|
|
Loading…
Reference in a new issue