History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-42668
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Oleg Stepanov
Reporter: Ilya Ryzhenkov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Re: 447 Magic intellisense for unreferenced types not available.

Created: 08 Jun 07 14:29   Updated: 30 Jan 08 16:12
Component/s: Code Completion
Fix Version/s: Mirabilie Futurum

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive WebApplicationNoMagicAutoCompletion.zip (11 kb)


Old URL: news://news.intellij.net/3374906.1181298433048.JavaMail.itn@is.intellij.net


 Description  « Hide
This issue has been created from an NNTP article.

Hello Dmitry,

Ilya is correct. In a recent v3 EAP build, R# would provide intellisense on certain .Net types that were not yet referenced in the project. R# provided intellisense for the item and then underlined the code in red, stating that a reference needed to be added to a system assembly (it also indicates which assembly).

I have done a bit more research on this. The build that had this feature working was almost certainly 423.

Specifically, I had a a solution containing an ASP.NET project and a class library. The ASP.NET project automatically includes a reference to System.Configuration (although I do not know how relevant the presence of this referernce was to the feature).

In the class library that had no reference to the System.Configuration assembly, typing [b]WebConfig[/b] followed by [b]<Ctrl><Alt><SpaceBar>[/b] brought up an auto-completion list that contained an entry for [b]WebConfigurationManager[/b].

In the latest stable EAP build (447), under the same test, a completion item for ConfigurationManager is not available.

Also, it would be very, very useful to have this feature documented somewhere. How does it work? What unreferenced assemblies does it reach out to?

I think the following functionality would be useful:

1/ Reach out and provided intellisense (using Ctrl+Alt+Spacebar) to all unreferenced assemblies that are listed in the .Net tab of the Add Reference dialog.

2/ Reach out and provided intellisense (using Ctrl+Alt+Spacebar) to all unreferenced projects in the solution.

3/ Instead of providing a red squigly with text informing that a reference needs to be added, actually have R# prompt and add the reference to the project using the same model as the automatic help for importing namespaces. (Obviously, assembly references for assemblies outside of the solution and project references for projects).

4/ My solutions often contain a folder that holds 3rd party assemblies to ensure that all developers are referencing the correct version of these assemblies. It would be great if R# could be configured to look for these assemblies (most likely scenario is to give R# a solution folder name that can be searched).

Sample files attached. See Class1.cs



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.