diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ec93d..b4ecc41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Notes +## 0.15.1 (2018-05-26) + +* Moved PlatformIO Toolbar to the beginning of the bottom status bar +* Fixed issue when trying to open an opened PIO Home again + ## 0.15.0 (2018-05-08) **Requires VSCode 1.23.0 or above** diff --git a/package.json b/package.json index a4ec6ef..7e1a2b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "platformio-ide", - "version": "0.15.0", + "version": "0.15.1", "publisher": "platformio", "engines": { "vscode": "^1.23.0" @@ -23,7 +23,7 @@ "preview": true, "main": "./lib/main", "icon": "resources/platformio-logo.png", - "homepage": "http://platformio.org", + "homepage": "https://platformio.org", "author": { "name": "PlatformIO.Org" }, diff --git a/src/constants.js b/src/constants.js index 7e96b80..c64c618 100644 --- a/src/constants.js +++ b/src/constants.js @@ -11,4 +11,4 @@ export const IS_OSX = process.platform == 'darwin'; export const IS_LINUX = !IS_WINDOWS && !IS_OSX; export const AUTO_REBUILD_DELAY = 3000; -export const PIO_CORE_MIN_VERSION = '3.5.2'; +export const PIO_CORE_MIN_VERSION = '3.5.3-b.3'; diff --git a/src/home.js b/src/home.js index 53ef49f..acb03c1 100644 --- a/src/home.js +++ b/src/home.js @@ -15,18 +15,20 @@ import vscode from 'vscode'; export default class PIOHome { constructor() { - this._currentPanel = null; + this._currentPanel = undefined; + this._disposables = []; } toggle() { + const column = vscode.window.activeTextEditor ? vscode.window.activeTextEditor.viewColumn : undefined; if (this._currentPanel) { - this._currentPanel.reveal(vscode.ViewColumn.One); + this._currentPanel.reveal(column); } else { this._currentPanel = this.newPanel(); } } - async newPanel() { + newPanel() { const panel = vscode.window.createWebviewPanel( 'pioHome', extension.getEnterpriseSetting('pioHomeTitle', 'PIO Home'), @@ -36,9 +38,9 @@ export default class PIOHome { retainContextWhenHidden: true } ); - panel.onDidDispose(this.onPanelDisposed.bind(this)); + panel.onDidDispose(this.onPanelDisposed.bind(this), null, this._disposables); panel.webview.html = this.getLoadingContent(); - this.getWebviewContent().then(html => panel.webview.html = html ); + this.getWebviewContent().then(html => panel.webview.html = html); return panel; } @@ -51,7 +53,7 @@ export default class PIOHome { const theme = this.getTheme(); return ` - + Loading... `; @@ -69,12 +71,12 @@ export default class PIOHome { const theme = this.getTheme(); return ` - +