14 comments

Is there any documentation to speak of or do we work off the completion?

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in message
news:3fdb29a68b4578c782977be2b841@news.intellij.net...

Has anybody tried to play with ReShatper API? Any feedback?

>

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>



0

There is no much documentation at the moment. There are 2 plugin samples
and we will add more samples with each build released. Any particular API
functionality you are interested in?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is there any documentation to speak of or do we work off the
completion?

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in
message news:3fdb29a68b4578c782977be2b841@news.intellij.net...

>> Has anybody tried to play with ReShatper API? Any feedback?
>>
>> Valentin Kipiatkov
>> Chief Scientist, Vice President of Product Development
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"


0

Hello Valentin,

VK> There is no much documentation at the moment. There are 2 plugin
VK> samples and we will add more samples with each build released. Any
VK> particular API functionality you are interested in?
As for me, I'm interested in custom highlighting, code analysis and custom
quick fixes.
Could you please prepare sample for this case for next build?

For example, highlighting fields that doesn't match prefix/suffix code style
settings and provide QF to fix it.

Sincerely,
Ilya Ryzhenkov


0

As for me, I'm interested in custom highlighting, code analysis and
custom quick fixes. Could you please prepare sample for this case for
next build?


Yes, the very next samples which we plan to provide are custom live template
macros and highlighting with quickfixes.


For example, highlighting fields that doesn't match prefix/suffix code
style settings and provide QF to fix it.


Good idea. Maybe we'll choose this one.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Valentin,

VK>> There is no much documentation at the moment. There are 2 plugin
VK>> samples and we will add more samples with each build released. Any
VK>> particular API functionality you are interested in?
VK>>

As for me, I'm interested in custom highlighting, code analysis and
custom quick fixes. Could you please prepare sample for this case for
next build?

For example, highlighting fields that doesn't match prefix/suffix code
style settings and provide QF to fix it.

Sincerely,
Ilya Ryzhenkov



0

Hello Valentin,

One more thing I would like to know is, if it is possible to access features
of Resharper from within other add-in or VSIP package. I need PSI model and
some other things from Resharper to implement my code-generation idea :)

Sincerely,
Ilya Ryzhenkov


0

Valentin Kipiatkov (JetBrains) wrote:
>

Any particular API functionality you are interested in?


nice warm up would be:

-Quick fixes (pop ups)
-smart tags (please use VS's smart tags for R#...)
-Integration of code dome/code model, to allow language neutral highlighting
-formatting

In long term I'd like to see all refactoring/features to be language neutral.
Thus one could use them by providing some specific code model, R# would use this to do its magic.

0

-Integration of code dome/code model, to allow language neutral
highlighting
-formatting


What do you mean?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Valentin Kipiatkov (JetBrains) wrote:

>> Any particular API functionality you are interested in?
>>

nice warm up would be:

-Quick fixes (pop ups)
-smart tags (please use VS's smart tags for R#...)
-Integration of code dome/code model, to allow language neutral
highlighting
-formatting
In long term I'd like to see all refactoring/features to be language
neutral. Thus one could use them by providing some specific code
model, R# would use this to do its magic.



0

The code formatter subsytem is not pluggable. So third-party plug-ins cannot
alter the code formatter behavour.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Robert Giesecke" <Spam@spam.spam> wrote in message
news:dfqc33$3bg$1@is.intellij.net...

Valentin Kipiatkov (JetBrains) wrote:
>

>> Any particular API functionality you are interested in?
>>
>

nice warm up would be:

>

-Quick fixes (pop ups)
-smart tags (please use VS's smart tags for R#...)
-Integration of code dome/code model, to allow language neutral
highlighting
-formatting

>

In long term I'd like to see all refactoring/features to be language
neutral.
Thus one could use them by providing some specific code model, R# would
use this to do its magic.



0

>
> >

-Integration of code dome/code model, to allow language neutral
highlighting
-formatting

>

What do you mean?


Hi Valentin,
I meant, that the core R# shouldn't know about any specific language.
It could use the code dom and/or some API sitting between R# and the code dom.
C# would be a plug in, too. This would make it easier to provide R# bindings for other languages.
Some basic stuff (like highlighting, renaming) could work out of the box for any language.

Just an idea... but it would be great.

0

The most important thing for me would be FIT support.

This would entail looking at HTML code and mapping field, method and class
names to HTML strings.
For example, in a table I would have a cell with "Some text" in it. Above it
I'd have some row with a class name "a.b.c.dlass".

I would need to identify the a.b.c.dlass class, be able to go to it, be able
to rename it (refactor).
I would need to be able to automatically add "SomeText" as a field in that
class and have rename work on it as well (Breaking the camel casing).

Naturally, it's the tip of the iceberg, and I'm willing to do this myself.
The question is - how do i do this? Are all the APIs in place for this?

Amir


0

I meant, that the core R# shouldn't know about any specific language.


That's our goal. We are at the beginning of the way toward it however.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>>> -Integration of code dome/code model, to allow language neutral
>>> highlighting
>>> -formatting
>> What do you mean?
>>

Hi Valentin,
I meant, that the core R# shouldn't know about any specific language.
It could use the code dom and/or some API sitting between R# and the
code dom.
C# would be a plug in, too. This would make it easier to provide R#
bindings for other languages.
Some basic stuff (like highlighting, renaming) could work out of the
box for any language.
Just an idea... but it would be great.



0

Hello Ilya,

It is possible if you reference ReSharper assemblies from your project
(and then you can retrieve the Shell instance using
Shell.Shell.Instance and hence access all you need).
The problem, however, is that (to the best of my knowledge) VS does
not provide any mechanism for declaring dependencies among add-in and
packages. That is, you will need to make sure that ReSharper is
activated before your add-in/package (this can be done by
programmatically enabling ReSharper).


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Valentin,

One more thing I would like to know is, if it is possible to access
features of Resharper from within other add-in or VSIP package. I need
PSI model and some other things from Resharper to implement my
code-generation idea :)

Sincerely,
Ilya Ryzhenkov



0

Any particular API functionality you are interested in?


I'd like to be able to add the custom refactoring.

Thanks.

Dmitry Pavlov

0

Valentin,

Glad you asked, I have another post on this site a how to question that lays a specific question but basically I am looking for documentation on how to 1) programmatically search for all references to a method that I know by name (i.e. "namespace.class.methodname") and then manipulate the code surrounding that references. I can't find anything on how to get from a list of IReferences, to a CodeDOM of some sort that I can manipulate.

0

Please sign in to leave a comment.