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

Workaround for internal change with workspace.findfiles #467

Merged
merged 1 commit into from
Mar 6, 2018
Merged
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
16 changes: 16 additions & 0 deletions src/deviceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ export class DeviceContext implements IDeviceContext, vscode.Disposable {
this._debugger = null;
this._onDidChange.fire();
}
return this;
}, (reason) => {
// Workaround for change in API.
// vscode.workspace.findFiles() for some reason now throws an error ehn path does not exist
// vscode.window.showErrorMessage(reason.toString());
// Logger.notifyUserError("arduinoFileUnhandleError", new Error(reason.toString()));

// Workaround for change in API, populate required props for arduino.json
this._port = null;
this._board = null;
this._sketch = null;
this._configuration = null;
this._output = null;
this._debugger = null;
this._onDidChange.fire();

return this;
});
}
Expand Down