File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " antd-design-token" ,
3
3
"displayName" : " antd Design Token" ,
4
4
"description" : " VSCode extension for antd v5 design token." ,
5
- "version" : " 0.3.5 " ,
5
+ "version" : " 0.3.6 " ,
6
6
"publisher" : " shezhangzhang" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.68.0"
59
59
"webpack-cli" : " ^4.9.2"
60
60
},
61
61
"dependencies" : {
62
- "antd-token-previewer" : " ^1.0.0-alpha.22 " ,
62
+ "antd-token-previewer" : " ^1.0.3 " ,
63
63
"rgb-hex" : " ^4.0.0"
64
64
},
65
65
"repository" : {
Original file line number Diff line number Diff line change @@ -207,9 +207,14 @@ export default class DecorationManager {
207
207
valueDecorations . push ( decoration ) ;
208
208
209
209
const themeFocusBorderColor = new vscode . ThemeColor ( "focusBorder" ) ;
210
+ const stringValue = String ( this . fullToken [ key ] ) ;
210
211
const decorationType = vscode . window . createTextEditorDecorationType ( {
211
212
after : {
212
- contentText : colorValue ? "--" : `${ String ( this . fullToken [ key ] ) } ` ,
213
+ contentText : colorValue
214
+ ? "--"
215
+ : stringValue . length > 36
216
+ ? `${ stringValue . slice ( 0 , 36 ) } ...`
217
+ : stringValue ,
213
218
color : colorValue ? "transparent" : "#b37feb" ,
214
219
backgroundColor : colorValue || "" ,
215
220
border : "2px solid" ,
You can’t perform that action at this time.
0 commit comments