8000 patches that indicate that this is community edition by lersi · Pull Request #2 · vscode-arduino/vscode-arduino · GitHub
[go: up one dir, main page]

Skip to content

patches that indicate that this is community edition #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.


Expand All @@ -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:

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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** <sup>preview</sup> ! 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:

Expand Down Expand Up @@ -41,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 <kbd>F1</kbd> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> *or* <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open command palette, select **Install Extension** and type `vscode-arduino`.
Open VS Code and press <kbd>F1</kbd> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> *or* <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open command palette, select **Install Extension** and type `vscode-arduino-community`.

Or launch VS Code Quick Open (<kbd>Ctrl</kbd> + <kbd>P</kbd> *or* <kbd>Cmd</kbd> + <kbd>P</kbd> ), 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`.
Expand Down Expand Up @@ -210,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

Expand All @@ -221,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`
Expand All @@ -237,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
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
8 changes: 4 additions & 4 deletions package-lock.json

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "vscode-arduino",
"displayName": "Arduino",
"name": "vscode-arduino-community",
"displayName": "Arduino Community Edition",
"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"
Expand All @@ -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-arduino/issues"
},
"homepage": "https://github.com/Microsoft/vscode-arduino",
"homepage": "https://github.com/vscode-arduino/vscode-arduino",
"categories": [
"Programming Languages",
"Snippets",
Expand Down Expand Up @@ -176,7 +176,7 @@
{
"id": "arduinoExampleExplorer",
"name": "Arduino Examples",
"when": "vscode-arduino:showExampleExplorer"
"when": "vscode-arduino-community:showExampleExplorer"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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);
}
});

Expand Down Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion test/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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.
// No need to test activate any more. So commenting this case.
// 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();
Expand Down
0