Skip to content

Filter completions when dotting into a type or module in a pattern#15706

Merged
0101 merged 3 commits into
dotnet:mainfrom
kerams:c
Jul 31, 2023
Merged

Filter completions when dotting into a type or module in a pattern#15706
0101 merged 3 commits into
dotnet:mainfrom
kerams:c

Conversation

@kerams

@kerams kerams commented Jul 29, 2023

Copy link
Copy Markdown
Contributor

Removing completions that are not usable in a pattern when dotting into a type, module or namespace - methods, properties, values that are not literals and fields that are not constants.

Before

devenv_Ytw2ETIA72

After

devenv_dPKVHMzYvj

(The 2nd screenshot contains extra members because of TFM difference)

@kerams kerams requested a review from a team as a code owner July 29, 2023 21:48
@kerams

kerams commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

Also, what do you think about about classifying IL constants the same way as F# literals? The screenshot below is from a popular .NET language.

image

@psfinaki psfinaki left a comment

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.

Thanks, this is useful!

Comment thread src/Compiler/Service/ServiceParsedInputOps.fs Outdated
@psfinaki

Copy link
Copy Markdown
Contributor

Also, what do you think about classifying IL constants the same way as F# literals?

I am on the fence here, maybe you can submit a separate PR to bring this into a discussion?

@vzarytovskii

Copy link
Copy Markdown
Member

Also, what do you think about about classifying IL constants the same way as F# literals? The screenshot below is from a popular .NET language.

image

I don't see why not, after all x-project solutions are not unpopular, amirite?

@0101 0101 merged commit 950f811 into dotnet:main Jul 31, 2023
@kerams kerams deleted the c branch July 31, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants