Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Indu Prakash
@iprak

Is it possible to adjust the title of the window created when a document is dragged out?

I attempted adjusting the frame caption in IVsRunningDocTableEvents3.OnBeforeDocumentWindowShow but it always fails.

pFrame.SetProperty((int)__VSFPROPID.VSFPROPID_Caption, "@ " + Path.GetFileName(path));
Alexander Gayko
@AdmiralSnyder
hey, has anyone else noticed that a lot of extensions aren't available in the marketplace lately?
Yann Duran
@yannduran
@AdmiralSnyder you should be able to specifiy the build machine's OS in your yaml file
Alexander Gayko
@AdmiralSnyder
@yannduran i have, i think. it wasn't changed. something in the machine must have changed somehow...
... or it wasn't automatically moved to the newest VS build? is that a possibility?
Yann Duran
@yannduran
@AdmiralSnyder sorry I'm no expert, so I'm not sure what else to suggest
Dai
@Jehoel
Is anyone familiar with the Razor/cshtml editor in VS? I'm wanting to know how VS knows whether it should open .cshtml files using the older Razor editor for ASP.NET MVC 4-5 with support for @helper syntax vs. the newer Razor editor for ASP.NET Core which does not support the @helper syntax.
(Backstory: I'm the maintainer of RazorGenerator, and I want to know how I can force VS open .cshtml files used by RazorGenerator using the older editor so it stops giving design-time build errors due to the use of @helper etc)
CyrusNajmabadi
@CyrusNajmabadi
@Jehoel best to ask that question over at dotnet/roslyn
Dai
@Jehoel
@CyrusNajmabadi the GitHub repo or on Gitter?
my question isn't concerned with Roslyn though... just how VS' editor extensibility works, so I'm curious why you're recommending the Roslyn community
CyrusNajmabadi
@CyrusNajmabadi
the github repo. thanks!
my question isn't concerned with Roslyn though... just how VS' editor extensibility works, so I'm curious why you're recommending the Roslyn community
that's a fair poin, and perhaps this is the right channel
the reason i recommend Roslyn though is that Roslyn includes the razor editor team
so i presumed we (i'm on that team) would know the best about how this works :)
Dai
@Jehoel
ah
CyrusNajmabadi
@CyrusNajmabadi
i could be wrong, but i work directly on the people that own and maintain both the previous and current razor editors... so i figured they were the best suited to answer here :)
if i'm wrong and they go "oh, it's something VS figures out", then apologies :)
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