We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc1432 commit 1310cefCopy full SHA for 1310cef
src/decoration-manager.ts
@@ -207,9 +207,14 @@ export default class DecorationManager {
207
valueDecorations.push(decoration);
208
209
const themeFocusBorderColor = new vscode.ThemeColor("focusBorder");
210
+ const stringValue = String(this.fullToken[key]);
211
const decorationType = vscode.window.createTextEditorDecorationType({
212
after: {
- contentText: colorValue ? "--" : `${String(this.fullToken[key])}`,
213
+ contentText: colorValue
214
+ ? "--"
215
+ : stringValue.length > 36
216
+ ? `${stringValue.slice(0, 36)}...`
217
+ : stringValue,
218
color: colorValue ? "transparent" : "#b37feb",
219
backgroundColor: colorValue || "",
220
border: "2px solid",
0 commit comments