Skip to content

Commit 1bfd667

Browse files
committed
ATR-966: fixed calculation of HasReferenceToAcumaticaPlatform from the AI remark
1 parent 9af304c commit 1bfd667

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/Acuminator/Acuminator.Vsix/Coloriser/PXRoslynColorizerTagger.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,23 +222,13 @@ private void OnWorkspaceChanged(object sender, WorkspaceChangeEventArgs e)
222222
break;
223223

224224
case WorkspaceChangeKind.SolutionAdded:
225-
case WorkspaceChangeKind.ProjectAdded:
226-
_hasReferenceToAcumaticaPlatform |= CheckIfCurrentSolutionHasReferenceToAcumatica(_roslynWorkspaceProvider.Workspace);
227-
break;
228-
229225
case WorkspaceChangeKind.SolutionChanged:
230226
case WorkspaceChangeKind.SolutionReloaded:
227+
case WorkspaceChangeKind.ProjectAdded:
231228
case WorkspaceChangeKind.ProjectRemoved:
232-
_hasReferenceToAcumaticaPlatform = CheckIfCurrentSolutionHasReferenceToAcumatica(_roslynWorkspaceProvider.Workspace);
233-
break;
234-
235229
case WorkspaceChangeKind.ProjectChanged:
236230
case WorkspaceChangeKind.ProjectReloaded:
237-
if (e.IsProjectMetadataChanged())
238-
{
239-
_hasReferenceToAcumaticaPlatform = CheckIfCurrentSolutionHasReferenceToAcumatica(_roslynWorkspaceProvider.Workspace);
240-
}
241-
231+
_hasReferenceToAcumaticaPlatform = CheckIfCurrentSolutionHasReferenceToAcumatica(_roslynWorkspaceProvider.Workspace);
242232
break;
243233

244234
default:

0 commit comments

Comments
 (0)