Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix config for Arduino. #177

Merged
merged 2 commits into from
Mar 22, 2017
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
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"workspaceContains:.vscode/arduino.json",
"onCommand:arduino.verify",
"onCommand:arduino.upload",
"onCommand:arduino.addLibPath",
"onCommand:selectSerialPort",
"onCommand:changeBoardType",
"onCommand:arduino.showBoardManager",
Expand All @@ -47,10 +46,6 @@
"command": "arduino.upload",
"title": "Arduino: Upload"
},
{
"command": "arduino.addLibPath",
"title": "Arduino: Add library paths"
},
{
"command": "arduino.selectSerialPort",
"title": "Arduino: Select Serial Port"
Expand Down Expand Up @@ -81,7 +76,7 @@
},
{
"command": "arduino.showLibraryManager",
"title": "Arduino: Manage Libraries"
"title": "Arduino: Libraries Manager"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arduino IDE using "Library Manager".

}
],
"keybindings": [
Expand Down
8 changes: 6 additions & 2 deletions snippets/arduino.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@
"prefix": "aloop",
"body": [
"void loop()",
"{\n}"
"{",
"\t${0}",
"}"
],
"description": "Function loop"
},
"setup": {
"prefix": "asetup",
"body": [
"void setup()",
"{\n}"
"{",
"\t${0}",
"}"
],
"description": "Function setup"
},
Expand Down
4 changes: 2 additions & 2 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const ARDUINO_MODE: vscode.DocumentSelector = [
];

export const ARDUINO_MANAGER_PROTOCOL = "arduino-manager";
export const BOARD_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-boardmanager");
export const LIBRARY_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-librarymanager");
export const BOARD_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-boardsmanager");
export const LIBRARY_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-librariesmanager");

export const messages = {
ARDUINO_FILE_ERROR: "The arduino.json file format is not correct.",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function activate(context: vscode.ExtensionContext) {
}));

context.subscriptions.push(registerCommand("arduino.showLibraryManager", () => {
return vscode.commands.executeCommand("vscode.previewHtml", LIBRARY_MANAGER_URI, vscode.ViewColumn.Two, "Arduino Library Manager");
return vscode.commands.executeCommand("vscode.previewHtml", LIBRARY_MANAGER_URI, vscode.ViewColumn.Two, "Arduino Libraries Manager");
}));

// change board type
Expand Down