293 questions
0
votes
0
answers
32
views
Is there a way to get a list of symbols defined in a JavaScript or TypeScript file in Visual Studio?
I'm developing an extension for VS 2022 (https://github.com/dubeg/VsQuickJump2022) and I can easily find symbols for C# files using Microsoft.CodeAnalysis.Document, but for JS/TypeScripts files (ie. ...
1
vote
1
answer
110
views
How to navigate to a definition of a Symbol located in the external assembly
I have a VS extension with a custom "Code Map" tool window. It displays specific code elements in a tree view control. The tree view nodes support navigation to symbol definition on a double ...
1
vote
1
answer
80
views
IVsWindowFrame CloseFrame not working as intended on .xaml files
I'm trying to build a Visual Studio 2022 extension that closes tabs based on certain conditions.
When I'm using VsWindowFrame.CloseFrame() on most file types, it works as intended (the tab just closes)...
2
votes
0
answers
581
views
How do I access Visual Studio 2022 Extension tools options?
I am creating an extension to Visual Studio 2022. I have followed https://learn.microsoft.com/en-us/visualstudio/extensibility/creating-an-options-page?view=vs-2022 for adding options to the Tools ...
0
votes
1
answer
93
views
How to count how many times an imported MS-Build property was referenced (read) by a project?
How to count how many times an imported MS-Build property was referenced (read) by a project ?
For example one of the files imported by the MS-Build Project defines a sensitive property $(CipherNonce) ...
0
votes
1
answer
1k
views
How to fix "The extension is incompatible with the targeted version of Visual Studio" (vs 2022)
I am trying to update my published Visual Studio extension to the 2022 version, this one
The problem is: I keep getting (when attempting to update on the marketplace).
The extension is incompatible ...
0
votes
1
answer
113
views
Do Visual Studio SDK Minor Version Updates require a Visual Studio Update
In my Visual Studio Extension for VS 2019, I am currently using Visual Studio SDK version 16.0.202. This is the oldest version with Major Version 16.
If I update the version of the Visual Studio SDK, ...
0
votes
0
answers
581
views
Long running async task and long running time limited async task in C#
I have two situations that I'm not sure how to resolve properly. First is a task that runs for as long as the application. Currently, I have a construction like this:
this.task = this....
0
votes
1
answer
574
views
Any way to manually trigger a Test Discovery pass in VS2019 from a VSPackage?
We're currently building an internal apparatus to run unit tests on a large C++ codebase, using Catch2 for the framework and our in-house VS test adapter (using [ITestDiscoverer] and ITestExecutor) to ...
4
votes
1
answer
6k
views
Figuring out Windows SDK used by Visual Studio
I have multiple versions of Windows Software Development Kit installed on my machine which funnily enough the one that has been installed on my machine by Visual studio Installer tool has lower ...
3
votes
1
answer
132
views
Does the Visual Studio SDK provide a way to determine the pin status of an open document?
I know of the existence of the Running Document Table and how to access it using the Visual Studio SDK, but I can't seem to find a way to determine UX-specific attributes about the file, like if it's ...
0
votes
1
answer
81
views
Visual Studio SDK - custom designer, file type & T4 template?
a happy new year to all :)
I've been looking into the VS SDK lately, to achieve something that seemed like an entry-level thing to do, but proves to be .. elusive :P
I want to do a custom file type, ...
0
votes
1
answer
74
views
How do I add a button to an existing group on the code context window?
I'd like to place a command button directly underneath the View Call Hierarchy button on the context window.
I've only been able to add a button at the very bottom of the entire menu using ...
2
votes
2
answers
7k
views
How can I avoid an error loading Microsoft.VisualStudio.Threading in Visual Studio 2017
I have made a log of updates to my Visual Studio package in a version which only targets Visual Studio 2019. One change that I started using the NuGet package Microsoft.VisualStudio.SDK, version 16.0....
0
votes
1
answer
919
views
Trying to iterate over all documents in a solution, but ProjectItem.ProjectItems is null
I'm writing a Visual Studio extension and I want to iterate over all files in the current solution (to find files with the same name ignoring extensions).
After looking around I found out I can ...
1
vote
1
answer
109
views
How to resurface (activate) a specific document in VS?
I'm writing a small Visual Studio extension for VS2017 in C# and I'm trying something rather simple: If I press a button I want to resurface (make active) a specific document.
I have the ...
0
votes
0
answers
495
views
How do I force my package to be loaded right after open the IDE or a project?
Code's like below, similar to the built-in Custom Tool Window code template.
To load the package I have to find the ToolWindow button (Command) and press it. When I open up a folder this package is ...
0
votes
1
answer
216
views
Visual Studio extension: How to make editor text behave like a link
I would like to write a Visual Studio extension, that makes a part of the text behave like a link: blue, underlined on hover, open a URL on click. (Like the default editor works for http://... texts.)
...
0
votes
1
answer
72
views
Schema for DGML Generated out of VS 2017
s there any new DGML xsd available other than http://schemas.microsoft.com/vs/2009/dgml/dgml.xsd , as there is a difference in the codeMap.DGML generated from vs2017 to the xsd .
3
votes
0
answers
102
views
How can I detect "Edit and Continue" moment within my application?
I'm developing .NET application that draws some information on the screen. During the development it is very convenient to use Visual Studio's "Edit and Continue" feature, to make slight changes in ...
0
votes
1
answer
542
views
Visual Studio extension: get language / file type from file name or ProjectItem
I'm writing an extension to provide basic project statistics (e.g. lines of code). It's simple enough to iterate a Solution tree and find the ProjectItems that correspond with files.
The Document ...
0
votes
1
answer
64
views
VS SDK: Command should not be visible in menu, but only accessible via keyboard shortcut
I am developing a very small extension right now. I don't want to add my newly added commands to the menu as buttons. Instead, I would like to execute these commands via keyboard shortcut only. I have ...
-2
votes
1
answer
136
views
Can't Find Namespace in VS 2017 SDK Docs? [closed]
I have the following in a T4 template, (Snippet is from an old tutorial):
<#@ import namespace = "Microsoft.VisualStudio.TextTemplating" #>
<#+
Engine _engine = new Engine();
#>
I can ...
1
vote
1
answer
661
views
Visual Studio Extensibility (VSX) - Get the current branch name
I am developing a Visual Studio extension (VS Package).
I am trying to get the Source Control branch name for a project/solution.
The only source control service available in the VS SDK is ...
3
votes
1
answer
338
views
Visual Studio component import is null in vsix project (MEF)
I'm writing a Visual Studio extension, and I need create my own IWpfTextViewHost (CodeEditor Window). This can be done via the ITextEditorFactoryService but this has to be loaded via the MEF framework....