Skip to content

Commit 3f26986

Browse files
Phase 2: Add initial Extensibility SDK command contributions
1 parent 88fcf26 commit 3f26986

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System.Threading;
2+
using System.Threading.Tasks;
3+
using Microsoft.VisualStudio.Extensibility;
4+
using Microsoft.VisualStudio.Extensibility.Commands;
5+
6+
namespace ICSharpCode.CodeConverter.VsExtension;
7+
8+
[VisualStudioContribution]
9+
public class ConvertCSToVBExtensibilityCommand : Command
10+
{
11+
private readonly CodeConverterPackage _package;
12+
13+
public ConvertCSToVBExtensibilityCommand(CodeConverterPackage package)
14+
{
15+
_package = package;
16+
}
17+
18+
public override CommandConfiguration CommandConfiguration => new("%a3378a21-e939-40c9-9e4b-eb0cec7b7854%");
19+
20+
public override async Task ExecuteCommandAsync(IClientContext context, CancellationToken cancellationToken)
21+
{
22+
// This will be wired up to the existing logic in Phase 2
23+
await Task.CompletedTask;
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System.Threading;
2+
using System.Threading.Tasks;
3+
using Microsoft.VisualStudio.Extensibility;
4+
using Microsoft.VisualStudio.Extensibility.Commands;
5+
6+
namespace ICSharpCode.CodeConverter.VsExtension;
7+
8+
[VisualStudioContribution]
9+
public class ConvertVBToCSExtensibilityCommand : Command
10+
{
11+
private readonly CodeConverterPackage _package;
12+
13+
public ConvertVBToCSExtensibilityCommand(CodeConverterPackage package)
14+
{
15+
_package = package;
16+
}
17+
18+
public override CommandConfiguration CommandConfiguration => new("%a3378a21-e939-40c9-9e4b-eb0cec7b7854%");
19+
20+
public override async Task ExecuteCommandAsync(IClientContext context, CancellationToken cancellationToken)
21+
{
22+
// This will be wired up to the existing logic in Phase 2
23+
await Task.CompletedTask;
24+
}
25+
}

0 commit comments

Comments
 (0)