Skip to content

Commit db15830

Browse files
authored
Merge pull request #35 from Jason2866/vscodium
Vscodium
2 parents 0a8a254 + bf72cce commit db15830

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pioarduino-ide",
3-
"version": "1.1.1",
3+
"version": "1.2.3",
44
"icon": "assets/images/pioarduino-128x128.png",
55
"publisher": "pioarduino",
66
"engines": {
@@ -670,7 +670,7 @@
670670
"name": "platformio",
671671
"owner": "cpp",
672672
"fileLocation": [
673-
"relative",
673+
"autoDetect",
674674
"${workspaceFolder}"
675675
],
676676
"pattern": {
@@ -877,7 +877,7 @@
877877
},
878878
"dependencies": {
879879
"fs-plus": "~3.1.1",
880-
"pioarduino-node-helpers": "~12.1.1",
880+
"pioarduino-node-helpers": "~12.1.3",
881881
"platformio-vscode-debug": "~1.4.1"
882882
},
883883
"devDependencies": {
@@ -890,8 +890,5 @@
890890
"prettier": "~3.4.2",
891891
"webpack": "~5.97.1",
892892
"webpack-cli": "~6.0.1"
893-
},
894-
"extensionDependencies": [
895-
"ms-vscode.cpptools"
896-
]
893+
}
897894
}

pioarduino-ide-1.2.3.vsix

2.64 MB
Binary file not shown.

src/home.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ export default class PIOHome {
100100
}
101101

102102
getTheme() {
103-
const workbench = vscode.workspace.getConfiguration('workbench') || {};
104-
return (workbench.colorTheme || '').toLowerCase().includes('light')
103+
const themeKind = vscode.window.activeColorTheme.kind;
104+
return themeKind === vscode.ColorThemeKind.Light ||
105+
themeKind === vscode.ColorThemeKind.HighContrastLight
105106
? 'light'
106107
: 'dark';
107108
}

0 commit comments

Comments
 (0)