Skip to content

Commit

Permalink
Truncate a bit less eagerly...
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Nov 7, 2024
1 parent ceff1be commit 283eadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class EffektCapturesProvider implements vscode.InlayHintsProvider {
// Truncate long captures ourselves.
// TODO: Does this make sense? Shouldn't we at least show the first one?
// TODO: Can the backend send them in a list so that we can have a somewhat stable (alphabetic?) order?
const hintText = response.captureText.length > 24 ? "{…}" : response.captureText;
const hintText = response.captureText.length > 30 ? "{…}" : response.captureText;
const hint = new vscode.InlayHint(position, hintText, vscode.InlayHintKind.Type);

// This tooltip is useful when there are a lot of captures.
Expand Down

0 comments on commit 283eadb

Please sign in to comment.