madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 252 forks source link

TypeScript intellisense generate fails when class includes a nested class #1705

Open samueldjack opened 9 years ago

samueldjack commented 9 years ago

If I have a class like the following:

public class TypeWithNested
{
    public string Property { get; set; }

    public class NestedType : ComplexTypeConfiguration<ScreenState>
    {

    }
}

and I add a TypeScript Intellisense file from the WebEssentials menu, the intellisense file isn't generated properly, and I see this error in the Output screen:

System.Runtime.InteropServices.COMException (0x80004005): A namespace may exist in multiple projects so it is not possible to retrieve the name through the ProjectItem
   at Microsoft.VisualStudio.CSharp.Services.Language.BaseException.ThrowEFAIL(ILangService iLangService, jrc_StringResource_identifiers stringId, Object[] args)
   at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExternalCodeElementBase.get_ProjectItem()
   at EnvDTE.CodeClass.get_ProjectItem()
   at MadsKristensen.EditorExtensions.IntellisenseParser.ProcessElement(CodeElement element, List`1 list, HashSet`1 underProcess)
   at MadsKristensen.EditorExtensions.IntellisenseParser.ProcessClass(CodeClass cc, CodeClass baseClass, List`1 list, HashSet`1 underProcess)
   at MadsKristensen.EditorExtensions.IntellisenseParser.ProcessElement(CodeElement element, List`1 list, HashSet`1 underProcess)
   at MadsKristensen.EditorExtensions.IntellisenseParser.ProcessFile(ProjectItem item, HashSet`1 underProcess)
   at MadsKristensen.EditorExtensions.ScriptIntellisenseListener.<>c__DisplayClass1.<ProcessAsync>b__0()

This is with WebEssentials 2013 (2.5.3) running in VS2013 Update 4

nojaf commented 9 years ago

I'm having the same issue, could it be possible to take the 'any' type if WE can't create intellisense?