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

Refresh Metadata hotkey #575

Closed
KPMTGG opened this issue Mar 18, 2021 · 3 comments
Closed

Refresh Metadata hotkey #575

KPMTGG opened this issue Mar 18, 2021 · 3 comments
Labels
idea ideas for new features

Comments

@KPMTGG
Copy link

KPMTGG commented Mar 18, 2021

Hello, for some reason the DaxStudio inline hint/autocompletion will stop working and I must often refresh the Metadata to fix it. Would you please consider adding a hotkey for Metadata refresh?

BTW, great work on this application. It is awesome!

@KPMTGG KPMTGG added the idea ideas for new features label Mar 18, 2021
@dgosbell
Copy link
Contributor

So I could add a hotkey for the metadata refresh, but if your only reason for asking is to get the autocompletion working then I'm pretty sure this will not do that.

The reason for this is that I've tracked the issue with the autocomplete down to the fact that a hidden autocomplete window gets "stuck" and the editor thinks it's displaying when it is not and what actually resets this is to click out of the editor and then back in, not specifically the Metadata refresh operation.

I've tried a number of things to fix this in the past, but the problem has been that I did not have a reliable way of triggering the autocomplete issue so it was next to impossible to figure out what the root cause is or if if the changes I was making were having any effect.

However today I think I figured out a specific sequence that triggers this, it only works once, then I have to restart DAX Studio, but I think it's enabled me to isolate this issue and develop a work around.

So if what you were asking for is a fix for the autocomplete bug I think I have that. But I'm not sure if a hotkey for the metadata refresh is really needed as it should normally be a relatively rare operation.

@KPMTGG
Copy link
Author

KPMTGG commented Mar 19, 2021

Just the comment about clicking outside of the application will fix the issue is helpful! I hope you fix it in general, but that comment alone is useful. Thank you for your reply and hard work. I only WISH I could code something like you have.

Thank you again!

@dgosbell
Copy link
Contributor

Yes, I've found that even doing a quick alt-tab, alt-tab to switch away and back to DAX Studio seems to clear this issue.

But I do think I may have this issue solved now. I have found a sequence of steps that will repeatedly trigger this bug on the current release, but in the new build the code I've added can detect and auto-correct this situation so the autocomplete keeps working and I have not been able to make it fail so far which is looking very promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea ideas for new features
Projects
None yet
Development

No branches or pull requests

2 participants