Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit e599510

Browse files
committed
Use introduced property in IVscodeSettings and VscodeSettings
1 parent f2fdfc1 commit e599510

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/arduino/vscodeSettings.ts

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import * as vscode from "vscode";
55

66
const configKeys = {
7+
USE_ACTIVE_SKETCH: "arduino.useActiveSketch",
78
ARDUINO_PATH: "arduino.path",
89
ARDUINO_COMMAND_PATH: "arduino.commandPath",
910
ADDITIONAL_URLS: "arduino.additionalUrls",
@@ -18,6 +19,7 @@ const configKeys = {
1819
};
1920

2021
export interface IVscodeSettings {
22+
useActiveSketch: boolean;
2123
arduinoPath: string;
2224
commandPath: string;
2325
additionalUrls: string | string[];
@@ -43,6 +45,10 @@ export class VscodeSettings implements IVscodeSettings {
4345
private constructor() {
4446
}
4547

48+
public get useActiveSketch(): boolean {
49+
return this.getConfigValue<boolean>(configKeys.USE_ACTIVE_SKETCH);
50+
}
51+
4652
public get arduinoPath(): string {
4753
return this.getConfigValue<string>(configKeys.ARDUINO_PATH);
4854
}

0 commit comments

Comments
 (0)