File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function recursivelyRemoveEmptyCategories(contents: toolboxItems.ContentsType[])
178178 }
179179 }
180180}
181+
181182function filterRobotPyCategories (
182183 contents : toolboxItems . ContentsType [ ] , shownPythonToolboxCategories : Set < string > | null ) {
183184 contents . forEach ( ( item ) => {
Original file line number Diff line number Diff line change 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,
You can’t perform that action at this time.
0 commit comments