X# in New Visual Studio All-In-One Search

Have some feedback and input to share?
Don't be shy and drop us a note. We want to hear from you and strive to make our site better and more user friendly for our guests and members a like.
Post Reply
IKavanagh

X# in New Visual Studio All-In-One Search

Post by IKavanagh »

Hey,

I was wondering if it would be possible or was on the cards to include X# types and members in the new Visual Studio All-In-One Search? It only seems to work with X# files and not any of the types or members within them.
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

X# in New Visual Studio All-In-One Search

Post by robert »

Ian,
We are looking into this.
Unfortunately, this is not documented by Microsoft at this moment.
So we will need to reverse engineer this and be prepared for breaking changes between builds.

It is probably easier to create our own search window, or to use the XSharp specific VS extension that Infominds has published: https://github.com/InfomindsAg/XSharpPowerTools

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
IKavanagh

X# in New Visual Studio All-In-One Search

Post by IKavanagh »

Thanks Robert. It would be a nice feature if you were able to do it. We do use the XSharpPowerTools extension from Infominds and it is fine to have two different keyboard shortcuts for X# and C# search.
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

X# in New Visual Studio All-In-One Search

Post by robert »

Ian,
Over here you can find a reply from someone from MS, justifying why they have not documented the API.
Maybe you can add your comment there too:
https://developercommunity.visualstudio ... -N10288205
I will investigate what he calls the "Goto Api' for our next build.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
IKavanagh

X# in New Visual Studio All-In-One Search

Post by IKavanagh »

Thanks Robert. I will do.

Hopefully, with enough pressure, they can release documentation to make your life easier.
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

X# in New Visual Studio All-In-One Search

Post by ic2 »

Hello Robert,
robert post=25424 userid=253 wrote: Unfortunately, this is not documented by Microsoft at this moment.
So we will need to reverse engineer this and be prepared for breaking changes between builds.
It is probably easier to create our own search window, or to use the XSharp specific VS extension that Infominds has published: https://github.com/InfomindsAg/XSharpPowerTools
I think it is better to find any solution outside Visual Studio, where possible. You will probably save a lot of time you now lose over trying to get things working within VS and the end result is usually way better than anything standard in VS, as we can see in this extension. And then I haven't even taken into consideration that Microsoft basically says "We don't document it because we produce ... (fill this in yourself) software and when we don't document it less people complain when it doesn't work anymore after an update." Brilliant!

The same happens for their documented features. I assume that using Goto/Peek definition is documented yet it often goes wrong once, when you publish a new version and I don't think you have changed anything in your code, right?

I had the same with the WebVIew2. I used it as documented but when I updated lately I had to move some initialization code to a OnLoaded method, otherwise the await webView.EnsureCoreWebView2Async(null) let the program crash. Of course this took again considerable time to figure out.

Summarizing: if it can be added into the Power Tools everyone benefit I think.

Dick
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

X# in New Visual Studio All-In-One Search

Post by robert »

Dick,
I don't agree that we should do everything ourselves. When there is a dialog inside VS for something, I want to use that. That is what people that work with multiple languages (e.g. C# and X#) would expect.
And XSharpPowerTools is not something we deliver.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

X# in New Visual Studio All-In-One Search

Post by ic2 »

Hello Robert,
robert post=25437 userid=253 wrote: I don't agree that we should do everything ourselves. When there is a dialog inside VS for something, I want to use that. That is what people that work with multiple languages (e.g. C# and X#) would expect.
I understand that. But if you need to invest a lot of time in trying to get something working with undocumented and unstable VS included features and you risk that it goes wrong all the time in next releases, both from VS & X#, then shouldn't you consider it?

Isn't it possible to redirect a menu option or shortcut key to your own code? If Volkmar is fine with extending his extension you (probably/most likely?) end up with a better working option, with less time to develop & maintain and with minimal changes from what VS users are used too.

Dick
HansjoergP
Posts: 97
Joined: Mon Jul 25, 2016 3:58 pm
Location: Italy

X# in New Visual Studio All-In-One Search

Post by HansjoergP »

I think also like Robert that we should use the standard dialog of VS where possible. The power tools we have made can never replace the many search possibilities of VS. In the meantime they are only a good workaround for some problems.
Post Reply