You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an element in the message template does not exist for a given diagnostic, and if there is no space between that element and another part of the string, the result.replace() logic here is removing other parts of the message.
For example, if the message template is defined like this, then it shows correctly when the diagnostic has a valid $code, but if the $code is not valid, then the $source and other characters (parenthesis with this template) are also removed leaving only the $message piece (in this example, the Pylance $source indicator is not seen.
If an element in the message template does not exist for a given diagnostic, and if there is no space between that element and another part of the string, the
result.replace()
logic here is removing other parts of the message.vscode-error-lens/src/utils/extUtils.ts
Line 188 in b7c556a
For example, if the message template is defined like this, then it shows correctly when the diagnostic has a valid
$code
, but if the$code
is not valid, then the$source
and other characters (parenthesis with this template) are also removed leaving only the$message
piece (in this example, thePylance
$source indicator is not seen.However if spaces are added instead of the parenthesis, then the message does show the
$source
.The text was updated successfully, but these errors were encountered: