File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-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.4 " ,
5
+ "version" : " 0.3.5 " ,
6
6
"publisher" : " shezhangzhang" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.68.0"
Original file line number Diff line number Diff line change @@ -206,12 +206,15 @@ export default class DecorationManager {
206
206
const colorValue = getColorTokenValue ( this . fullToken [ key ] ) ;
207
207
valueDecorations . push ( decoration ) ;
208
208
209
+ const themeFocusBorderColor = new vscode . ThemeColor ( "focusBorder" ) ;
209
210
const decorationType = vscode . window . createTextEditorDecorationType ( {
210
211
after : {
211
- contentText : colorValue ? `**` : `${ String ( this . fullToken [ key ] ) } ` ,
212
+ contentText : colorValue ? "--" : `${ String ( this . fullToken [ key ] ) } ` ,
213
+ color : colorValue ? "transparent" : "#b37feb" ,
212
214
backgroundColor : colorValue || "" ,
215
+ border : "2px solid" ,
216
+ borderColor : themeFocusBorderColor ,
213
217
margin : "0 0 0 5px;" ,
214
- color : colorValue || "#b37feb" ,
215
218
fontWeight : "bolder" ,
216
219
} ,
217
220
} ) ;
You can’t perform that action at this time.
0 commit comments