Skip to content

Commit 5bc7330

Browse files
committed
Wire analyze solidity file command.
1 parent 32d7b51 commit 5bc7330

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed
974 Bytes
Loading

src/Stratis.VS.StratisEVM/SolidityProject/SolidityProjectMenuCommands.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ internal sealed class SolidityProjectMenuCommands
2222
public const int InstallPackagesCommandId = 0x0101;
2323

2424
public const int ShowDeployToolWindowCommandId = 0x0102;
25+
26+
public const int AnalyzeCommandId = 0x0104;
2527
/// <summary>
2628
/// VS Package that provides this command, not null.
2729
/// </summary>

src/Stratis.VS.StratisEVM/Stratis.VS.StratisEVM.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
<Content Include="Resources\DeploySolidity_16x16.png" />
154154
<Content Include="Resources\NodeJSPackage_16x.png" />
155155
<Content Include="Resources\SolidityProjectMenuCommands.png" />
156+
<Content Include="Resources\SolidityStaticAnalysis.png" />
157+
<Content Include="Resources\SolidityStaticAnalysis16x16.png" />
158+
<Content Include="Resources\SolidityStaticAnalysis64x64.png" />
156159
<Content Include="Resources\solidity_16x16.png" />
157160
<Content Include="LanguageServer\SolidityLanguageSettings.json">
158161
<IncludeInVSIX>true</IncludeInVSIX>

src/Stratis.VS.StratisEVM/StratisEVMPackage.vsct

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@
124124

125125
<Button guid="guidStratisEVMPackageCmdSet1" id="SolidityProjectMenuCmdId4" priority="0x0100" type="Button">
126126
<Parent guid="guidStratisEVMPackageCmdSet1" id="MyGroupForCommands" />
127-
<Icon guid="guidNPMIcon" id="pngNPM" />
127+
<Icon guid="guidSolidityStaticAnalysisIcon" id="pngSolidityStaticAnalysis" />
128128
<CommandFlag>DynamicVisibility</CommandFlag>
129129
<CommandFlag>DefaultInvisible</CommandFlag>
130130
<Strings>
131-
<ButtonText>Solidity Static Analysis...</ButtonText>
131+
<ButtonText>Analyze Solidity File</ButtonText>
132132
</Strings>
133133
</Button>
134134

@@ -223,6 +223,7 @@
223223
<Bitmap guid="guidSolidityIcon" href="Resources\solidity_16x16.png" usedList="pngSolidity" />
224224
<Bitmap guid="guidNPMIcon" href="Resources\NodeJSPackage_16x.png" usedList="pngNPM" />
225225
<Bitmap guid="guidDeploySolidityIcon" href="Resources\DeploySolidity_16x16.png" usedList="pngDeploySolidity" />
226+
<Bitmap guid="guidSolidityStaticAnalysisIcon" href="Resources\SolidityStaticAnalysis16x16.png" usedList="pngSolidityStaticAnalysis" />
226227
<Bitmap guid="guidImages1" href="Resources\SolidityProjectMenuCommands.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" />
227228
<Bitmap guid="guidImages2" href="Resources\BlockchainExplorerToolWindowCommand.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" />
228229
<Bitmap guid="guidImages3" href="Resources\StratisEVMBlockchainDashboardToolWindowCommand.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" />
@@ -293,6 +294,10 @@
293294
<IDSymbol name="pngNPM" value="1" />
294295
</GuidSymbol>
295296

297+
<GuidSymbol name="guidSolidityStaticAnalysisIcon" value="{fea96501-06ce-42c4-85fb-222a95b6fc72}">
298+
<IDSymbol name="pngSolidityStaticAnalysis" value="1" />
299+
</GuidSymbol>
300+
296301
<!-- Solution Explorer folder mode GUIDs and IDs. -->
297302
<GuidSymbol name="guidWorkspaceExplorerToolWindowCmdSet" value="{cfb400f1-5c60-4f3c-856e-180d28def0b7}">
298303
<IDSymbol name="idmWSE_ContextMenu" value="0x0002" />

src/Stratis.VS.StratisEVM/UI/SolidityStaticAnalysis/SolidityStaticAnalysisToolWindowCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ internal sealed class SolidityStaticAnalysisToolWindowCommand
1717
/// <summary>
1818
/// Command ID.
1919
/// </summary>
20-
public const int CommandId = 4132;
20+
public const int CommandId = 0x0104;
2121

2222
/// <summary>
2323
/// Command menu group (command set GUID).
2424
/// </summary>
25-
public static readonly Guid CommandSet = new Guid("5e1dc4ca-7f1b-4ff0-a794-7e162ab8f421");
25+
public static readonly Guid CommandSet = new Guid("1370374f-6ad4-4975-80fb-6d3487cd4ba9");
2626

2727
/// <summary>
2828
/// VS Package that provides this command, not null.

0 commit comments

Comments
 (0)