Skip to content

Commit 0b8de2f

Browse files
JanProvaznikCopilot
andcommitted
Address review feedback: trim comments, quote plugin path in message
- Drop comment sentences that describe the previous implementation rather than the current code (SecurePluginCredentialProvider, PluginLogger, RestoreTask). StaticState.BuildEnded already documents the reset rules. - Quote the plugin path in SecurePluginException_ConnectionClosed, matching the existing plugin messages in NuGet.Protocol, so a full path stays readable. Regenerated the 13 xlf via UpdateXlf and updated the hand- maintained Designer.cs doc comment. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6274a3ba-1510-4da8-8120-209e7ade21c3
1 parent 07be055 commit 0b8de2f

18 files changed

Lines changed: 33 additions & 37 deletions

‎src/NuGet.Core/NuGet.Build.Tasks/RestoreTask.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ public override bool Execute()
171171
{
172172
try
173173
{
174-
// Tear down plugin processes that the per-build process exit used to reclaim, so they do not
175-
// linger in a reused process - but at the end of the build, not the end of this restore.
174+
// Tear down plugin processes so they do not linger in a process reused across builds. Scheduled
175+
// for the end of the build, not the end of this restore.
176176
ScheduleEndOfBuildStaticStateReset();
177177
}
178178
catch (Exception e)

‎src/NuGet.Core/NuGet.Credentials/Resources.Designer.cs‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/NuGet.Core/NuGet.Credentials/Resources.resx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
<value>Credential provider gave an invalid response.</value>
152152
</data>
153153
<data name="SecurePluginException_ConnectionClosed" xml:space="preserve">
154-
<value>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</value>
154+
<value>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</value>
155155
<comment>{0} - plugin path</comment>
156156
</data>
157157
<data name="SecurePluginNotice_UsingPluginAsProvider" xml:space="preserve">

‎src/NuGet.Core/NuGet.Credentials/SecurePluginCredentialProvider.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ await SetProxyCredentialsToPlugin(
161161
if (credentialResponse == null)
162162
{
163163
// The connection returns no response once it is closing or closed - for example because the
164-
// plugin process was torn down while this request was in flight. Report that instead of
165-
// dereferencing null, which surfaces as a NullReferenceException that names neither the plugin
166-
// nor authentication and is very expensive to diagnose.
164+
// plugin process was torn down while this request was in flight.
167165
throw new PluginException(
168166
string.Format(
169167
CultureInfo.CurrentCulture,

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.cs.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.de.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.es.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.fr.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.it.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

‎src/NuGet.Core/NuGet.Credentials/xlf/Resources.ja.xlf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<note />
5959
</trans-unit>
6060
<trans-unit id="SecurePluginException_ConnectionClosed">
61-
<source>The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62-
<target state="new">The connection to credential plugin {0} was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
61+
<source>The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</source>
62+
<target state="new">The connection to credential plugin '{0}' was closed before it answered the credential request. The plugin process may have exited or been shut down while the request was in flight.</target>
6363
<note>{0} - plugin path</note>
6464
</trans-unit>
6565
<trans-unit id="SecurePluginNotice_UsingPluginAsProvider">

0 commit comments

Comments
 (0)