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

Commit dc4f3d7

Browse files
authored
Merge pull request #467 from keyoke/master
Workaround for internal change with workspace.findfiles
2 parents 0122379 + 184fb03 commit dc4f3d7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/deviceContext.ts

+16
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,22 @@ export class DeviceContext implements IDeviceContext, vscode.Disposable {
148148
this._debugger = null;
149149
this._onDidChange.fire();
150150
}
151+
return this;
152+
}, (reason) => {
153+
// Workaround for change in API.
154+
// vscode.workspace.findFiles() for some reason now throws an error ehn path does not exist
155+
// vscode.window.showErrorMessage(reason.toString());
156+
// Logger.notifyUserError("arduinoFileUnhandleError", new Error(reason.toString()));
157+
158+
// Workaround for change in API, populate required props for arduino.json
159+
this._port = null;
160+
this._board = null;
161+
this._sketch = null;
162+
this._configuration = null;
163+
this._output = null;
164+
this._debugger = null;
165+
this._onDidChange.fire();
166+
151167
return this;
152168
});
153169
}

0 commit comments

Comments
 (0)