Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eb1ac7a

Browse files
committedJun 8, 2018
v0.2.16 (#580)
1 parent 28e5204 commit eb1ac7a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file.
33

44
## Version 0.2.16
5-
- Release date: May 30, 2018
5+
- Release date: June 6, 2018
66

77
### Added
88
- Add a way to skip header file provider [#565](https://github.com/Microsoft/vscode-arduino/pull/565)

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-arduino",
33
"displayName": "Arduino",
44
"description": "Arduino for Visual Studio Code",
5-
"version": "0.2.16-rc",
5+
"version": "0.2.16",
66
"publisher": "vsciot-vscode",
77
"aiKey": "83dd2c27-6594-41d3-85a9-bdb22070eb42",
88
"preview": true,

‎src/arduino/arduinoContentProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export class ArduinoContentProvider implements vscode.TextDocumentContentProvide
236236

237237
public async getBoardConfig(req, res) {
238238
return res.json({
239-
configitems: ArduinoContext.boardManager.currentBoard.configItems,
239+
configitems: (ArduinoContext.boardManager.currentBoard === null) ? null : ArduinoContext.boardManager.currentBoard.configItems,
240240
});
241241
}
242242

‎src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function activate(context: vscode.ExtensionContext) {
131131
registerArduinoCommand("arduino.reloadExample", () => {
132132
arduinoManagerProvider.update(EXAMPLES_URI);
133133
}, () => {
134-
return { board: ArduinoContext.boardManager.currentBoard.name };
134+
return { board: (ArduinoContext.boardManager.currentBoard === null) ? null : ArduinoContext.boardManager.currentBoard.name };
135135
});
136136

137137
registerArduinoCommand("arduino.initialize", async () => await deviceContext.initialize());
@@ -151,7 +151,7 @@ export async function activate(context: vscode.ExtensionContext) {
151151
delete status.compile;
152152
}
153153
}, () => {
154-
return { board: ArduinoContext.boardManager.currentBoard.name };
154+
return { board: (ArduinoContext.boardManager.currentBoard === null) ? null : ArduinoContext.boardManager.currentBoard.name };
155155
});
156156

157157
registerArduinoCommand("arduino.upload", async () => {
@@ -216,7 +216,7 @@ export async function activate(context: vscode.ExtensionContext) {
216216
delete status.compile;
217217
}
218218
}, () => {
219-
return { board: ArduinoContext.boardManager.currentBoard.name };
219+
return { board: (ArduinoContext.boardManager.currentBoard === null) ? null : ArduinoContext.boardManager.currentBoard.name };
220220
});
221221

222222
registerArduinoCommand("arduino.addLibPath", (path) => ArduinoContext.arduinoApp.addLibPath(path));

0 commit comments

Comments
 (0)
This repository has been archived.