question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Monaco renders four dots under some variables, and it cannot be disabled??

See original GitHub issue

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

void function(foo) {

    const x = fooo;
    const f = bar => barr;
}

Actual Behavior

There are four little dots under the first two characters of fooo and barr. These dots appear whenever the variable is similar but not correct, like a fuzzy spellchecker.

The IStandaloneEditorConstructionOptions do not contain an option for disabling the dots.

Expected Behavior

The IStandaloneEditorConstructionOptions do contain an option for disabling the dots.

Additional Context

I’m working on a webapp, reusing Monaco in a configuration that is graphically very plain. These dots could be a useful way to indicate issues. However, they’re not documented anywhere.

If I could customize when the dots appear (and maybe other things about the dots), they could be really useful for indicating and locating issues. As it stands, I just want to disable them.

Note: I’m sure I can find a way to make the dots invisible in CSS, but that would be a pretty nasty workaround, as the code would still be running in the background.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spahnkecommented, Feb 4, 2022

You can control that on the language side (I’m assuming JS)

monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
    noSuggestionDiagnostics: true
});
1reaction
hedietcommented, Feb 4, 2022

These three dots indicate that quick fixes are available (in this case a spelling quick-fix by typescript).

Read more comments on GitHub >

github_iconTop Results From Across the Web

emmeans: Estimated Marginal Means, aka Least-Squares ...
The emmip function displays estimates like an interaction plot, multi-paneled if there are by variables. These graphics capabilities require the lattice package ...
Read more >
Tutorial | Debugging & Optimization - Pixar's RenderMan
Overview. Artifacts and slow renders can be extremely frustrating, especially with a deadline closing in. Without the right tools and ...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/28 10 ...
Bug :128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >
Getting started with PyMC3 - Learn PyMC & Bayesian modeling
PyMC3 relies on Theano to analytically compute model gradients via automatic differentiation of the posterior density. NUTS also has several self-tuning ...
Read more >
Editor font antialising/appearance problems on Linux - YouTrack
Yes, on selecting custom font (Monaco) with "Use antialiased font" = true, Font size = 12 fonts looks jagged ... Here we have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found