Skip to content

Commit 44437de

Browse files
committed
deploy: 8a905e4
1 parent 5aa2b7b commit 44437de

30 files changed

Lines changed: 241 additions & 88 deletions

File tree

LiveDevelopment/LiveDevMultiBrowser.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ define(function (require, exports, module) {
102102
* @type {boolean}
103103
*/
104104
let livePreviewUrlPinned = false;
105+
let currentPreviewFilePath;
105106

106107
/**
107108
* @private
@@ -539,9 +540,10 @@ define(function (require, exports, module) {
539540
* Open a live preview on the current docuemnt.
540541
*/
541542
function open() {
542-
// TODO: need to run _onDocumentChange() after load if doc != currentDocument here? Maybe not, since activeEditorChange
543-
// doesn't trigger it, while inline editors can still cause edits in doc other than currentDoc...
544-
const doc = DocumentManager.getCurrentDocument();
543+
let doc = DocumentManager.getCurrentDocument();
544+
if(livePreviewUrlPinned){
545+
doc = DocumentManager.getDocumentForPath(currentPreviewFilePath);
546+
}
545547

546548
// wait for server (StaticServer, Base URL or file:)
547549
_prepareServer(doc)
@@ -721,8 +723,9 @@ define(function (require, exports, module) {
721723
/**
722724
* @param urlPinned {boolean}
723725
*/
724-
function setLivePreviewPinned(urlPinned) {
726+
function setLivePreviewPinned(urlPinned, currentPinnedFilePath) {
725727
livePreviewUrlPinned = urlPinned;
728+
currentPreviewFilePath = currentPinnedFilePath;
726729
}
727730

728731
/**

LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ define(function (require, exports, module) {
112112
activeFullEditor.setCursorPos(position.line, position.ch, true);
113113
}
114114
}
115-
if(liveDocPath !== activeEditorDocPath) {
115+
if(liveDocPath && liveDocPath !== activeEditorDocPath) {
116116
FileViewController.openAndSelectDocument(liveDocPath, FileViewController.PROJECT_MANAGER)
117117
.done(selectInActiveDocument);
118118
} else {

LiveDevelopment/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ define(function main(require, exports, module) {
144144
return MultiBrowserLiveDev.status === MultiBrowserLiveDev.STATUS_ACTIVE;
145145
}
146146

147-
function setLivePreviewPinned(urlPinned) {
148-
MultiBrowserLiveDev.setLivePreviewPinned(urlPinned);
147+
function setLivePreviewPinned(urlPinned, currentPinnedFilePath) {
148+
MultiBrowserLiveDev.setLivePreviewPinned(urlPinned, currentPinnedFilePath);
149149
}
150150

151151
function setLivePreviewTransportBridge(transportBridge) {

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ window.AppConfig = {
2323
"extension_store_url": "https://store.core.ai/src/",
2424
"app_notification_url": "assets/notifications/dev/",
2525
"linting.enabled_by_default": true,
26-
"build_timestamp": "2024-01-07T18:11:58.288Z",
26+
"build_timestamp": "2024-01-08T06:40:32.698Z",
2727
"googleAnalyticsID": "G-P4HJFPDB76",
2828
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
2929
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -34,7 +34,7 @@ window.AppConfig = {
3434
"bugsnagEnv": "development"
3535
},
3636
"name": "Phoenix",
37-
"version": "3.2.17-19659",
37+
"version": "3.2.17-19663",
3838
"apiVersion": "3.2.17",
3939
"homepage": "https://core.ai",
4040
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)