diff --git a/package.json b/package.json index 52d685d..26f9019 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pioarduino-ide", - "version": "1.1.1", + "version": "1.2.3", "icon": "assets/images/pioarduino-128x128.png", "publisher": "pioarduino", "engines": { @@ -670,7 +670,7 @@ "name": "platformio", "owner": "cpp", "fileLocation": [ - "relative", + "autoDetect", "${workspaceFolder}" ], "pattern": { @@ -877,7 +877,7 @@ }, "dependencies": { "fs-plus": "~3.1.1", - "pioarduino-node-helpers": "~12.1.1", + "pioarduino-node-helpers": "~12.1.3", "platformio-vscode-debug": "~1.4.1" }, "devDependencies": { @@ -890,8 +890,5 @@ "prettier": "~3.4.2", "webpack": "~5.97.1", "webpack-cli": "~6.0.1" - }, - "extensionDependencies": [ - "ms-vscode.cpptools" - ] + } } diff --git a/pioarduino-ide-1.2.3.vsix b/pioarduino-ide-1.2.3.vsix new file mode 100644 index 0000000..3fd82e1 Binary files /dev/null and b/pioarduino-ide-1.2.3.vsix differ diff --git a/src/home.js b/src/home.js index 1ff422a..9385a6c 100644 --- a/src/home.js +++ b/src/home.js @@ -100,8 +100,9 @@ export default class PIOHome { } getTheme() { - const workbench = vscode.workspace.getConfiguration('workbench') || {}; - return (workbench.colorTheme || '').toLowerCase().includes('light') + const themeKind = vscode.window.activeColorTheme.kind; + return themeKind === vscode.ColorThemeKind.Light || + themeKind === vscode.ColorThemeKind.HighContrastLight ? 'light' : 'dark'; }