Skip to content

Commit b71e3ef

Browse files
author
Akos Kitta
committed
Fixed the typo in the preference key.
Closes #1067. Signed-off-by: Akos Kitta <[email protected]>
1 parent 198d52b commit b71e3ef

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: arduino-ide-extension/src/browser/arduino-preferences.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ export const ArduinoConfigSchema: PreferenceSchema = {
193193
),
194194
default: true,
195195
},
196-
'arduino.cloud.sketchSyncEnpoint': {
196+
'arduino.cloud.sketchSyncEndpoint': {
197197
type: 'string',
198198
description: nls.localize(
199-
'arduino/preferences/cloud.sketchSyncEnpoint',
199+
'arduino/preferences/cloud.sketchSyncEndpoint',
200200
'The endpoint used to push and pull sketches from a backend. By default it points to Arduino Cloud API.'
201201
),
202202
default: 'https://api2.arduino.cc/create',
@@ -272,7 +272,7 @@ export interface ArduinoConfiguration {
272272
'arduino.cloud.pull.warn': boolean;
273273
'arduino.cloud.push.warn': boolean;
274274
'arduino.cloud.pushpublic.warn': boolean;
275-
'arduino.cloud.sketchSyncEnpoint': string;
275+
'arduino.cloud.sketchSyncEndpoint': string;
276276
'arduino.auth.clientID': string;
277277
'arduino.auth.domain': string;
278278
'arduino.auth.audience': string;

Diff for: arduino-ide-extension/src/browser/create/create-api.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ export class CreateApi {
507507
}
508508

509509
private domain(apiVersion = 'v2'): string {
510-
const endpoint = this.arduinoPreferences['arduino.cloud.sketchSyncEnpoint'];
510+
const endpoint =
511+
this.arduinoPreferences['arduino.cloud.sketchSyncEndpoint'];
511512
return `${endpoint}/${apiVersion}`;
512513
}
513514

0 commit comments

Comments
 (0)