提交 bc7f3095 编写于 作者: K Kevin Halverson

Use different ContentType for InteractiveWindowCommands...

I didn't know about PredefinedInteractiveCommandsContentTypes
when I initially added the ContentType attribute to the interactive
commands.  Switching to use the constant defined there (instead of
just "code")...
上级 a637d95d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册