提交 5e9eba10 编写于 作者: K Kevin Halverson

Merge pull request #4216 from KevinH-MS/ContentType

Use different ContentType for InteractiveWindowCommands...
......@@ -14,7 +14,7 @@ namespace Microsoft.VisualStudio.InteractiveWindow.Commands
///
/// This interface is a MEF contract and can be implemented and exported to add commands to the REPL window.
/// </summary>
[ContentType("code")]
[ContentType(PredefinedInteractiveCommandsContentTypes.InteractiveCommandContentTypeName)]
internal abstract class InteractiveWindowCommand : IInteractiveWindowCommand
{
public abstract Task<ExecutionResult> Execute(IInteractiveWindow window, string arguments);
......
......@@ -40,7 +40,7 @@ internal abstract class VsInteractiveWindowProvider
_classifierAggregator = classifierAggregator;
_contentTypeRegistry = contentTypeRegistry;
_vsWorkspace = workspace;
_commands = FilterCommands(commands, contentType: "code");
_commands = FilterCommands(commands, contentType: PredefinedInteractiveCommandsContentTypes.InteractiveCommandContentTypeName);
_vsInteractiveWindowFactory = interactiveWindowFactory;
_commandsFactory = commandsFactory;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册