Skip to content

Commit a1b80bd

Browse files
committed
Putting in suggestions from PR
1 parent 25b1b3f commit a1b80bd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/editor/editor.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ export class Editor {
201201
break;
202202
case commonStorage.MODULE_TYPE_OPMODE:
203203
/*
204-
const robotBlocks = commonStorage.extractExportedBlocks(
205-
this.currentModule.projectName, this.projectContent);
204+
* TODO: When editing an opmode, we'll need to have blocks for all the methods that a robot has.
205+
* Not sure what this will be replaced with, but it will need something.
206+
* const robotBlocks = commonStorage.extractExportedBlocks(
207+
* this.currentModule.projectName, this.projectContent);
206208
*/
207209
this.setToolbox(toolboxOpmode.getToolboxJSON(shownPythonToolboxCategories));
208210
break;

src/toolbox/robotpy_toolbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function recursivelyRemoveEmptyCategories(contents: toolboxItems.ContentsType[])
178178
}
179179
}
180180
}
181+
181182
function filterRobotPyCategories(
182183
contents: toolboxItems.ContentsType[], shownPythonToolboxCategories: Set<string> | null) {
183184
contents.forEach((item) => {

src/toolbox/toolbox_opmode.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
]
1414
};
1515
}
16-
16+
/** TODO:
17+
* The opmode will need to have blocks for all the methods that are in the
18+
* robot. This commented out code will have to be reworked in the future to
19+
* do this.
20+
*/
1721
/*if (opt_robotBlocks.length) {
1822
contents.push.apply(
1923
contents,

0 commit comments

Comments
 (0)