File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,11 @@ export class Storage {
123
123
* downloads being disabled.
124
124
*/
125
125
public async fetchBinary ( restClient : Api , label : string ) : Promise < string > {
126
- const baseUrl = restClient . getAxiosInstance ( ) . defaults . baseURL ;
126
+ const cfg = vscode . workspace . getConfiguration ( "coder" ) ;
127
127
128
128
// Settings can be undefined when set to their defaults (true in this case),
129
129
// so explicitly check against false.
130
- const enableDownloads =
131
- vscode . workspace . getConfiguration ( ) . get ( "coder.enableDownloads" ) !==
132
- false ;
130
+ const enableDownloads = cfg . get ( "enableDownloads" ) !== false ;
133
131
this . output . info ( "Downloads are" , enableDownloads ? "enabled" : "disabled" ) ;
134
132
135
133
// Get the build info to compare with the existing binary version, if any,
@@ -189,9 +187,7 @@ export class Storage {
189
187
190
188
// Figure out where to get the binary.
191
189
const binName = cli . name ( ) ;
192
- const configSource = vscode . workspace
193
- . getConfiguration ( )
194
- . get ( "coder.binarySource" ) ;
190
+ const configSource = cfg . get ( "binarySource" ) ;
195
191
const binSource =
196
192
configSource && String ( configSource ) . trim ( ) . length > 0
197
193
? String ( configSource )
You can’t perform that action at this time.
0 commit comments