@lvce-editor/editor-worker 16.5.0 → 16.6.0
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/editorWorkerMain.js +5 -5
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1299,9 +1299,6 @@ const {
|
|
|
1299
1299
|
invoke: invoke$b,
|
|
1300
1300
|
set: set$a
|
|
1301
1301
|
} = create$9(rpcId$1);
|
|
1302
|
-
const openUrl = async url => {
|
|
1303
|
-
return invoke$b('Open.openUrl', url);
|
|
1304
|
-
};
|
|
1305
1302
|
|
|
1306
1303
|
const {
|
|
1307
1304
|
set: set$9
|
|
@@ -5533,12 +5530,15 @@ const setPosition$1 = position => {
|
|
|
5533
5530
|
|
|
5534
5531
|
const openExternal = async (url, platform) => {
|
|
5535
5532
|
// @ts-ignore
|
|
5536
|
-
await openUrl
|
|
5533
|
+
await invoke$b('Open.openUrl', url, platform);
|
|
5537
5534
|
};
|
|
5538
5535
|
|
|
5539
5536
|
// TODO first change cursor position, then run go to definition
|
|
5540
5537
|
// cursor should appear at mousedown position immediately
|
|
5541
5538
|
const handleSingleClickWithAlt = async (editor, position) => {
|
|
5539
|
+
const {
|
|
5540
|
+
platform
|
|
5541
|
+
} = editor;
|
|
5542
5542
|
const {
|
|
5543
5543
|
columnIndex,
|
|
5544
5544
|
rowIndex
|
|
@@ -5549,7 +5549,7 @@ const handleSingleClickWithAlt = async (editor, position) => {
|
|
|
5549
5549
|
const url = getUrlAtOffset(editor, offset);
|
|
5550
5550
|
if (url) {
|
|
5551
5551
|
// Open the link
|
|
5552
|
-
await openExternal(url);
|
|
5552
|
+
await openExternal(url, platform);
|
|
5553
5553
|
return editor;
|
|
5554
5554
|
}
|
|
5555
5555
|
|