Skip to content

Commit 681585b

Browse files
authored
Merge pull request #5 from CxRepositories/bug_fixes
Fixing multiple bugs: VS plugin 9.0 - bind state AB#681 and switching…
2 parents e142458 + 3b1c47c commit 681585b

6 files changed

Lines changed: 15 additions & 8 deletions

File tree

CxViewerAction/Helpers/BindProjectHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ internal static ProjectScanStatuses BindProject(Entities.Project project)
6969
else if (status == ProjectScanStatuses.CanceledByUser)
7070
{
7171
//Do nothing...
72+
CommonData.IsProjectBound = false;
7273
}
7374
else
7475
{

CxViewerAction/MenuLogic/BindProjectLogic.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ public ActionStatus Act()
2828
Entities.Project project = CommonActionsInstance.getInstance().GetSelectedProject();
2929
CommonData.ProjectName = project.ProjectName;
3030
CommonData.ProjectRootPath = project.RootPath;
31-
if (!setBindProject(true))
31+
DoRetrieveResults(project);
32+
if (CommonData.IsProjectBound)
3233
{
33-
return ActionStatus.Failed;
34+
if (!setBindProject(true))
35+
{
36+
return ActionStatus.Failed;
37+
}
3438
}
35-
CommonData.IsProjectBound = true;
36-
DoRetrieveResults(project);
3739
CommonData.IsWorkingOffline = false;
3840
return ActionStatus.Success;
3941
}

CxViewerAction/MenuLogic/ScanLogic.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public ActionStatus Act()
5555
CommonData.IsProjectBound = bindPro.IsBound;
5656
CommonData.IsProjectPublic = bindPro.IsPublic;
5757
}
58+
else
59+
{
60+
CommonData.IsProjectBound = false;
61+
}
5862
}
5963
CommonActionsInstance.getInstance().BuildFileMapping();
6064
CommonActionsInstance.getInstance().ExecuteSystemCommand("File.SaveAll", string.Empty);

CxViewerVSIX/CxViewerPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace CxViewerVSIX
3434
/// </para>
3535
/// </remarks>
3636
[PackageRegistration(UseManagedResourcesOnly = true)]
37-
[InstalledProductRegistration("#110", "#112", "9.00.3", IconResourceID = 400)] // Info on this package for Help/About
37+
[InstalledProductRegistration("#110", "#112", "9.00.4", IconResourceID = 400)] // Info on this package for Help/About
3838
[ProvideMenuResource("Menus.ctmenu", 1)]
3939
//[ProvideAutoLoad("ADFC4E64-0397-11D1-9F4E-00A0C911004F")]
4040
[Guid(CxViewerPackage.PackageGuidString)]

CxViewerVSIX/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Publisher="Checkmarx" Version="9.00.3" Language="en-US" />
4+
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Publisher="Checkmarx" Version="9.00.4" Language="en-US" />
55
<DisplayName>CxViewer</DisplayName>
66
<Description xml:space="preserve" >Checkmarx Visual Studio Plugin</Description>
77
<MoreInfo>http://www.checkmarx.com</MoreInfo>

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ pipeline {
3838
agent { node { label vmName } }
3939
steps {
4040
script {
41-
fileOperations([folderRenameOperation(source: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX.vsix", destination: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.3.vsix")])
42-
kit.Upload_To_Artifactory("${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.3.vsix", "plugins-release-local/com/checkmarx/visual-studio/")
41+
fileOperations([folderRenameOperation(source: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX.vsix", destination: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.4.vsix")])
42+
kit.Upload_To_Artifactory("${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.4.vsix", "plugins-release-local/com/checkmarx/visual-studio/")
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)