We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c1fe68 commit d712a94Copy full SHA for d712a94
src/common/workspace.ts
@@ -4,6 +4,7 @@
4
import * as fs from "fs";
5
import * as path from "path";
6
import * as vscode from "vscode";
7
+import { ARDUINO_CONFIG_FILE } from "./constants";
8
9
export class ArduinoWorkspace {
10
static get rootPath(): string|undefined {
@@ -14,7 +15,7 @@ export class ArduinoWorkspace {
14
15
16
for (const workspaceFolder of workspaceFolders) {
17
const workspaceFolderPath = workspaceFolder.uri.fsPath;
- const arduinoConfigPath = path.join(workspaceFolderPath, ".vscode", "arduino.json");
18
+ const arduinoConfigPath = path.join(workspaceFolderPath, ARDUINO_CONFIG_FILE);
19
if (fs.existsSync(arduinoConfigPath)) {
20
return workspaceFolderPath;
21
}
0 commit comments