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.

Interactive Diagnostics

See original GitHub issue

Problem

JS and TS diagnostic messages can get quite large, especially when dealing with frameworks like Vue or react. The TS team has worked to significantly improve and shorten diagnostic messages, including replacing complex type information with ..., however there are still cases where you need to see the full type information. Right now, we have to staticly choose to expand the additional information or not. They would like the user to be able to interactively expand types within a diagnostic

In addition, the overall diagnostic experience could be improved. Two areas identified talking with the TS team:

  • Syntax coloring of inline code in diagnostics
  • Go to definition in diagnostics

Refs

#11847

Desired User Experience

Consider a diagnostic message T<...>. We would like the ... to be something like a link. Clicking it would expand the diagnostic message to T<Array<...>>, which itself contains another expandable link

Requirements

The main focus is on being able dynamically to expand sections of a diagnostic. We need new VS Code API support for this and then will need languages to adopt this API. However, I think the other two features should be considered while designing the new diagnostics API as they are likely something we would like to support and will influence overall api design

For expansion, we want to be able to:

  • Mark arbitrary spans within a diagnostics as expandable
  • Lazily compute these expansions, i.e. don’t resolve the expansions ahead of time
  • Allow expansions to contain other expansions
  • Show a progress indicator of some kind while an expansion is being resolved

Many of these features also make sense for quick info hovers

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:204
  • Comments:27 (14 by maintainers)

github_iconTop GitHub Comments

23reactions
Arlen22commented, Feb 24, 2020

Problem solved!

noErrorTruncation: true

At some point someone pointed out the TypeScript tsconfig.json setting compilerOptions.noErrorTruncation. This in fact seems to solve the problem.

22reactions
taxiliancommented, Feb 21, 2020

This is a really annoying issue; honestly there is never a time when I don’t want to see the whole thing. Optimize for readability? How is it readable to only see a small part of the relevant information?

Would really really like to see this become a setting that was easy to tweak 😦 it would save me a lot of time right now with what I’m working on

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interactive Diagnostics - Creo Simulate
Run interactive diagnostics to view all messages that are generated during an analysis. Creo Simulate writes error, warning, and information messages in the ......
Read more >
Interactive Diagnostic Modules - Medscape Reference
Interactive Diagnostic Modules : Interact with multiplanar CT reconstructions of patient case studies to better visualize and interpret the location and ...
Read more >
Interactive Video Diagnostics - ALLDATA
This new technology allows you to: Stream high quality video directly from your phone or tablet to our consultants' computers. View digital whiteboard ......
Read more >
APQC's Interactive Tune-Up Diagnostics
APQC's Interactive Tune-Up Diagnostics ... This collection features diagnostic tools with hand picked key metrics in financial management, human ...
Read more >
ShinyStan!
Interactive diagnostics and posterior analysis for Bayesian models. ShinyStan provides immediate, informative, customizable visual and numerical summaries ...
Read more >

github_iconTop Related Medium Post

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