-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add --health command for troubleshooting #1669
Conversation
Or even |
Also, what about using a table like in the original proposal? Or outputting all entries. Would make it easier to see everything that's available and correctly detected. |
69f12c7
to
de06eb3
Compare
I'm trying to display tables using let backend = CrosstermBackend::new(std::io::stdout());
let mut terminal = tui::Terminal::new(backend).unwrap();
let surface = terminal.current_buffer_mut();
let area = *surface.area();
let table = Table::new(vec![
Row::new(vec!["item1", "items2"]),
Row::new(vec!["item3", "items4"]),
])
.header(Row::new(vec!["header1", "header2"]));
table.render(area, surface);
terminal.draw(None, helix_view::graphics::CursorKind::Block).unwrap(); (Also renamed the command to |
I'd avoid that and just space every column out with a double tab for now. Or you could use the underlying types to compute column widths then render by hand. The |
Added a tabular view that's displayed with a bare
@pickfire "Configured debug adapter" shows the name of the binary that's used for dap, similar to the configured language server line. |
de06eb3
to
0a369c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, seemed to work nicely with 80 characters terminal as well.
Fixes #976.
Adds a
--checkhealth
flag to the helix binary which can be used to quickly diagnose some common problems like an LSP not being installed or not found in$PATH
, non-existant runtime directory, etc.(Run locally to see some nice colors :)