Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Intellisense not loading (SDK)

$
0
0

I'm trying to port a VS 2010 intellisense extention to 2012 using the VS SDK
but it doesn't load.

I'm using the following code that was working on VS 2010, and nothing happend when I debug it.
the TryCreateIntellisensePresenter is never called.
what do I miss?

[Export(typeof(IIntellisensePresenterProvider))]
[ContentType("text")]
[Order(Before = "Default Completion Presenter")]
[Name("Object Intellisense Presenter")]
internal class IntellisensePresenterProvider : IIntellisensePresenterProvider
{
	[Import(typeof(SVsServiceProvider))]
	IServiceProvider ServiceProvider { get; set; }
	public IIntellisensePresenter TryCreateIntellisensePresenter(IIntellisenseSession session)
	{
		try
		{
			const string CSHARP_CONTENT = "CSharp";
			if (session.TextView.TextBuffer.ContentType.TypeName != CSHARP_CONTENT)
			{
				return null;
			}
		}
		finally { }

		ICompletionSession completionSession = session as ICompletionSession;
		if (completionSession != null)
		{
			int count = completionSession.SelectedCompletionSet.Completions.Count();
			if (count < 10)
			{
				return null;
			}

			throw new NotImplementedException();
			//return new IntelliSenseViewModel(ServiceProvider, completionSession);
		}
		return null;
	}
}


Bnaya Eshet


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>