Skip to content

Commit 7fdbec5

Browse files
committed
Removed _convertValueTypeToModuleType.
Added note in the README that existing workspaces are no longer supported.
1 parent 8bca763 commit 7fdbec5

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ WARNING! This is not ready for use and is under heavy development of basic featu
1919
5. Workspace can have blocks
2020
6. No Robot workspace yet
2121
7. No Mechanism workspace yet
22-
8. Something weird is going on with currentModule getting unset
22+
8. Something weird is going on with currentModule getting unset. This was likely fixed by PR #45!
23+
9. Since we renamed workspaces to projects, existing Workspaces are no longer supported. They can be deleted via the browser's Developer Tools - Application tab.

src/storage/client_side_storage.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function listModules(callback: ModulesCallback): void {
167167
if (cursor) {
168168
const value = cursor.value;
169169
const path = value.path;
170-
const moduleType = _convertValueTypeToModuleType(value.type);
170+
const moduleType = value.type;
171171
const module: commonStorage.Module = {
172172
modulePath: path,
173173
moduleType: moduleType,
@@ -240,14 +240,6 @@ export function listModules(callback: ModulesCallback): void {
240240
};
241241
}
242242

243-
function _convertValueTypeToModuleType(valueType: string): string {
244-
// The module type for a project used to be 'workspace'.
245-
if (valueType === 'workspace') {
246-
return commonStorage.MODULE_TYPE_PROJECT;
247-
}
248-
return valueType;
249-
}
250-
251243
export function fetchModuleContent(
252244
modulePath: string,
253245
callback : (content: string | null, error: string) => void): void {
@@ -382,7 +374,7 @@ function _renameOrCopyProject(
382374
if (cursor) {
383375
const value = cursor.value;
384376
const path = value.path;
385-
const moduleType = _convertValueTypeToModuleType(value.type);
377+
const moduleType = value.type;
386378
if (commonStorage.getProjectName(path) === oldProjectName) {
387379
let newPath;
388380
if (moduleType === commonStorage.MODULE_TYPE_PROJECT) {

0 commit comments

Comments
 (0)