Skip to content

Commit 85aac83

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

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
@@ -185,10 +185,10 @@ export const ArduinoConfigSchema: PreferenceSchema = {
185185
),
186186
default: true,
187187
},
188-
'arduino.cloud.sketchSyncEnpoint': {
188+
'arduino.cloud.sketchSyncEndpoint': {
189189
type: 'string',
190190
description: nls.localize(
191-
'arduino/preferences/cloud.sketchSyncEnpoint',
191+
'arduino/preferences/cloud.sketchSyncEndpoint',
192192
'The endpoint used to push and pull sketches from a backend. By default it points to Arduino Cloud API.'
193193
),
194194
default: 'https://api2.arduino.cc/create',
@@ -263,7 +263,7 @@ export interface ArduinoConfiguration {
263263
'arduino.cloud.pull.warn': boolean;
264264
'arduino.cloud.push.warn': boolean;
265265
'arduino.cloud.pushpublic.warn': boolean;
266-
'arduino.cloud.sketchSyncEnpoint': string;
266+
'arduino.cloud.sketchSyncEndpoint': string;
267267
'arduino.auth.clientID': string;
268268
'arduino.auth.domain': string;
269269
'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)