From 1e3a22e4de61821bc6d2220f71a27a147411a671 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Thu, 10 Sep 2015 16:20:12 -0700 Subject: [PATCH] Respect noconfig in InteractiveEvaluator Don't consume the response file when re-initializing after ```#reset noconfig```. The host already handles this correctly. Fixes #4397. Integration test to follow. --- .../Core/Extensibility/Interactive/InteractiveEvaluator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Interactive/EditorFeatures/Core/Extensibility/Interactive/InteractiveEvaluator.cs b/src/Interactive/EditorFeatures/Core/Extensibility/Interactive/InteractiveEvaluator.cs index 1e38de2a585..52020ce9cb4 100644 --- a/src/Interactive/EditorFeatures/Core/Extensibility/Interactive/InteractiveEvaluator.cs +++ b/src/Interactive/EditorFeatures/Core/Extensibility/Interactive/InteractiveEvaluator.cs @@ -192,8 +192,8 @@ private void ProcessStarting(InteractiveHostOptions options) var metadataService = _workspace.CurrentSolution.Services.MetadataService; ImmutableArray referencePaths; - // reset configuration: - if (File.Exists(_responseFilePath)) + // reset configuration (null initialization file indicates "noconfig"): + if (options.InitializationFile != null && File.Exists(_responseFilePath)) { // The base directory for relative paths is the directory that contains the .rsp file. // Note that .rsp files included by this .rsp file will share the base directory (Dev10 behavior of csc/vbc). -- GitLab