Skip to content

Commit 4561e56

Browse files
authored
Merge pull request #124 from paulober/develop
Patch v3.2.2
2 parents c71d25c + 886b459 commit 4561e56

File tree

10 files changed

+200
-195
lines changed

10 files changed

+200
-195
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
uses: github/codeql-action/autobuild@v2
6363

6464
- name: Custom-Build
65-
run: npm run compile
65+
run: |
66+
npm ci
67+
npm run compile
6668
6769
# ℹ️ Command-line programs to run using the OS shell.
6870
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ All notable changes to the "MicroPico" extension will be documented in this file
99

1010
---
1111

12+
## [3.2.2] - 2023-08-14
13+
14+
# Added
15+
- `uploadproject` status-bar button
16+
17+
# Changed
18+
- Upgraded pyboard-serial-com to v1.5.3 (Fixes an issue where `pyIgnore` wildcard exclusions were not working)
19+
- Updated stubs to patch v1.20.0-3 stable
20+
- Dependencies were updated
21+
1222
## [3.2.1] - 2023-08-01
1323

1424
# Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This extension contributes the following settings:
7676
* `micropico.additionalSyncFolders`: Specifies additional folders that can be selected as upload sources when uploading a project. If left empty, the sync will be performed based on the folder specified in the 'syncFolder' setting. Only folders within the project are allowed. Specify the path relative to the project you have opened in Visual Studio Code, without a leading or trailing slash.
7777
* `micropico.syncAllFileTypes`: If enabled, all files will be uploaded no matter the file type. The list of file types below will be ignored.
7878
* `micropico.syncFileTypes`: All types of files that will be uploaded to the board, seperated by comma. All other filetypes will be ignored during an upload (or download) action.
79-
* `micropico.pyIgnore`: Comma separated list of files and folders to ignore when uploading relative to syncFolder (no wildcard or regular expressions supported except `**/<file/folder>` to exclude an item by its name in every sub folder). Use `<additionalSyncFolder>:file/to/exclude.py` to create sync folder exclusive exclusion rules (all other rules will always be applied relative to the selected sync folder). Replace `additionalSyncFolder` with a value from your `micropico.additionalSyncFolders` setting or the value from `micropico.syncFolder`.
79+
* `micropico.pyIgnore`: Comma separated list of files and folders to ignore when uploading relative to syncFolder (no wildcard or regular expressions supported except `**/<file|folder>` to exclude an item by its name in every sub folder). Use `<additionalSyncFolder>:file/to/exclude.py` to create sync folder exclusive exclusion rules (all other rules will always be applied relative to the selected sync folder). Replace `additionalSyncFolder` with a value from your `micropico.additionalSyncFolders` setting or the value from `micropico.syncFolder`.
8080
* `micropico.openOnStart`: Automatically open the MicroPico terminal (Pico (W) vREPL) and connect to the board after starting VS Code.
8181
* `micropico.statusbarButtons`: Select which buttons to show in the statusbar (DO NOT CHANGE, unless you know what you are doing)
8282
* `micropico.gcBeforeUpload`: Run garbage collection before uploading files to the board. This will free up some memory usefull when uploading large files but adds about a second or two to the upload process.

package-lock.json

Lines changed: 160 additions & 174 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pico-w-go",
33
"displayName": "MicroPico",
44
"description": "Auto-completion, remote workspace and a REPL console integration for the Raspberry Pi Pico (W) with MicroPython firmware.",
5-
"version": "3.2.1",
5+
"version": "3.2.2",
66
"publisher": "paulober",
77
"license": "MPL-2.0",
88
"homepage": "https://github.com/paulober/MicroPico/blob/main/README.md",
@@ -367,7 +367,8 @@
367367
"settings",
368368
"listserial",
369369
"listcommands",
370-
"togglepicowfs"
370+
"togglepicowfs",
371+
"uploadproject"
371372
]
372373
},
373374
"default": [
@@ -443,6 +444,12 @@
443444
"command": "micropico.uploadFile",
444445
"tooltip": "Upload current file to your board"
445446
},
447+
{
448+
"key": "uploadproject",
449+
"name": "$(triangle-up) Upload Project",
450+
"command": "micropico.upload",
451+
"tooltip": "Upload current project to your board"
452+
},
446453
{
447454
"key": "download",
448455
"name": "$(triangle-down) Download",
@@ -500,29 +507,29 @@
500507
"test": "node ./out/test/runTest.js"
501508
},
502509
"devDependencies": {
503-
"@rollup/plugin-commonjs": "^25.0.3",
510+
"@rollup/plugin-commonjs": "^25.0.4",
504511
"@rollup/plugin-node-resolve": "^15.1.0",
505512
"@rollup/plugin-terser": "^0.4.3",
506513
"@rollup/plugin-typescript": "^11.1.2",
507514
"@types/fs-extra": "^11.0.1",
508-
"@types/lodash": "^4.14.196",
515+
"@types/lodash": "^4.14.197",
509516
"@types/mocha": "^10.0.1",
510517
"@types/node": "^16.x",
511518
"@types/uuid": "^9.0.2",
512519
"@types/vscode": "^1.76.0",
513-
"@typescript-eslint/eslint-plugin": "^6.2.1",
514-
"@typescript-eslint/parser": "^6.2.1",
520+
"@typescript-eslint/eslint-plugin": "^6.4.0",
521+
"@typescript-eslint/parser": "^6.4.0",
515522
"@vscode/test-electron": "^2.3.4",
516-
"eslint": "^8.46.0",
517-
"eslint-config-prettier": "^8.9.0",
523+
"eslint": "^8.47.0",
524+
"eslint-config-prettier": "^9.0.0",
518525
"glob": "^9.3.4",
519526
"mocha": "^10.2.0",
520-
"rollup": "^3.27.0",
527+
"rollup": "^3.28.0",
521528
"rollup-plugin-copy": "^3.4.0",
522529
"typescript": "^5.1.6"
523530
},
524531
"dependencies": {
525-
"@paulober/pyboard-serial-com": "^1.5.2",
532+
"@paulober/pyboard-serial-com": "^1.5.3",
526533
"fs-extra": "^11.1.1",
527534
"lodash": "^4.17.21",
528535
"rimraf": "^5.0.1",

src/api.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "vscode";
1212
import type { ExtensionTerminalOptions } from "vscode";
1313

14-
export const extName = "pico-w-go";
14+
export const extName = "micropico";
1515
export const extId = "paulober.pico-w-go";
1616
export const TERMINAL_NAME = "Pico (W) vREPL";
1717

src/settings.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Memento, WorkspaceConfiguration } from "vscode";
22
import { window, workspace } from "vscode";
33
import { PyboardRunner } from "@paulober/pyboard-serial-com";
4-
import { getProjectPath } from "./api.mjs";
4+
import { extName, getProjectPath } from "./api.mjs";
55
import { join, relative } from "path";
66

77
export enum SettingsKey {
@@ -27,7 +27,7 @@ export default class Settings {
2727
public pythonExecutable?: string;
2828

2929
constructor(context: Memento) {
30-
this.config = workspace.getConfiguration("micropico");
30+
this.config = workspace.getConfiguration(extName);
3131

3232
this.context = context;
3333
this.pythonExecutable = this.getString(SettingsKey.pythonPath);

stubs/stubs/machine/machine.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from umachine import *
1+
from .umachine import *

stubs/stubs/umachine/umachine.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Descriptions taken from
3030
"""
3131
from collections.abc import Callable, Sequence
3232
from typing import overload, NoReturn
33-
from typing import ClassVar, Any
33+
from typing import ClassVar, Any, Literal
3434

3535

3636
class ADC:
@@ -313,13 +313,13 @@ with `Pin.IN`, `Pin.OUT`, or `Pin.OPEN_DRAIN`, the alternate function will be re
313313
"""
314314
...
315315

316-
def value(self, value: Any=..., /) -> None:
316+
def value(self, value: Any=..., /) -> Literal[0, 1] | None:
317317
"""
318318
Get or set the digital logic level of the pin:
319319
320320
- With no argument, return 0 or 1 depending on the logic level of the pin.
321-
- With ``value`` given, set the logic level of the pin. ``value`` can be
322-
anything that converts to a boolean. If it converts to ``True``, the pin
321+
- With ``value`` given, set the logic level of the pin. `value` can be
322+
anything that converts to a boolean. If it converts to `True`, the pin
323323
is set high, otherwise it is set low.
324324
"""
325325
...

stubs/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version": "1.20.0-2"}
1+
{"version": "1.20.0-3"}

0 commit comments

Comments
 (0)