Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions build/api-docs-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,34 @@ async function generateMarkdown(file, relativePath) {

const modifiedContent = modifyJs(content, fileName);

// Generate markdown using jsdoc-to-markdown as a library
const markdownContent = await jsdoc2md.render({ source: modifiedContent });
// Generate markdown using jsdoc-to-markdown as a library. jsdoc-api spawns
// a child `jsdoc` process per call; under our BATCH_SIZE parallelism the
// child occasionally produces truncated/empty stdout (manifesting as
// "Unexpected end of JSON input"/"Unterminated string in JSON"). Retry
// serially so a single transient failure doesn't abort the whole batch.
let markdownContent;
let lastErr;
for (let attempt = 0; attempt < 3; attempt++) {
try {
markdownContent = await jsdoc2md.render({ source: modifiedContent });
lastErr = undefined;
break;
} catch (err) {
lastErr = err;
const causeMsg = err && err.cause && err.cause.message
? err.cause.message
: '';
const transient = /Unexpected end of JSON input|Unterminated string in JSON|Jsdoc failed/.test(
(err && err.message) || ''
) || /JSON/.test(causeMsg);
if (!transient) break;
await new Promise(r => setTimeout(r, 200 * (attempt + 1)));
}
}
if (lastErr) {
lastErr.message = `[${file}] ${lastErr.message}`;
throw lastErr;
}
const newContent = normalizeLineEndings(
modifyMarkdown(markdownContent, path.join(relativePath, fileName))
);
Expand Down
2 changes: 1 addition & 1 deletion docs/API-Reference/view/WorkspaceManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The panel's size & visibility are automatically saved & restored as a view-state
| $panel | <code>jQueryObject</code> | DOM content to use as the panel. Need not be in the document yet. Must have an id attribute, for use as a preferences key. |
| [minSize] | <code>number</code> | @deprecated No longer used. Pass `undefined`. |
| [title] | <code>string</code> | Display title shown in the bottom panel tab bar. |
| [options] | <code>Object</code> | Optional settings: - {string} iconSvg Path to an SVG icon for the panel tab (e.g. "styles/images/icon.svg"). If omitted, a generic default icon is used. |
| [options] | <code>Object</code> | Optional settings: - `iconSvg` (string): Path to an SVG icon for the panel tab (e.g. "styles/images/icon.svg"). If omitted, a generic default icon is used. |

<a name="module_view/WorkspaceManager..destroyBottomPanel"></a>

Expand Down
1 change: 1 addition & 0 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2188,6 +2188,7 @@ define({
"AI_CHAT_CLAUDE_LOGIN_TITLE": "Setup Claude Code",
"AI_CHAT_CLAUDE_LOGIN_MSG": "Claude Code is installed but needs to be configured.",
"AI_CHAT_CLAUDE_LOGIN_BTN": "Setup Claude Code",
"AI_CHAT_CLAUDE_LOGIN_RESTART_NOTE": "Restart {APP_NAME} after configuration completes.",
"AI_CHAT_ADD_PROVIDER_BTN": "Add Custom Provider",
"AI_CHAT_SETUP_NEED_HELP": "Need Help?",
"AI_CHAT_SETUP_LEARN_MORE": "Learn More",
Expand Down
2 changes: 1 addition & 1 deletion src/view/WorkspaceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ define(function (require, exports, module) {
* @param {number=} minSize @deprecated No longer used. Pass `undefined`.
* @param {string=} title Display title shown in the bottom panel tab bar.
* @param {Object=} options Optional settings:
* - {string} iconSvg Path to an SVG icon for the panel tab (e.g. "styles/images/icon.svg").
* - `iconSvg` (string): Path to an SVG icon for the panel tab (e.g. "styles/images/icon.svg").
* If omitted, a generic default icon is used.
* @return {!Panel}
*/
Expand Down
2 changes: 1 addition & 1 deletion tracking-repos.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"phoenixPro": {
"commitID": "70c526ad1357d7913f637db242122a1ac27a9aa7"
"commitID": "1676588c58e69ad56b76b81b07f9021123d2c210"
}
}
Loading