Freecodecamp: Disable Monaco code actions highlighting

Created on 16 Sep 2020  路  2Comments  路  Source: freeCodeCamp/freeCodeCamp

Describe the bug
The highlighting for code actions appears in the editor, but the user cannot interact with them.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/comment-your-javascript-code
  2. Enter
function anyname(){
  this.property = 'is set';
}
  1. see the three dots below the 'a' in 'anyname'

Expected behavior
Since the user cannot act on this information these dots should not appear.

StackOverflow suggests they can be disabled in vscode, and hopefully the same is true of Monaco.

Screenshots

image

Thanks to @lasjorg for investigating this and olgamlop (who I'm not sure has a GitHub account, so I didn't want to ping the wrong person) for reporting it.

Originally discussed on the forum, here

work in progress bug

Most helpful comment

I made a PR just in case. If we want to use it its there.

All 2 comments

@ojeytonwilliams Not sure if there is an editor option for it, but here is the CSS for removing the three dots.

client\src\templates\Challenges\classic\classic.css

.monaco-editor .squiggly-hint {
  background: none !important;
}

I did look a bit for an option but the API docs for Monaco are pretty dense and hard to comb through.

Just let me know if I should make a PR with the CSS change.

I made a PR just in case. If we want to use it its there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DaphnisM picture DaphnisM  路  3Comments

vaibsharma picture vaibsharma  路  3Comments

Tzahile picture Tzahile  路  3Comments

trashtalka3000 picture trashtalka3000  路  3Comments

QuincyLarson picture QuincyLarson  路  3Comments