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

TODO comments highlight bug #457

Closed
Eugenii10 opened this issue Mar 3, 2018 · 10 comments
Closed

TODO comments highlight bug #457

Eugenii10 opened this issue Mar 3, 2018 · 10 comments

Comments

@Eugenii10
Copy link

Eugenii10 commented Mar 3, 2018

After editing a java source file and saving changes with Ctrl + S, "TODO" comments are stopped to be underlined and recognized as TODO tasks (don't show in the PROBLEMS tab and don't have green marks at the vertical scroolbar).

Environment
  • Operating System: Windows 7 and 10
  • JDK version: 1.8.0_60
  • Visual Studio Code version: 1.20.1
  • Java extension version: 0.20.0
Steps To Reproduce
  1. Add some TODO comments in the java source file.
  2. Save file.
  3. Close IDE.
  4. Open IDE and file.
  5. Edit any line in the file.
  6. Save file with "Ctrl + S".

project.zip
vscode-java.log
java_lang_server.log

Current Result

vscode_java

Expected Result

TODO comments are underlined, displayed in the PROBLEMS tab of the bottom panel and have green marks at the vertical scrollbar.

@gorkem gorkem added the bug label Mar 8, 2018
@fbricon
Copy link
Collaborator

fbricon commented Mar 12, 2018

Another manifestation of that dubious diagnostics issue we've seen on and off

@gruvw
Copy link

gruvw commented May 30, 2021

I still have this issue, is there a way to fix it?

@snjeza
Copy link
Contributor

snjeza commented May 30, 2021

@gruvw could you try to add

org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX

to <your_project>/.settings/org.eclipse.jdt.core.prefs

@gruvw
Copy link

gruvw commented May 31, 2021

I tried that but it did not work. I am using VSCode.

@DhairyeKataria
Copy link

I tried that but it did not work. I am using VSCode.

Did you find it ??

@matthewelmer
Copy link

matthewelmer commented Sep 24, 2022

I have a burning hatred for the default TODO wavy underlines, especially since there's no UI or JSON setting to remove the eyesore. @snjeza 's suggestion to create .settings/org.eclipse.jdt.core.prefs and put org.eclipse.jdt.core.compiler.taskTags=<what you want underlined, which should be nothing if you are gifted with the sense of sight> inside of it worked, cause I just set it to nothing.

My question is: how do I make this setting apply to all java files?

@snjeza
Copy link
Contributor

snjeza commented Sep 24, 2022

@matthewelmer could you provide a project example reproducing the issue?

@matthewelmer
Copy link

@snjeza oops, right. My post was unrelated to the issue.

@shanike
Copy link

shanike commented Dec 27, 2023

Same problem here. VS Code with Java:
image
(Don't get confused with Eclipse: It's just an "Eclipse" theme inside vscode)

Happens immediately when I type a "TODO" in a comment. (inline comment and java-doc comment)

I work with Java 8 and am running on a Linux Ubuntu 20.04

@snjeza
Copy link
Contributor

snjeza commented Dec 28, 2023

@shanike You can add

org.eclipse.jdt.core.compiler.taskTags=

to <your_project>/.settings/org.eclipse.jdt.core.prefs

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

No branches or pull requests

8 participants