@appland/appmap 3.29.1 → 3.29.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/built/appmap.html +1 -1
- package/built/cmds/open/showAppMap.js +10 -17
- package/built/cmds/open/showAppMap.js.map +1 -1
- package/built/main.js.map +1 -1
- package/package.json +3 -3
|
@@ -15,26 +15,19 @@ const Openers = [
|
|
|
15
15
|
];
|
|
16
16
|
async function showAppMap(appMapFile) {
|
|
17
17
|
const termProgram = process.env.TERM_PROGRAM;
|
|
18
|
-
if (process.platform === 'darwin') {
|
|
19
|
-
|
|
20
|
-
(0, child_process_1.spawn)('code', [(0, openers_1.abspath)(appMapFile)]);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
18
|
+
if (process.platform === 'darwin' && termProgram === 'vscode') {
|
|
19
|
+
(0, child_process_1.spawn)('code', [(0, openers_1.abspath)(appMapFile)]);
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
else {
|
|
22
|
+
await (0, openers_1.openInBrowser)(appMapFile);
|
|
23
|
+
}
|
|
24
|
+
const { action } = await userInteraction_1.default.prompt({
|
|
26
25
|
type: 'list',
|
|
27
|
-
name: '
|
|
28
|
-
message: '
|
|
29
|
-
choices:
|
|
26
|
+
name: 'action',
|
|
27
|
+
message: 'What would you like to do next:',
|
|
28
|
+
choices: [`Reopen ${appMapFile}`, 'Exit']
|
|
30
29
|
});
|
|
31
|
-
|
|
32
|
-
if (opener) {
|
|
33
|
-
console.log();
|
|
34
|
-
console.log(`Click this link to open the AppMap in ${outputTool}:`);
|
|
35
|
-
console.log();
|
|
36
|
-
await opener.fn(appMapFile, opener.toolId);
|
|
37
|
-
console.log();
|
|
30
|
+
if (action.startsWith('Reopen')) {
|
|
38
31
|
await showAppMap(appMapFile);
|
|
39
32
|
}
|
|
40
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showAppMap.js","sourceRoot":"","sources":["../../../src/cmds/open/showAppMap.ts"],"names":[],"mappings":";;;;;AAAA,iDAAsC;AACtC,yEAAoC;AACpC,uCAA6E;AAQ7E,MAAM,OAAO,GAAa;IACxB,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,uBAAa,EAAE;IAC1C,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,sBAAY,EAAE;IACrC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,oBAAU,EAAE;IACpD,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,oBAAU,EAAE;IACtD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,oBAAU,EAAE;CACvD,CAAC;AAEa,KAAK,UAAU,UAAU,CAAC,UAAkB;IACzD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC7C,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"showAppMap.js","sourceRoot":"","sources":["../../../src/cmds/open/showAppMap.ts"],"names":[],"mappings":";;;;;AAAA,iDAAsC;AACtC,yEAAoC;AACpC,uCAA6E;AAQ7E,MAAM,OAAO,GAAa;IACxB,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,uBAAa,EAAE;IAC1C,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,sBAAY,EAAE;IACrC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,oBAAU,EAAE;IACpD,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,oBAAU,EAAE;IACtD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,oBAAU,EAAE;CACvD,CAAC;AAEa,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