@filipc77/cowrite 0.6.8 → 0.6.9
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/dist/bin/cowrite.js +1 -1
- package/package.json +1 -1
- package/ui/modules/toolbar.js +4 -0
package/dist/bin/cowrite.js
CHANGED
|
@@ -1104,7 +1104,7 @@ function createPreviewServer(store, projectDir, port, initialFile) {
|
|
|
1104
1104
|
// bin/cowrite.ts
|
|
1105
1105
|
import updateNotifier from "update-notifier";
|
|
1106
1106
|
import "module";
|
|
1107
|
-
var version = true ? "0.6.
|
|
1107
|
+
var version = true ? "0.6.9" : createRequire(import.meta.url)("../package.json").version;
|
|
1108
1108
|
var USAGE = `
|
|
1109
1109
|
cowrite \u2014 Live commenting plugin for coding agent sessions
|
|
1110
1110
|
|
package/package.json
CHANGED
package/ui/modules/toolbar.js
CHANGED
|
@@ -209,6 +209,10 @@ function submitComment() {
|
|
|
209
209
|
export function showToolbarForSelection(editor) {
|
|
210
210
|
const { from, to } = editor.state.selection;
|
|
211
211
|
if (from === to) {
|
|
212
|
+
// Don't clear selectionInfo while the comment popup is open —
|
|
213
|
+
// focus moving to the textarea collapses ProseMirror's selection,
|
|
214
|
+
// but submitComment still needs the original selectionInfo.
|
|
215
|
+
if (!popup.hidden) return;
|
|
212
216
|
hideTrigger();
|
|
213
217
|
return;
|
|
214
218
|
}
|