Skip to content

Commit 97a520d

Browse files
committed
Merge branch 'release/v2.3.0'
2 parents ea3c821 + 6658c19 commit 97a520d

File tree

12 files changed

+615
-611
lines changed

12 files changed

+615
-611
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release Notes
22

3+
## 2.3.0 (2021-??-??)
4+
5+
**Requires PlatformIO Core 5.1 or above**
6+
7+
* Project management:
8+
- Show active project in the status bar (issue [#2276](https://github.com/platformio/platformio-vscode-ide/issues/2276))
9+
- Automatically switch to the latest project on restart (issue [#2365](https://github.com/platformio/platformio-vscode-ide/issues/2365))
10+
- Automatically restore the latest project environment (issue [#2344](https://github.com/platformio/platformio-vscode-ide/issues/2344))
11+
* Allowed passing custom base URL of the Python Package Index using new `customPyPiIndexUrl` setting
12+
* Open ["platformio.ini" configuration file](https://docs.platformio.org/page/projectconf/index.html) from newly added project (if there are no other active editors) (issue [#2263](https://github.com/platformio/platformio-vscode-ide/issues/2263))
13+
* Updated PlatformIO Core installer to v1.0.0 ([release notes](https://github.com/platformio/platformio-core-installer/releases/tag/v1.0.0))
14+
* Added protection for infinite IntelliSense index rebuilding (issue [#2363](https://github.com/platformio/platformio-vscode-ide/issues/2363))
15+
* Added "OpenAPI (Swagger) Editor" extension to the conflicted list (issue [#2324](https://github.com/platformio/platformio-vscode-ide/issues/2324))
16+
* Fixed issues when the "Upload and Monitor" command didn't terminate the running task and didn't reopen a monitor with delay (issue [#2266](https://github.com/platformio/platformio-vscode-ide/issues/2266), issue [#2319](https://github.com/platformio/platformio-vscode-ide/issues/2319))
17+
* Fixed an issue with broken IntelliSense index rebuilding or tasks loading for big projects (issue [#2321](https://github.com/platformio/platformio-vscode-ide/issues/2321))
18+
* Fixed an issue when a debug breakpoint was not allowed for Assembly files
19+
320
## 2.2.1 (2020-11-12)
421

522
- Fixed a regression bug when a debug breakpoint was not allowed for Assembly files

package.json

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "platformio-ide",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"publisher": "platformio",
55
"engines": {
66
"vscode": "^1.44.0"
@@ -90,6 +90,12 @@
9090
}
9191
],
9292
"commands": [
93+
{
94+
"command": "platformio-ide.privateRunTask",
95+
"title": "Custom task runner (private)",
96+
"category": "PlatformIO",
97+
"enablement": "false"
98+
},
9399
{
94100
"command": "platformio-ide.showHome",
95101
"title": "Home",
@@ -117,11 +123,6 @@
117123
"title": "Upload",
118124
"category": "PlatformIO"
119125
},
120-
{
121-
"command": "platformio-ide.remote",
122-
"title": "Remote",
123-
"category": "PlatformIO"
124-
},
125126
{
126127
"command": "platformio-ide.clean",
127128
"title": "Clean",
@@ -132,6 +133,11 @@
132133
"title": "Test",
133134
"category": "PlatformIO"
134135
},
136+
{
137+
"command": "platformio-ide.remoteUpload",
138+
"title": "Remote Upload",
139+
"category": "PlatformIO"
140+
},
135141
{
136142
"command": "platformio-ide.serialMonitor",
137143
"title": "Serial Monitor",
@@ -246,16 +252,22 @@
246252
"title": "Set Force Disassembly"
247253
}
248254
],
255+
"breakpoints": [
256+
{
257+
"language": "c"
258+
},
259+
{
260+
"language": "cpp"
261+
},
262+
{
263+
"language": "platformio-debug.asm"
264+
},
265+
{
266+
"language": "platformio-debug.disassembly"
267+
}
268+
],
249269
"debuggers": [
250270
{
251-
"enableBreakpointsFor": {
252-
"languageIds": [
253-
"c",
254-
"cpp",
255-
"platformio-debug.asm",
256-
"platformio-debug.disassembly"
257-
]
258-
},
259271
"configurationAttributes": {
260272
"launch": {
261273
"properties": {
@@ -575,6 +587,14 @@
575587
"platformio-ide.pioHomeServerHttpPort": {
576588
"type": "integer",
577589
"description": "PIO Home server HTTP port (the default value 0 automatically assigns a free port in the range [8010..8100])"
590+
},
591+
"platformio-ide.customPyPiIndexUrl": {
592+
"type": [
593+
"string",
594+
"null"
595+
],
596+
"default": null,
597+
"description": "Custom base URL of the Python Package Index (default `https://pypi.org/simple`)"
578598
}
579599
}
580600
}
@@ -586,24 +606,24 @@
586606
"vscode:package": "webpack --mode production && vsce package"
587607
},
588608
"devDependencies": {
589-
"@babel/core": "~7.12.3",
609+
"@babel/core": "~7.13.8",
590610
"@types/node": "~12",
591611
"@types/vscode": "~1.44.0",
592612
"babel-eslint": "~10.1.0",
593-
"babel-loader": "~8.2.1",
613+
"babel-loader": "~8.2.2",
594614
"babel-plugin-transform-class-properties": "~6.24.1",
595615
"babel-preset-env": "~1.7.0",
596-
"eslint": "~7.13.0",
616+
"eslint": "~7.21.0",
597617
"eslint-import-resolver-webpack": "~0.13.0",
598618
"eslint-plugin-import": "~2.22.1",
599-
"prettier": "~2.1.2",
600-
"vsce": "~1.81.1",
601-
"webpack": "~5.4.0",
602-
"webpack-cli": "~4.2.0"
619+
"prettier": "~2.2.1",
620+
"vsce": "~1.85.1",
621+
"webpack": "~5.24.2",
622+
"webpack-cli": "~4.5.0"
603623
},
604624
"dependencies": {
605625
"fs-plus": "~3.1.1",
606-
"platformio-node-helpers": "~8.1.1",
626+
"platformio-node-helpers": "~9.1.1",
607627
"platformio-vscode-debug": "~1.3.0"
608628
},
609629
"extensionDependencies": [

src/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
export const IS_WINDOWS = process.platform.startsWith('win');
1010
export const IS_OSX = process.platform == 'darwin';
1111
export const IS_LINUX = !IS_WINDOWS && !IS_OSX;
12-
export const PIO_CORE_VERSION_SPEC = '>=5';
12+
export const PIO_CORE_VERSION_SPEC = '>=5.1';
1313
export const STATUS_BAR_PRIORITY_START = 10;
1414
export const CONFLICTED_EXTENSION_IDS = [
1515
'llvm-vs-code-extensions.vscode-clangd',
1616
'vsciot-vscode.vscode-arduino',
17+
'vscode-openapi',
1718
];

src/home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default class PIOHome {
9393

9494
async getWebviewContent(startUrl) {
9595
this._lastStartUrl = startUrl;
96-
const params = await pioNodeHelpers.home.ensureServerStarted({
96+
await pioNodeHelpers.home.ensureServerStarted({
9797
port: extension.getSetting('pioHomeServerHttpPort'),
9898
onIDECommand: async (command, params) => {
9999
if (command === 'open_project') {
@@ -147,7 +147,7 @@ export default class PIOHome {
147147
<body style="margin: 0; padding: 0; height: 100%; overflow: hidden; background-color: ${
148148
theme === 'light' ? '#FFF' : '#1E1E1E'
149149
}">
150-
<iframe src="${pioNodeHelpers.home.getFrontendUri(params.host, params.port, {
150+
<iframe src="${pioNodeHelpers.home.getFrontendUrl({
151151
start: startUrl,
152152
theme,
153153
workspace: extension.getEnterpriseSetting('defaultPIOHomeWorkspace'),

src/main.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ import * as utils from './utils';
1414
import InstallationManager from './installer/manager';
1515
import PIOHome from './home';
1616
import PIOTerminal from './terminal';
17-
import ProjectManager from './project';
17+
import ProjectObservable from './project/observable';
1818
import QuickAccessTreeProvider from './views/quick-access-tree';
1919
import { STATUS_BAR_PRIORITY_START } from './constants';
2020
import StateStorage from './state-storage';
21-
import TaskManager from './tasks/manager';
2221
import fs from 'fs-plus';
2322
import vscode from 'vscode';
2423

@@ -35,13 +34,12 @@ class PlatformIOVSCodeExtension {
3534
async activate(context) {
3635
this.context = context;
3736
this.stateStorage = new StateStorage(context.globalState);
38-
this.projectManager = new ProjectManager();
3937
this.pioHome = new PIOHome();
4038
this.pioTerm = new PIOTerminal();
4139

42-
this.subscriptions.push(this.projectManager, this.pioHome, this.pioTerm);
40+
this.subscriptions.push(this.pioHome, this.pioTerm);
4341

44-
const hasPIOProject = !!this.projectManager.getActivePIOProjectDir();
42+
const hasPIOProject = ProjectObservable.getPIOProjectDirs().length > 0;
4543
if (!hasPIOProject && this.getSetting('activateOnlyOnPlatformIOProject')) {
4644
return;
4745
}
@@ -82,14 +80,11 @@ class PlatformIOVSCodeExtension {
8280

8381
vscode.commands.executeCommand('setContext', 'pioProjectReady', true);
8482

85-
this.subscriptions.push(new TaskManager());
8683
this.initDebug();
8784
this.initToolbar({
8885
ignoreCommands: this.getEnterpriseSetting('ignoreToolbarCommands'),
8986
});
90-
this.projectManager.initIndexer({
91-
autoRebuild: this.getSetting('autoRebuildAutocompleteIndex'),
92-
});
87+
this.subscriptions.push(new ProjectObservable());
9388

9489
this.startPIOHome();
9590

@@ -142,6 +137,9 @@ class PlatformIOVSCodeExtension {
142137
if (http_proxy && !process.env.HTTPS_PROXY && !process.env.https_proxy) {
143138
extraVars['HTTPS_PROXY'] = http_proxy;
144139
}
140+
if (this.getSetting('customPyPiIndexUrl')) {
141+
extraVars['PIP_INDEX_URL'] = this.getSetting('customPyPiIndexUrl');
142+
}
145143
pioNodeHelpers.proc.patchOSEnviron({
146144
caller: 'vscode',
147145
extraPath: this.getSetting('customPATH'),

src/project.js

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)