Questions tagged [resharper-plugins]
34 questions
1
vote
2 answers
How do I get a window context so I can create NavigationOptions in a resharper plugin
I have a navigation plugin which I want to extend to allow support for context navigation. I've got everything I need except for the NavigationOptions instance. In my INavigateFromHereProvider I get called with an IDataContext so can create the…

Sam Holder
- 32,535
- 13
- 101
- 181
1
vote
1 answer
How do I create a `ITypeElement` with represents a closed generic type in a ReSharper plugin?
I'm using the ReSharper 8 sdk and want to find all inheritors of a particular generic interface, where the generic type is a particular type. I have asked a more general question which got most of the way there, but I am only able to find any…

Sam Holder
- 32,535
- 13
- 101
- 181
1
vote
1 answer
Arbitrary checks in ReSharper plugin testing
As I learned from DevGuide testing ReSharper plugins works as follows:
Plugin is loaded and test input file is passed to it
Plugin performs it's actions on the passed file
ReSharper's test environment writes plugin actions results to .tmp file in a…

MadRatX
- 13
- 4
1
vote
2 answers
Get all IDeclaredType-s in current project (for a ReSharper Generator plugin)
I'm writing a ReSharper 7.1 Generator plugin and need to get a list of all types declared in the current project (classes, interfaces and structs - IDeclaredType-s) for the GeneratorProviderBase.Populate method.
With regular…

mbinic
- 31
- 8
1
vote
0 answers
Resharper - Unit Test Runner - Hide Namespace
Is there a way to hide the Namespace in Resharper Unit Test Runner? I'm using the Project Structure Group By and the Namespace is just cluttering the Window:
Could this be fixed quickly in an extensions?
Otherwise, I created a YouTrack issue with…

Philip Pittle
- 11,821
- 8
- 59
- 123
1
vote
0 answers
Accessing selected code using ReSharper SDK
Is there any way to recognize and extract a chunk of code that has been highlighted by clicking and dragging using the ReSharper SDK?

wemblem
- 139
- 4
- 14
1
vote
2 answers
Deploy Resharper plugin to users without SDK installed
I wrote a Resharper plugin that seems to only work when users have the Resharper SDK installed. Is there a way to package the required libraries into the plugin dll, so that users just need to drop the dll in their Resharper Plugin directory for…

Matthew Piziak
- 3,430
- 4
- 35
- 49
1
vote
3 answers
Suppress IProgressIndicator in Resharper ContextAction
I'm writing a Resharper ContextAction, and the progress indicator that pops up after a second keeps stealing the focus from my text box. How can I suppress the progress indicator that gets passed to ExecutePsiTransaction?

Matthew Piziak
- 3,430
- 4
- 35
- 49
0
votes
2 answers
How to run tests of R# plugin from CLI
I want to execute the tests from this R#/Rider plugin within a GitHub Action and therefore I need to run the tests from the CLI. Simply runnning dotnet test does exactly nothing but building the project.
How can I run tests of a R#/Rider plugin from…

mu88
- 4,156
- 1
- 23
- 47
0
votes
1 answer
How to get access to the IType / IDeclaredType from an ITreeNode in ReSharper?
I am exploring writing Plugins for ReSharper / Rider. Following the documentation's example, I am building a context action for ReSharper.
Here is the context action, which is not doing much yet:
[ContextAction
(
Name = "New context action",
…

Kzryzstof
- 7,688
- 10
- 61
- 108
0
votes
2 answers
How do I setup ReSharper with Stylecop 4.5?
I just installed Stylecop 4.5 RC. I also installed ReSharper 5.1. However, I don't see StyleCop in the Tools section of ReSharper. Is ReShaper supposed to be able to get my code up to stuff with StyleCop's recommendations?

tofutim
- 22,664
- 20
- 87
- 148
0
votes
1 answer
Why isn't my custom macro showing up at template explorer?
I am trying to develop a macro for c# templates, but it simply doesn't work. I have tried reading the whole (incomplete) documentation, or find the source code of a macro to use as an example, but I failed on both.
I am able to build, install and…

Vitor Durante
- 950
- 8
- 25
0
votes
1 answer
R# Plugin test: How to specify context action with bracket in name
I created a composite context action that returns a couple of intentions with the following texts:
[Tag] Action
Second Action
Now I'm trying to cover this action by tests. I did everything by guidelines, but I'm not able to identify the first…

Alex Povar
- 674
- 3
- 15
0
votes
2 answers
Deploy Resharper 9.2 Plugin as a dll
For Resharper 7.1 we had written a Resharper Plugin - which was placed in the C:\Users\\AppData\Roaming\JetBrains\ReSharper\vAny\Plugins
folder. In VS 2012 the plugin worked without any issue.
The intention of the plugin is to analyze the…

faronel
- 333
- 1
- 9
0
votes
1 answer
SearchDomainFactory.Instance is obsolete: 'Inject me!' ( Can't find out how to create instance)
I'm in the process of trying to migrate a R# extension project from R# 6 to R# 8. (I've taken over a project that someone wrote, and I'm new to writing extensions.)
In the existing v6 project there is a class that derives from RenameWorkflow, and…

snowcode
- 1,033
- 10
- 24