MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doOpenProfile

Method doOpenProfile

tools/xsbug/main.js:414–425  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

412 }
413 }
414 doOpenProfile(path) {
415 let profile;
416 try {
417 profile = new Profile(null, path);
418 this.profiles.push(profile);
419 this.profiles.sort((a, b) => a.name.localeCompare(b.name));
420 application.distribute("onProfilesChanged");
421 }
422 catch(e) {
423 }
424 return profile;
425 }
426 doCloseDirectory(path) {
427 let items = this.homes.items;
428 let index = items.findIndex(item => item.path == path);

Callers 1

doOpenFileCallbackMethod · 0.95

Calls 2

distributeMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected