From 4df13d787b92a036f5bdee6ea625ad50a5ba1bba Mon Sep 17 00:00:00 2001 From: Georgii Borovinskikh Date: Wed, 18 Dec 2024 14:19:19 +0100 Subject: [PATCH] explicitly set IsOnOpen for reproducer --- src/Integration.Vsix/CFamily/CFamilyReproducerCommand.cs | 1 + src/SLCore.UnitTests/Analysis/SLCoreAnalyzerTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Integration.Vsix/CFamily/CFamilyReproducerCommand.cs b/src/Integration.Vsix/CFamily/CFamilyReproducerCommand.cs index dcd93b2dff..9fce12421c 100644 --- a/src/Integration.Vsix/CFamily/CFamilyReproducerCommand.cs +++ b/src/Integration.Vsix/CFamily/CFamilyReproducerCommand.cs @@ -164,6 +164,7 @@ private void TriggerReproducer() { var options = new CFamilyAnalyzerOptions { + IsOnOpen = false, CreateReproducer = true }; diff --git a/src/SLCore.UnitTests/Analysis/SLCoreAnalyzerTests.cs b/src/SLCore.UnitTests/Analysis/SLCoreAnalyzerTests.cs index b2dc3e0f52..89b9acd1e9 100644 --- a/src/SLCore.UnitTests/Analysis/SLCoreAnalyzerTests.cs +++ b/src/SLCore.UnitTests/Analysis/SLCoreAnalyzerTests.cs @@ -190,6 +190,7 @@ public void ExecuteAnalysis_CFamilyReproducerEnabled_SetsExtraProperty() SetUpCompilationDatabaseLocator(filePath, CreateCompilationDatabaseHandle("somepath")); SetUpInitializedConfigScope(); var cFamilyAnalyzerOptions = Substitute.For(); + cFamilyAnalyzerOptions.IsOnOpen.Returns(false); cFamilyAnalyzerOptions.CreateReproducer.Returns(true); testSubject.ExecuteAnalysis(filePath, analysisId, [AnalysisLanguage.CFamily], cFamilyAnalyzerOptions, default);