Skip to content

Commit

Permalink
Relax boot_out.txt requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
joedevivo committed Apr 6, 2021
1 parent 653fc2f commit 55fb846
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/librarymanager/libraryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ export class LibraryManager implements vscode.Disposable {
this.workspaceLibraries = await this.loadLibraryMetadata(this.projectLibDir);

this.cpVersion = this.getProjectCPVer();
let v: string[] = this.cpVersion.split(".");
if(LibraryManager.BUNDLE_SUFFIXES.includes(`${v[0]}.x-mpy`)) {
this.mpySuffix = `${v[0]}.x-mpy`;
if(this.cpVersion){
let v: string[] = this.cpVersion.split(".");
if(LibraryManager.BUNDLE_SUFFIXES.includes(`${v[0]}.x-mpy`)) {
this.mpySuffix = `${v[0]}.x-mpy`;
}
}
}

Expand Down Expand Up @@ -210,6 +212,9 @@ export class LibraryManager implements vscode.Disposable {
}
}
});
if(!root) {
root = vscode.workspace.workspaceFolders[0].uri.fsPath;
}
return root;
}
// Find it boot_out, so put boot_out.txt in your project root if you want this.
Expand Down

0 comments on commit 55fb846

Please sign in to comment.