提交 85989f14 编写于 作者: M Manish Jayaswal

shortened the name of new content type that is getting added

上级 69b81f3b
......@@ -5,12 +5,17 @@
namespace Microsoft.VisualStudio.Editor.Interactive
{
public static class PredefinedSpecializedCSharpVBInteractiveCommandsContentTypes
/// <summary>
/// Repesents the content type for specialized interactive commands for C# and VB
/// interactive window which override the implementation of these commands in underlying
/// interactive window.
/// </summary>
public static class CSharpVBInteractiveCommandsContentTypes
{
public const string SpecializedCSharpVBInteractiveCommandContentTypeName = "Specialized CSharp and VB Interactive Command";
public const string CSharpVBInteractiveCommandContentTypeName = "Specialized CSharp and VB Interactive Command";
[Export, Name(SpecializedCSharpVBInteractiveCommandContentTypeName), BaseDefinition("code")]
internal static readonly ContentTypeDefinition SpecializedCSharpVBInteractiveCommandContentTypeDefinition;
[Export, Name(CSharpVBInteractiveCommandContentTypeName), BaseDefinition("code")]
internal static readonly ContentTypeDefinition CSharpVBInteractiveCommandContentTypeDefinition;
}
}
......@@ -20,7 +20,7 @@ namespace Microsoft.VisualStudio.InteractiveWindow.Commands
/// Represents a reset command which can be run from a REPL window.
/// </summary>
[Export(typeof(IInteractiveWindowCommand))]
[ContentType(PredefinedSpecializedCSharpVBInteractiveCommandsContentTypes.SpecializedCSharpVBInteractiveCommandContentTypeName)]
[ContentType(CSharpVBInteractiveCommandsContentTypes.CSharpVBInteractiveCommandContentTypeName)]
internal sealed class ResetCommand : IInteractiveWindowCommand
{
private const string CommandName = "reset";
......
......@@ -152,7 +152,7 @@
<Compile Include="Extensibility\Interactive\InteractiveCommandHandler.cs" />
<Compile Include="Extensibility\Interactive\InteractiveEvaluator.cs" />
<Compile Include="Extensibility\Interactive\InteractiveMetadataReferenceResolver.cs" />
<Compile Include="Extensibility\Interactive\PredefinedSpecializedCSharpVBInteractiveCommandContentTypes.cs" />
<Compile Include="Extensibility\Interactive\CSharpVBInteractiveCommandContentTypes.cs" />
<Compile Include="Implementation\Completion\InteractiveCommandCompletionService.cs" />
<Compile Include="Implementation\Completion\Presentation\CompletionPresenter.cs" />
<Compile Include="Implementation\Interactive\Commands\CommandArgumentsParser.cs" />
......
......@@ -43,7 +43,7 @@ internal abstract class VsInteractiveWindowProvider
_contentTypeRegistry = contentTypeRegistry;
_vsWorkspace = workspace;
_commands = GetApplicableCommands(commands, coreContentType: PredefinedInteractiveCommandsContentTypes.InteractiveCommandContentTypeName,
specializedContentType: PredefinedSpecializedCSharpVBInteractiveCommandsContentTypes.SpecializedCSharpVBInteractiveCommandContentTypeName);
specializedContentType: CSharpVBInteractiveCommandsContentTypes.CSharpVBInteractiveCommandContentTypeName);
_vsInteractiveWindowFactory = interactiveWindowFactory;
_commandsFactory = commandsFactory;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册