开发 Visual Studio 2013 扩展“*.vsix”时出现奇怪的显示

Strange display when developing a Visual Studio 2013 Extension "*.vsix"

我正在开发 VS2013 扩展。当从 Visual Studio 开发环境按 Ctrl + F5 到 运行 扩展时,我看到以下奇怪的显示:

似乎 syntax highlighting 仍然有效,但只有每一行都过度 紫色。

但是如果我通过正常启动 VS 安装我的 VS 扩展并 运行 它。显示正常

有人知道怎么解决吗?这是一些 VS 错误吗?

问题已解决。

我添加了一个 Editor Classifier,其中包含以下默认实现:

public UDKBuildDescriptionFileEditorFormat()
{
    this.DisplayName = "UDKBuildDescriptionFileEditor"; //human readable version of the name
    this.BackgroundColor = Colors.BlueViolet; // <-- HERE
    this.TextDecorations = System.Windows.TextDecorations.Underline; // <-- HERE
}

我曾将此编辑器分类器添加到我的 VSIX 包中,并 运行 使用 Ctrl + F5 添加它。但似乎是在我将其从 VSIX 中删除之后。 Visual Studio 不知道在 运行 Ctrl + F5 时自动删除它。

解决办法是,从Tools -> Extensions and Updates手动卸载这个编辑器分类器。