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

Python multi-line comment strings should be treated as comments in all themes #182163

Closed
ElectricRCAircraftGuy opened this issue May 11, 2023 · 3 comments · Fixed by #182162
Closed
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders languages-basic Basic language support issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@ElectricRCAircraftGuy
Copy link
Contributor

ElectricRCAircraftGuy commented May 11, 2023

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.78.1
  • OS Version: Linux Ubuntu 20.04

Steps to Reproduce:

  1. Set the color theme to Monokai. Comment block strings should be highlighted the same as single-line comments, just like Monokai in Sublime Text, but in VSCode they are not.

Fixed by PR #182162 <-- see screenshots here too!

@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@ElectricRCAircraftGuy
Copy link
Contributor Author

@VSCodeTriageBot , I just updated to version 1.78.1, the latest, and the issue is still present.

@ElectricRCAircraftGuy ElectricRCAircraftGuy changed the title Python multi-line comment strings should be treated as comments in the Monokai theme Python multi-line comment strings should be treated as comments in all themes May 11, 2023
@aeschli aeschli added this to the May 2023 milestone May 15, 2023
@aeschli aeschli added languages-basic Basic language support issues feature-request Request for new features or functionality labels May 15, 2023
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 15, 2023
@aeschli aeschli added the verification-needed Verification of issue is requested label May 29, 2023
@aeschli
Copy link
Contributor

aeschli commented May 29, 2023

To verify:
create a python file with a doc string, e.g.

def my_function():
	'''Demonstrates triple double quotes
	docstrings and does nothing really.'''

	return None

print("Using __doc__:")
print(my_function.__doc__)

print("Using help:")
help(my_function)

Verify that Demonstrates triple double quotes docstrings and does nothing really. gets the same color as a comment
That's for all built-in themes, not only Monokai.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders languages-basic Basic language support issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants