File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
packages/css-variables-language-server/src Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " css-variables-language-server " : patch
3
+ ---
4
+
5
+ Fix go to definition
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default class CSSVariableManager {
71
71
72
72
if ( match ) {
73
73
const url = `${ match . groups . protocol } ://${ match . groups . url } ` ;
74
-
74
+
75
75
importUrls . push ( url ) ;
76
76
}
77
77
}
@@ -81,7 +81,7 @@ export default class CSSVariableManager {
81
81
importUrls . map ( async ( url ) => {
82
82
try {
83
83
const response = await axios ( url , {
84
- responseType : " text"
84
+ responseType : ' text' ,
85
85
} ) ;
86
86
87
87
const cssText = await response . data ;
@@ -107,10 +107,13 @@ export default class CSSVariableManager {
107
107
uri : fileURI ,
108
108
range : Range . create (
109
109
Position . create (
110
- decl . source . start . line ,
111
- decl . source . start . column
110
+ decl . source . start . line - 1 ,
111
+ decl . source . start . column - 1
112
112
) ,
113
- Position . create ( decl . source . end . line , decl . source . end . column )
113
+ Position . create (
114
+ decl . source . end . line - 1 ,
115
+ decl . source . end . column - 1
116
+ )
114
117
) ,
115
118
} ,
116
119
} ;
You can’t perform that action at this time.
0 commit comments