From d83f75b46f7b13c36888b56cd048c6523edbfda4 Mon Sep 17 00:00:00 2001 From: Lior Date: Mon, 22 Apr 2024 18:09:27 +0300 Subject: [PATCH 1/5] Update package.json fixes to package.json so it can be uploaded to marketplace --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2466a8c5..0d366dbc 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "vscode-arduino", "displayName": "Arduino", "description": "Arduino for Visual Studio Code", - "version": "0.6.0", - "publisher": "vsciot-vscode", + "version": "0.6.1", + "publisher": "vscode-arduino", "preview": true, "engines": { "vscode": "^1.63.0" From 7b702225294fcacc62bb22c565e719d66e997ae7 Mon Sep 17 00:00:00 2001 From: Lior Date: Mon, 22 Apr 2024 18:13:10 +0300 Subject: [PATCH 2/5] Update README.md Update README.md with community related changes --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26950106..2d062c36 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Visual Studio Code extension for Arduino -[![Gitter](https://img.shields.io/badge/chat-on%20gitter-blue.svg)](https://gitter.im/Microsoft/vscode-arduino) +> NOTE: +> This is a community maintained fork of [Microsoft's vscode arduino extension](https://github.com/microsoft/vscode-arduino) Welcome to the Visual Studio Code extension for **Arduino** preview ! The Arduino extension makes it easy to develop, build, and deploy your Arduino sketches in Visual Studio Code, with a rich set of functionalities. These include: @@ -240,4 +241,4 @@ The [Microsoft Enterprise and Developer Privacy Statement](https://www.microsoft This extension is licensed under the [MIT License](https://github.com/Microsoft/vscode-arduino/blob/main/LICENSE.txt). Please see the [Third Party Notice](https://github.com/Microsoft/vscode-arduino/blob/main/ThirdPartyNotices.txt) file for additional copyright notices and terms. ## Contact Us -If you would like to help build the best Arduino experience with VS Code, you can reach us directly at [gitter chat room](https://gitter.im/Microsoft/vscode-arduino). +TBD From 069fc04035f4a6e1912ed71921f03feca59225ad Mon Sep 17 00:00:00 2001 From: lior Date: Mon, 22 Apr 2024 19:19:52 +0300 Subject: [PATCH 3/5] More changes for market place --- CONTRIBUTING.md | 8 ++++---- README.md | 10 +++++----- package-lock.json | 8 ++++---- package.json | 10 +++++----- src/extension.ts | 6 +++--- test/commands.test.ts | 2 +- test/extension.test.ts | 4 ++-- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1cd74ff0..96c9356b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,9 +6,9 @@ There are many ways that you can contribute, beyond writing code. The goal of th ## Contributing Fixes -If you are interested in writing code to fix issues, first look at the issues with the [help-wanted](https://github.com/Microsoft/vscode-arduino/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) label. They should have the context and code pointers needed to get started. If not, then feel free to ask for some, and we will be happy to provide any guidance you need. +If you are interested in writing code to fix issues, first look at the issues with the [help-wanted](https://github.com/vscode-arduino/vscode-arduino/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) label. They should have the context and code pointers needed to get started. If not, then feel free to ask for some, and we will be happy to provide any guidance you need. -When you are doing code fix, please work against [main](https://github.com/microsoft/vscode-arduino/tree/main) +When you are doing code fix, please work against [main](https://github.com/vscode-arduino/vscode-arduino/tree/main) branch and also submit pull request to `main` branch. Production releases will be tagged from `main`. @@ -19,9 +19,9 @@ Have you identified a reproducible problem? Have a feature request? We want to h ### Look For an Existing Issue -Before you create a new issue, please do a search in [open issues](https://github.com/Microsoft/vscode-arduino/issues) to see if the issue or feature request has already been filed. +Before you create a new issue, please do a search in [open issues](https://github.com/vscode-arduino/vscode-arduino/issues) to see if the issue or feature request has already been filed. -Be sure to scan through the [most popular](https://github.com/Microsoft/vscode-arduino/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc) issues. +Be sure to scan through the [most popular](https://github.com/vscode-arduino/vscode-arduino/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc) issues. If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment: diff --git a/README.md b/README.md index 2d062c36..2a9de148 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ Arduino IDE can be installed from the Arduino [download page](https://www.arduin - *Note:* Arduino IDE `2.X.Y` is not supported and there are no plans for support in the future ([issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)). ## Installation -Open VS Code and press F1 or Ctrl + Shift + P *or* Cmd + Shift + P to open command palette, select **Install Extension** and type `vscode-arduino`. +Open VS Code and press F1 or Ctrl + Shift + P *or* Cmd + Shift + P to open command palette, select **Install Extension** and type `vscode-arduino-community`. Or launch VS Code Quick Open (Ctrl + P *or* Cmd + P ), paste the following command, and press enter. ```bash -ext install vscode-arduino +ext install vscode-arduino-community ``` You can also install directly from the Marketplace within Visual Studio Code, searching for `Arduino`. @@ -211,7 +211,7 @@ Currently this extension supports the following operating systems: - The extension might work on other Linux distributions, as reported by other users, but without guarantee. ## Support -You can find the full list of issues on the [Issue Tracker](https://github.com/Microsoft/vscode-arduino/issues). You can submit a [bug or feature suggestion](https://github.com/Microsoft/vscode-arduino/issues/new), and participate in community driven [discussions](https://gitter.im/Microsoft/vscode-arduino). +You can find the full list of issues on the [Issue Tracker](https://github.com/vscode-arduino/vscode-arduino/issues). You can submit a [bug or feature suggestion](https://github.com/vscode-arduino/vscode-arduino/issues/new). ## Development @@ -222,7 +222,7 @@ Installation prerequisites: - [Npm](https://www.npmjs.com/) (>= 6.x) To *run and develop*, do the following: -- `git clone https://github.com/microsoft/vscode-arduino` +- `git clone https://github.com/vscode-arduino/vscode-arduino` - `cd vscode-arduino` - Run `npm i` - Run `npm i -g gulp` @@ -238,7 +238,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope The [Microsoft Enterprise and Developer Privacy Statement](https://www.microsoft.com/en-us/privacystatement/EnterpriseDev/default.aspx) describes the privacy statement of this software. ## License -This extension is licensed under the [MIT License](https://github.com/Microsoft/vscode-arduino/blob/main/LICENSE.txt). Please see the [Third Party Notice](https://github.com/Microsoft/vscode-arduino/blob/main/ThirdPartyNotices.txt) file for additional copyright notices and terms. +This extension is licensed under the [MIT License](https://github.com/vscode-arduino/vscode-arduino/blob/main/LICENSE.txt). Please see the [Third Party Notice](https://github.com/vscode-arduino/vscode-arduino/blob/main/ThirdPartyNotices.txt) file for additional copyright notices and terms. ## Contact Us TBD diff --git a/package-lock.json b/package-lock.json index 42ada0cf..2f2024dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "vscode-arduino", - "version": "0.6.0", + "name": "vscode-arduino-community", + "version": "0.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "vscode-arduino", - "version": "0.6.0", + "name": "vscode-arduino-community", + "version": "0.6.1", "hasInstallScript": true, "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { diff --git a/package.json b/package.json index 0d366dbc..945b3fe7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vscode-arduino", + "name": "vscode-arduino-community", "displayName": "Arduino", "description": "Arduino for Visual Studio Code", "version": "0.6.1", @@ -12,12 +12,12 @@ "license": "SEE LICENSE IN LICENSE.txt", "repository": { "type": "git", - "url": "https://github.com/Microsoft/vscode-arduino.git" + "url": "https://github.com/vscode-arduino/vscode-arduino.git" }, "bugs": { - "url": "https://github.com/Microsoft/vscode-arduino/issues" + "url": "https://github.com/vscode-arduino/vscode-arduinoissues" }, - "homepage": "https://github.com/Microsoft/vscode-arduino", + "homepage": "https://github.com/vscode-arduino/vscode-arduino", "categories": [ "Programming Languages", "Snippets", @@ -176,7 +176,7 @@ { "id": "arduinoExampleExplorer", "name": "Arduino Examples", - "when": "vscode-arduino:showExampleExplorer" + "when": "vscode-arduino-community:showExampleExplorer" } ] }, diff --git a/src/extension.ts b/src/extension.ts index de9693bd..b8622445 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -337,7 +337,7 @@ export async function activate(context: vscode.ExtensionContext) { if (!SerialMonitor.getInstance().initialized) { SerialMonitor.getInstance().initialize(context); } - vscode.commands.executeCommand("setContext", "vscode-arduino:showExampleExplorer", true); + vscode.commands.executeCommand("setContext", "vscode-arduino-community:showExampleExplorer", true); })(); } vscode.window.onDidChangeActiveTextEditor(async () => { @@ -352,7 +352,7 @@ export async function activate(context: vscode.ExtensionContext) { if (!SerialMonitor.getInstance().initialized) { SerialMonitor.getInstance().initialize(context); } - vscode.commands.executeCommand("setContext", "vscode-arduino:showExampleExplorer", true); + vscode.commands.executeCommand("setContext", "vscode-arduino-community:showExampleExplorer", true); } }); @@ -410,7 +410,7 @@ export async function activate(context: vscode.ExtensionContext) { panel.webview.html = await arduinoManagerProvider.provideTextDocumentContent(BOARD_CONFIG_URI); }); registerArduinoCommand("arduino.showExamples", async (forceRefresh: boolean = false) => { - vscode.commands.executeCommand("setContext", "vscode-arduino:showExampleExplorer", true); + vscode.commands.executeCommand("setContext", "vscode-arduino-community:showExampleExplorer", true); if (forceRefresh) { vscode.commands.executeCommand("arduino.reloadExample"); } diff --git a/test/commands.test.ts b/test/commands.test.ts index ddf2e227..363716d9 100644 --- a/test/commands.test.ts +++ b/test/commands.test.ts @@ -10,7 +10,7 @@ suite("Arduino: Commands Tests", () => { setup(function(done) { // Ensure that extension is activate while testing this.timeout(60 * 1000); - const extension = vscode.extensions.getExtension("vsciot-vscode.vscode-arduino"); + const extension = vscode.extensions.getExtension("vscode-arduino.vscode-arduino-community"); if (!extension.isActive) { extension.activate().then((api) => { // The extension waits 100ms before registering some commands, diff --git a/test/extension.test.ts b/test/extension.test.ts index 61753f64..c783950c 100644 --- a/test/extension.test.ts +++ b/test/extension.test.ts @@ -11,7 +11,7 @@ const usbDetectorModule = impor("../src/serialmonitor/usbDetector") as typeof im // Defines a Mocha test suite to group tests of similar kind together suite("Arduino: Extension Tests", () => { test("should be present", () => { - assert.ok(vscode.extensions.getExtension("vsciot-vscode.vscode-arduino")); + assert.ok(vscode.extensions.getExtension("vscode-arduino.vscode-arduino-community")); }); // The extension is already activated by vscode before running mocha test framework. @@ -19,7 +19,7 @@ suite("Arduino: Extension Tests", () => { // tslint:disable-next-line: only-arrow-functions test("should be able to activate the extension", function(done) { this.timeout(60 * 1000); - const extension = vscode.extensions.getExtension("vsciot-vscode.vscode-arduino"); + const extension = vscode.extensions.getExtension("vscode-arduino.vscode-arduino-community"); if (!extension.isActive) { extension.activate().then((api) => { done(); From c7083e96cd4d67dbdcd667af049f31394abdbed6 Mon Sep 17 00:00:00 2001 From: lior Date: Mon, 22 Apr 2024 19:46:30 +0300 Subject: [PATCH 4/5] changed ext display name for market place --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 945b3fe7..30c3e645 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-arduino-community", - "displayName": "Arduino", + "displayName": "Arduino Community Edition", "description": "Arduino for Visual Studio Code", "version": "0.6.1", "publisher": "vscode-arduino", From c172ee9d98837673f8bf5eee682b6c794976280b Mon Sep 17 00:00:00 2001 From: lior Date: Mon, 22 Apr 2024 21:37:48 +0300 Subject: [PATCH 5/5] typo fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30c3e645..e7ef595c 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "url": "https://github.com/vscode-arduino/vscode-arduino.git" }, "bugs": { - "url": "https://github.com/vscode-arduino/vscode-arduinoissues" + "url": "https://github.com/vscode-arduino/vscode-arduino/issues" }, "homepage": "https://github.com/vscode-arduino/vscode-arduino", "categories": [