Skip to content

Fix to issue 23326 for completions on new.target#24342

Merged
elizabethdinella merged 4 commits into
masterfrom
issue23326
May 24, 2018
Merged

Fix to issue 23326 for completions on new.target#24342
elizabethdinella merged 4 commits into
masterfrom
issue23326

Conversation

@elizabethdinella
Copy link
Copy Markdown
Contributor

Fixes #23326

@msftclas
Copy link
Copy Markdown

msftclas commented May 22, 2018

CLA assistant check
All CLA requirements met.

case SyntaxKind.ImportType:
node = parent;
break;
case SyntaxKind.MetaProperty:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move two lines up and delete duplicate code

////}

goTo.marker("");
debugger;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove debugger statement

Comment thread src/services/completions.ts Outdated
}
}

if (isMetaProperty(node) && node.keywordToken === SyntaxKind.NewKeyword) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import.meta is another meta property that we should support.

@RyanCavanaugh
Copy link
Copy Markdown
Member

(thought I had a suggestion but I didn't)

@elizabethdinella elizabethdinella merged commit b745ea0 into master May 24, 2018
@RyanCavanaugh RyanCavanaugh deleted the issue23326 branch May 24, 2018 22:02
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants