Skip to content

Commit

Permalink
v3.2 Fix duplicate schema issue on re-indexing
Browse files Browse the repository at this point in the history
Update install doc to use SSMS "preferred" path
  • Loading branch information
akarzazi committed Aug 1, 2020
1 parent 6db535f commit 8a69084
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Grap the latest build archive from the [Releases](https://github.com/akarzazi/SS
## Install
Extract the archive content to the SSMS install location :

C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Extensions
`C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Extensions\SSMSPlus`

It should look like the following.
![SSMS Plus Extension dlls](docs/illustrations/install-folder-screen.png?raw=true "SSMS Plus Extension dlls")
Expand Down
2 changes: 1 addition & 1 deletion src/SSMSPlus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.3.1")]
[assembly: AssemblyVersion("0.0.3.2")]
[assembly: AssemblyFileVersion("0.0.0.1")]
2 changes: 1 addition & 1 deletion src/SSMSPlus/SSMSPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CopyVsixExtensionFiles>True</CopyVsixExtensionFiles>
<CopyVsixExtensionLocation>C:\Program Files %28x86%29\Microsoft SQL Server Management Studio 18\Extensions\SSMSPlus</CopyVsixExtensionLocation>
<CopyVsixExtensionLocation>C:\Program Files %28x86%29\Microsoft SQL Server Management Studio 18\Common7\IDE\Extensions\SSMSPlus</CopyVsixExtensionLocation>
</PropertyGroup>
<ItemGroup>
<Compile Include="Command1.cs" />
Expand Down
7 changes: 4 additions & 3 deletions src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ private void CreateMatchOnCombo()
ComboMatchVM.SelectionChanged += ComboVM_SelectionChanged;
}

private void CreateSchemaCombo(IEnumerable<string> schemas)
private void ReCreateSchemaCombo(IEnumerable<string> schemas)
{
SchemaObjectsVM.Items.Clear();

foreach (var schema in schemas)
{
SchemaObjectsVM.Items.Add(new ComboCheckBoxItem<string>() { Text = schema, IsChecked = true, Value = schema });
}


SchemaObjectsVM.SelectionChanged -= ComboVM_SelectionChanged;
SchemaObjectsVM.SelectionChanged += ComboVM_SelectionChanged;
}

Expand Down Expand Up @@ -155,7 +156,7 @@ private async Task InitializeDbResults(int dbId)
{
_dbid = dbId;
_allDdResults = (await _schemaSearchRepository.GetObjectsByDb(_dbid)).ToArray();
CreateSchemaCombo(_allDdResults.Select(p => p.SchemaName).Distinct().OrderBy(p => p));
ReCreateSchemaCombo(_allDdResults.Select(p => p.SchemaName).Distinct().OrderBy(p => p));
}

private async Task ExecuteSearchAsync()
Expand Down

0 comments on commit 8a69084

Please sign in to comment.