Skip to content

Commit

Permalink
Merge pull request #121 from paulober/develop
Browse files Browse the repository at this point in the history
Patch v3.2.1
  • Loading branch information
paulober authored Aug 1, 2023
2 parents 6e1904f + ff0b079 commit c71d25c
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Custom-Build
run: npm run compile

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Package Extension
run: npx @vscode/vsce package --no-yarn -o micropico-${{ github.sha }}.vsix
run: npx @vscode/vsce package --no-yarn -o pico-w-go-${{ github.sha }}.vsix
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# not needed because of publish
- name: Package
run: npx @vscode/vsce package --no-yarn

Expand All @@ -43,11 +44,11 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Visual Studio Code extension package
path: micropico-*.vsix
path: pico-w-go-*.vsix

- name: Upload artifact to release
#gh api --method POST -H "Accept: application/vnd.github+json" /repos/paulober/Pico-W-Go/releases/$RELEASE_ID/assets
run: gh release upload $RELEASE_TAG_NAME micropico-*.vsix
run: gh release upload $RELEASE_TAG_NAME pico-w-go-*.vsix
env:
#RELEASE_ID: ${{ github.event.release.id }}
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint"]
"recommendations": ["dbaeumer.vscode-eslint", "paulober.rollup-problem-matcher"]
}
1 change: 1 addition & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{
"type": "npm",
"script": "watch",
"problemMatcher": "$rollup-ts-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ All notable changes to the "MicroPico" extension will be documented in this file
## [3.2.1] - 2023-08-01

# Changed
- Rename extension to `MicroPico` and `paulober.micropico`
- Rename extension to `MicroPico` but the ID remains the same: `paulober.pico-w-go` (for now)
- Dependencies update

## [3.2.0] - 2023-07-15
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MicroPico Visual Studio Code Extension (aka Pico-W-Go)

> NOTE: The extension was renamed from `Pico-W-Go` to `MicroPico` and it's id to `paulober.micropico`. So if you have any problems after v3.2.1 make sure you have taken this into account
> NOTE: The extension was renamed from `Pico-W-Go` to `MicroPico` but the ID remains `paulober.pico-w-go` for now. So if you have any problems after v3.2.1 make sure you have taken this into account
"MicroPico" is a Visual Studio Code extension designed to simplify and accelerate the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards. This tool streamlines the coding process, providing code highlighting, auto-completion, code snippets, and project management features, all tailored for the seamless development experience with MicroPython on Raspberry Pi Pico and Pico W microcontrollers.

Expand Down
Binary file added images/MicroPico-Socialmedia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "micropico",
"name": "pico-w-go",
"displayName": "MicroPico",
"description": "Auto-completion, remote workspace and a REPL console integration for the Raspberry Pi Pico (W) with MicroPython firmware.",
"version": "3.2.1",
Expand Down
5 changes: 3 additions & 2 deletions src/api.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import {
} from "vscode";
import type { ExtensionTerminalOptions } from "vscode";

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

export const recommendedExtensions = [
"ms-python.python",
"visualstudioexptteam.vscodeintellicode",
"ms-python.vscode-pylance",
extId,
];

/**
Expand Down
4 changes: 2 additions & 2 deletions src/ui.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Logger from "./logger.mjs";
import { SettingsKey } from "./settings.mjs";
import type Settings from "./settings.mjs";
import { ContextKeys } from "./models/contextKeys.mjs";
import { extId } from "./api.mjs";

interface PkgJSON {
statusBar: Array<{
Expand All @@ -15,8 +16,7 @@ interface PkgJSON {
contributes: { commands: Array<{ title: string; command: string }> };
}

const pkg = (extensions.getExtension("paulober.micropico")
?.packageJSON as PkgJSON) ?? {
const pkg = (extensions.getExtension(extId)?.packageJSON as PkgJSON) ?? {
statusBar: [],
contributes: { commands: [] },
};
Expand Down

0 comments on commit c71d25c

Please sign in to comment.