diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..1de3567 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,20 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 30 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - bug + - debug + - known issue + - feature + - enhancement +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. Please provide more details or it will be closed if no + further activity occurs. Thank you for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b08f29..0fa9852 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes +## 2.1.0 (2020-09-16) + +* Added a new setting ``platformio-ide.autoPreloadEnvTasks`` to enable automatic preloading of the project environment tasks (issue [#2004](https://github.com/platformio/platformio-vscode-ide/issues/2004)) +* Renamed "PIO Remote" group of tasks to "Remote Development" +* Updated PlatformIO Core installer to [v0.3.5](https://github.com/platformio/platformio-core-installer/releases/tag/v0.3.5) + ## 2.0.1 (2020-09-10) * Moved "Project Tasks" view back to "PlatformIO" activity (you can now drag it to any location) diff --git a/package.json b/package.json index 88eac63..2796f64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "platformio-ide", - "version": "2.0.1", + "version": "2.1.0", "publisher": "platformio", "engines": { "vscode": "^1.44.0" @@ -440,7 +440,7 @@ "platformio": [ { "id": "platformio-ide.projectTasks", - "name": "PlatformIO Tasks", + "name": "Project Tasks", "icon": "root-folder", "when": "pioProjectReady" }, @@ -546,6 +546,11 @@ "default": null, "description": "The build task (label) used for the `Build` button in the bottom toolbar and for key bindings. The default is `PlatformIO: Build`." }, + "platformio-ide.autoPreloadEnvTasks": { + "type": "boolean", + "default": false, + "description": "Automatically preload ALL project environment tasks" + }, "platformio-ide.customPATH": { "type": [ "string", @@ -573,7 +578,7 @@ "platformio-ide.useBuiltinPython": { "type": "boolean", "default": true, - "description": "Use a built-in Python 3 Interpreter if available" + "description": "Use a portable Python 3 Interpreter if available" }, "platformio-ide.useBuiltinPIOCore": { "type": "boolean", @@ -621,7 +626,7 @@ }, "dependencies": { "fs-plus": "~3.1.1", - "platformio-node-helpers": "~7.2.0", + "platformio-node-helpers": "~7.2.1", "platformio-vscode-debug": "~1.2.11" }, "extensionDependencies": [ diff --git a/src/tasks/project.js b/src/tasks/project.js index ff3614f..23a9535 100644 --- a/src/tasks/project.js +++ b/src/tasks/project.js @@ -71,6 +71,12 @@ export default class ProjectTaskManager { }) ); + if (extension.getSetting('autoPreloadEnvTasks')) { + for (const item of envs) { + await this.onDidLoadEnvTasks(item.name); + } + } + this.addProjectConfigWatcher(); this.controlDeviceMonitorTasks(); this.registerTaskBasedCommands();