Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interactive type inlay hints#55141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
MariaSolOs merged 4 commits intomicrosoft:mainfromMariaSolOs:type-hints
Sep 20, 2023
Merged

Conversation

@MariaSolOs
Copy link
Contributor

Second iteration of#47693

aaronccasanova, erik-slovak, sni-J, and TheFanatr reacted with thumbs up emoji
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bottypescript-bot added the For Uncommitted BugPR for untriaged, rejected, closed or missing bug labelJul 24, 2023
@MariaSolOsMariaSolOs marked this pull request as draftJuly 24, 2023 21:12
@MariaSolOsMariaSolOsforce-pushed thetype-hints branch 3 times, most recently from91c2844 todec7b99CompareAugust 4, 2023 01:49
@MariaSolOsMariaSolOsforce-pushed thetype-hints branch 2 times, most recently fromfb19ede to420610aCompareAugust 4, 2023 22:21

constparts:InlayHintDisplayPart[]=[];
visitDisplayPart(typeNode);
functionvisitDisplayPart(node:Node){

Choose a reason for hiding this comment

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

nit: you're not visiting display parts, you're visiting nodes to aggregate display parts

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah I just didn't want to call itvisitor to differentiate it from the one at the top ofprovideInlayHints. Suggestions of a better name?

Copy link
Member

Choose a reason for hiding this comment

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

visitForDisplayParts?

parts.push({text:">"});
}
// TODO: Parameters.
parts.push({text:" => "});

Choose a reason for hiding this comment

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

Instead of creating objects on the fly, I'm pretty sure we have display part functions that construct these. They have the benefit that they can include a display part kind as well if I recall correctly.

On that note, I think spaces are typically their own display part.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah but those are forSymbolDisplayParts, and I haveInlayHintDisplayParts here.

@MariaSolOsMariaSolOsforce-pushed thetype-hints branch 5 times, most recently from6980ff3 to82fb813CompareAugust 10, 2023 02:48
@MariaSolOsMariaSolOsforce-pushed thetype-hints branch 3 times, most recently from169dd7f to3fdba53CompareAugust 17, 2023 01:53
@MariaSolOs
Copy link
ContributorAuthor

@jakebailey should I rebase this PR to include the new formatting setup?

@RyanCavanaugh
Copy link
Member

@jakebailey can you review the latest commit? Thanks!

@jakebailey
Copy link
Member

The changes look good, I was just waiting on#55141 (comment) as that was in my review comments from the last batch.

Copy link
Member

@jakebaileyjakebailey left a comment

Choose a reason for hiding this comment

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

Of course I don't really mind the name either way.

@Gawd71730
Copy link

Hints

@microsoftmicrosoft locked asresolvedand limited conversation to collaboratorsOct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@DanielRosenwasserDanielRosenwasserDanielRosenwasser left review comments

@jakebaileyjakebaileyjakebailey approved these changes

@zkatzkatAwaiting requested review from zkat

@jojjojAwaiting requested review from joj

@andrewbranchandrewbranchAwaiting requested review from andrewbranch

@RyanCavanaughRyanCavanaughAwaiting requested review from RyanCavanaugh

@gabrittogabrittoAwaiting requested review from gabritto

@sheetalkamatsheetalkamatAwaiting requested review from sheetalkamat

Assignees

@MariaSolOsMariaSolOs

Labels

For Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@MariaSolOs@typescript-bot@jakebailey@RyanCavanaugh@Gawd71730@DanielRosenwasser

[8]ページ先頭

©2009-2025 Movatter.jp