Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense suggestions are sometimes counterproductive #18

Open
karlra opened this issue Jan 7, 2023 · 6 comments
Open

Intellisense suggestions are sometimes counterproductive #18

karlra opened this issue Jan 7, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@karlra
Copy link

karlra commented Jan 7, 2023

Since installing MappingGenerator my IntelliSense has started behaving a bit weird.

For example, if I try to create an instance of an interface and sometimes a class the IntelliSense will suggest some kind of equality check instead, like this (bottom one):

image

It only happens sometimes, haven't been able to find the exact situation yet.

The annoying thing is that the new suggestion is the default, so if you write a few characters and then tab-tab to autocomplete it will insert this equality check instead of the variable name that intellisense suggests normally. It's pretty annoying because it changes the muscle memory that is the VS default.

Would it be possible to at least be able to disable these intellisense suggestions that are not mapping related?

@cezarypiatek
Copy link
Owner

I will take a lookt at that. This definitely shouldn't be suggested in this case.

@cezarypiatek cezarypiatek added the bug Something isn't working label Jan 7, 2023
@cezarypiatek
Copy link
Owner

Please update to v2023.1.52. I made some improvements in this area. Let me know if the issue disappeared.

@karlra
Copy link
Author

karlra commented Jan 8, 2023

Still get the same result unfortunately. Weirdly it only happens sometimes.

@karlra
Copy link
Author

karlra commented Feb 12, 2023

There are some really other weird behaviours with intellisense introduced with this extension:

image

image

Would it be possible to have a setting to just disable every intellisense suggestion that is not related to pure mapping of DTOs? It bears mentioning that these weird suggestions are always the default too so it messes with the workflow quite a bit, and they're always really unexpected.

@cezarypiatek
Copy link
Owner

Thanks for providing those examples. I will try to verify why they appear in that form and provide an option to toggle code suggestion availability. Sorry for your inconvenience.

@cezarypiatek
Copy link
Owner

Since v2023.2.54 you can disable code suggestion by editing c:\Users\%USERNAME%\AppData\Roaming\MappingGenerator\Suggestions.json file which has the following content

{
  "MethodParametersSuggestions": false,
  "NotNullDereferenceSuggestions": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants