Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Dai
@Jehoel
how's the VS team thesedays? I left DevDiv and MSFT at the end of 2015
CyrusNajmabadi
@CyrusNajmabadi
not sure how to answer that :D
Dai
@Jehoel
I was on the Blend team which got rolled-into VS team - most of the projects I worked on at msft got killed-off or were internal low-traffic projects... so the upside is I can travel back in time and not have any impact on history, I guess
;)
but yeah, thanks for the tip - I'll post there now while it's on my mind
CyrusNajmabadi
@CyrusNajmabadi
:)
i like it.
i like teh enormous emphasis on open source
lots of cool stuff coming down teh pipe
64bit being just the tip of it :)
Dai
@Jehoel
@CyrusNajmabadi I just posted this now: https://github.com/dotnet/roslyn/discussions/54068
Dai
@Jehoel
@CyrusNajmabadi I figured it out after spending too much time in Ghidra :)
looks like I need to specify both <ProjectCapability Include="SupportsSystemWeb" /> and <UseRazorV4Editor>false</UseRazorV4Editor>
CyrusNajmabadi
@CyrusNajmabadi
Ah :-)
Ranuka
@ranuka2
Hi everyone,
Tooltip or popup on a margin glyph doesn’t show up when two glyphs from two different plugins are overlapped each other. I have noticed that the MouseEnter event does not trigger in this scenario. I’m considering moving the margin glyph to a new margin if that’s possible. Is this a viable approach to address the tooltip issue? Thanks in advance.
vasantha-kumar25
@vasantha-kumar25
Hi All!
Is it possible to deploy two different versions of the same Custom Extension to an Instance of a Visual studio by playing with Product IDs?
Yann Duran
@yannduran
Only if they had a different id
oh, what do you mean by product id ?
vsix id?
vasantha-kumar25
@vasantha-kumar25
I referred to the Product ID in The VSIX Manifest
Yann Duran
@yannduran
yes, in that case, yes. as far as VS is concerned it is a different extension
hmm, i'm just wondering if there'll be a problem with commands. it should be ok, but if you start to have problems, that'd be the first place to look
vasantha-kumar25
@vasantha-kumar25
Thanks, @yannduran Consider my Extension is having Menu Items. Since the Menu Items will same Names despite the versions are different, will that cause any issues when I have two different Version installed?

hmm, i'm just wondering if there'll be a problem with commands. it should be ok, but if you start to have problems, that'd be the first place to look

Sure :)

Yann Duran
@yannduran
that's what I was wondering about. i don't think so, but it's possible you may need to also change the CommandSetID for the package in the VSCT
in fact i'm pretty sure you will need to do that now that i think about it
vasantha-kumar25
@vasantha-kumar25
Sure! Thanks @yannduran
Yann Duran
@yannduran
changing the VSIX id is what will allow you to install the two versions, but if you don't have a different CommandSetiID there'll more than likekly be command handler collisions
PhilippPaul
@PhilippPaul

Hi everyone,
I am writing a Visual Studio debugging extension where I am analyzing the stack for the value and data type of certain expressions/ watch variables as soon as a breakpoint is hit/ the debugger is in break mode. I am wanting to implement an auto-continue-feature for selected breakpoints, i.e. after finding/analysing the expressions on the stack in break mode, the debugger should continue execution. The breakpoint, for which this auto-continue-feature is activated, should be visually marked in some way. Visual Studio has the great "tracepoint" feaure, which I wanted to exploit , if that is possible. So here are my questions:

  1. Is there an event to know when a tracepoint is hit? The normal breakpoint events OnEnterBreakMode etc do not work here.
  2. Is it even possible to perform/implement a stack analysis for expression before the debugger continues execution at a tracepoint?

Thanks!

Авдеев Вячеслав
@lsoft
I'm trying to adapt my vsix to vs2022... if I have a node <ProductArchitecture>amd64</ProductArchitecture> AND an asset Microsoft.VisualStudio.VsPackage I get a strange error Schema validation error for 'C:\projects\github\AdjustNamespace\AdjustNamespace\obj\Debug\extension.vsixmanifest'. ╨н╨╗╨╡╨╝╨╡╨╜╤В "http://schemas.microsoft.com/developer/vsx-schema/2011:Assets" ╨╜╨╡ ╨╛╨▒╤К╤П╨▓╨╗╨╡╨╜. Yes, yes ╨н╨╗╨╡╨╝╨╡╨╜╤ :) Mads Kristensen's Inset Guid with similar vsixmanifest is compiled fine... any ideas? :)
изображение.png
Sergey Nikomarov
@SENya1990
Hi everyone. I'm a bit curious about the future of VS. Is VS going to be ported to .Net Core/.Net 5/later .Net versions?
Will we be able to write VS extensions using modern .Net runtimes?
Matt Lacey
@mrlacey
@lsoft I think you need to update the version of the referenced VSSDK to be able to compile with the new manifest entries
Does anyone know which version of json.net ships with dev17? @madskristensen do we need an update to https://devblogs.microsoft.com/visualstudio/using-newtonsoft-json-in-a-visual-studio-extension/
Авдеев Вячеслав
@lsoft
@SENya1990 no public plans for net5/net6 for VS internals. from general point of view, it's an inevitable, but no one knowns when this happens.
2 replies
Авдеев Вячеслав
@lsoft
@mrlacey thanks for the tip. I've updated everything related with VS to latest 16.x, codeanalysis to 3.10, but the same problem still exists. as a workaround, I've removed asset from vsixmanifest, looks like my vsix works fine without this node.
vasantha-kumar25
@vasantha-kumar25

Hi All!
How to check if any Instance of Visual Studio or related application is Running? Basically, I wanted to replicate the behaviour of the VSIX installer waiting, until all visual studio applications are closed.

alt

Eric M Mead
@ericmmead_twitter
Does or has anyone discovered if/where the VSSDK exposes the value of the ErrorList's "Build Only", "IntelliSense Only", or "Build + IntelliSense" filter? I thought maybe in the SettingsStore? First place I looked was the IErrorList, but didn't have luck there either.
Eric M Mead
@ericmmead_twitter
haha embarrassing. I found it. Right on the IErrorList.
Jialong Cheng
@jialongcheng

@kcbanner_twitter . I'm trying to get repro on the issue of the messagepump you mentioned earlier with the latest VS 2022 Preview. The following is the code snippet that I was using:

ThreadHelper.JoinableTaskFactory.RunAsync(VsTaskRunContext.UIThreadBackgroundPriority, async () =>
            {
                await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
                await Task.Delay(10000); // wait ten seconds
                VsShellUtilities.ShowMessageBox(this.package,
                "It worked!",
                "TestCommand",
                OLEMSGICON.OLEMSGICON_INFO,
                OLEMSGBUTTON.OLEMSGBUTTON_OK,
                OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
            });

The entire code was inside a command's Execute() method. However, I wasn't able to see the behavior where we need a mouse focus for the message box to show up. The message box showed up after 10 seconds regardless.

Could you try to see if this repro on your box? Or could you modify it to get a simple repro?

I also looked at your earlier repro code snippet here but I didn't see you specify UIThreadBackgroundPriority specifically anywhere: https://gist.github.com/kcbanner/0da112634ef4a97f8c3b4389de031289

Thanks!

Minuri Rajapaksha
@Minuri-Rajapaksha

Hi All!

Q: Events of margin glyphs are not triggered when two different plugins(vsix) with glyphs are installed

Tooltip or popup on a margin glyph doesn’t show up when two glyphs from two different plugins are installed. I have noticed that the events like MouseEnter, MouseLeave do not trigger in this scenario.

Even though both Glyph-01 and Glyph-02 images are visible here, only the tooltip/popup of Glyph-02 is popped up for the MouseEnter event. MouseEnter event of the Glyph-01 is not get triggered.

Highly appreciate your support on fixing the issue. Samples are attached below.

classifier-todo.PNG
two-glyphs.PNG
Yann Duran
@yannduran

@Minuri-Rajapaksha if you're asking Microsoft to fix this issue, this isn't the right place to be asking. You'd need to add a bug issue (problem) on the Developer Community website.

If you're just asking fellow developers for help with solving it, then ignore what I've said, this would be the right place. StackOverflow can also be a good place to ask questions too.

Minuri Rajapaksha
@Minuri-Rajapaksha
@yannduran thanks for response. I have already posted in both Developer Community and StackOverflow.
Eugene Kiba
@eugene-kiba
Could not install package 'Microsoft.ServiceHub.Analyzers 2.8.2019'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Is there any solution for the error above? Thanks
Bert Huijben
@rhuijben
@eugene-kiba are you sure you are using the right target platform (x64 vs x86 vs Any put)
=Any put. That issue will get you that same error.
AnyCPU... Stupid android client