Skip to content

Commit 138aed0

Browse files
Fix save retry loop, punctuation typo, and missing EOF newlines
- Fix setTimeout in saveFileContents retry to use arrow function instead of immediately invoking the function (caused tight retry loop) - Fix --puctuation-color typo to --punctuation-color in _themes.scss - Add missing trailing newlines to layout.js, _base.scss, dialogs.js
1 parent 1c82caa commit 138aed0

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

js/common/dialogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,4 @@ export {
446446
ProgressDialog,
447447
DeviceInfoModal,
448448
InputModal
449-
};
449+
};

js/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ fixViewportHeight();
270270
window.addEventListener("resize", fixViewportHeight);
271271
loadPanelSettings();
272272
setupPanelFocusHandlers();
273-
setActivePanel(editorPage);
273+
setActivePanel(editorPage);

js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ async function saveFileContents(path) {
512512
saveRetryCount++;
513513
if (saveRetryCount < MAX_SAVE_RETRIES) {
514514
console.log(`Save retry ${saveRetryCount} of ${MAX_SAVE_RETRIES}...`);
515-
currentTimeout = setTimeout(await saveFileContents(path), 2000);
515+
currentTimeout = setTimeout(() => saveFileContents(path), 2000);
516516
} else {
517517
saveRetryCount = 0;
518518
await showMessage(`Saving file '${workflow.currentFilename}' failed after multiple attempts. Check your connection and try again.`);

sass/base/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ h5 {
107107
}
108108
}
109109
}
110-
}
110+
}

sass/layout/_themes.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--plotter-background: #777;
88
--border-style: none;
99
--terminal-text-color: #ddd;
10-
--puctuation-color: #fff;
10+
--punctuation-color: #fff;
1111
--operator-color: #f3f3f3;
1212
--gutter-color: #292a2b;
1313
--gutter-active-line-color: #222227;
@@ -23,7 +23,7 @@
2323
--plotter-background: #ccc;
2424
--border-style: 1px solid #{$gray-border};
2525
--terminal-text-color: #333;
26-
--puctuation-color: #000;
26+
--punctuation-color: #000;
2727
--gutter-color: #ddd;
2828
--gutter-active-line-color: #ccc;
2929
--gutter-text-color: #222;
@@ -155,7 +155,7 @@
155155
}
156156

157157
.tok-punctuation {
158-
color: var(--puctuation-color);
158+
color: var(--punctuation-color);
159159
}
160160

161161
.tok-number {

0 commit comments

Comments
 (0)