Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce noise in LS output #4656

Merged
merged 3 commits into from Aug 17, 2018
Merged

Reduce noise in LS output #4656

merged 3 commits into from Aug 17, 2018

Conversation

MikhailArkhipov
Copy link

Address user feedback per microsoft/vscode-python#2405

  • Reduce noise in the output window.
  • Related setting was added to VSC extension.
  • Default level is now 'error'.
  • Added 'general' level for messages that we always want to be displayed.

@MikhailArkhipov MikhailArkhipov changed the title Reduce noise Reduce noise in LS output Aug 16, 2018
/// General language server output relevant to the user
/// such as information on Python interpreter type.
/// </summary>
General = 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value isn't defined in LSP, so should start with an underscore (for consistency with other unspecified values)

@@ -149,5 +149,8 @@ static class StringExtensions {
public static int IndexOfOrdinal(this string s, string value, int startIndex = 0, bool ignoreCase = false) {
return s?.IndexOf(value, startIndex, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) ?? -1;
}

public static bool EqualsIgnoreCase(this string s, string other)
=> string.Compare(s, other, StringComparison.OrdinalIgnoreCase) == 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string.Equals(s, other, StringComparison.OrdinalIgnoreCase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants