File tree 3 files changed +25
-17
lines changed
packages/css-variables-language-server/src
3 files changed +25
-17
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 @@ -34,15 +34,15 @@ jobs:
34
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
35
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
36
37
- # - name: Publish to VSCode Marketplace
38
- # if: steps.changesets.outputs.published == 'true'
39
- # working-directory: ./packages/vscode-css-variables
40
- # run: |
41
- # npm i
42
- # npx vsce publish -p ${{ secrets.VSCE_TOKEN }}
43
- # - name: Publish to OpenVSX
44
- # if: steps.changesets.outputs.published == 'true'
45
- # working-directory: ./packages/vscode-css-variables
46
- # run: |
47
- # npm i
48
- # npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}
37
+ - name : Publish to VSCode Marketplace
38
+ if : steps.changesets.outputs.published == 'true'
39
+ working-directory : ./packages/vscode-css-variables
40
+ run : |
41
+ npm i
42
+ npx vsce publish -p ${{ secrets.VSCE_PAT }}
43
+ - name : Publish to OpenVSX
44
+ if : steps.changesets.outputs.published == 'true'
45
+ working-directory : ./packages/vscode-css-variables
46
+ run : |
47
+ npm i
48
+ npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}
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