Linked Questions

Popular Questions

I've written an extension to provide IntelliSense auto-completion for an VS Isolated Shell. The issue I'm having is making this auto-completion apply only to files of a particular file type. I've followed the guide here to do so.

Relevant class file:

using Microsoft.VisualStudio.Utilities;
using System.ComponentModel.Composition;

namespace VSIXProject1
    internal static class FileAndContentTypeDefinitions

        internal static ContentTypeDefinition hidingContentTypeDefinition;

        internal static FileExtensionToContentTypeDefinition hiddenAVRASMFileExtensionDefinition;

Despite this, when I put the [ContentType("assembly")] export on the ICompletionSourceProvider and the IVsTextViewCreationListener that are used to handle the IntelliSense integration, the auto-completion fails to show up at all. However when I use [ContentType("text")] or [ContentType("plaintext")] the auto-completion will show up on either all files or just .txt files, respectively.

This is the first VSIX plugin I've tried to make so maybe I've missed something. Currently, I'm at a loss for what to try next. A lot of googling hasn't yielded much information, and the code resources I have found seem to implement this behavior in the same way I'm attempting to.

Related Questions