@lvce-editor/extension-host-worker 5.10.0 → 5.12.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.
|
@@ -754,7 +754,7 @@ const setConfigurations = preferences => {
|
|
|
754
754
|
};
|
|
755
755
|
|
|
756
756
|
const rpcs$2 = Object.create(null);
|
|
757
|
-
const set$
|
|
757
|
+
const set$g = (id, rpc) => {
|
|
758
758
|
rpcs$2[id] = rpc;
|
|
759
759
|
};
|
|
760
760
|
const get$a = id => {
|
|
@@ -778,7 +778,7 @@ const create$c = rpcId => {
|
|
|
778
778
|
return rpc.invokeAndTransfer(method, ...params);
|
|
779
779
|
},
|
|
780
780
|
set(rpc) {
|
|
781
|
-
set$
|
|
781
|
+
set$g(rpcId, rpc);
|
|
782
782
|
},
|
|
783
783
|
async dispose() {
|
|
784
784
|
const rpc = get$a(rpcId);
|
|
@@ -788,10 +788,10 @@ const create$c = rpcId => {
|
|
|
788
788
|
};
|
|
789
789
|
const DebugWorker$1 = 55;
|
|
790
790
|
const {
|
|
791
|
-
invoke: invoke$
|
|
791
|
+
invoke: invoke$d} = create$c(DebugWorker$1);
|
|
792
792
|
const DebugWorker = {
|
|
793
793
|
__proto__: null,
|
|
794
|
-
invoke: invoke$
|
|
794
|
+
invoke: invoke$d};
|
|
795
795
|
|
|
796
796
|
const {
|
|
797
797
|
invoke: invoke$3
|
|
@@ -914,6 +914,14 @@ const getScripts = async protocol => {
|
|
|
914
914
|
throw new VError(error, 'Failed to execute debug provider');
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
|
+
const getPausedStatus = async protocol => {
|
|
918
|
+
try {
|
|
919
|
+
const provider = getDebugProvider(protocol);
|
|
920
|
+
return await provider.getStatus();
|
|
921
|
+
} catch (error) {
|
|
922
|
+
throw new VError(error, 'Failed to execute debug provider');
|
|
923
|
+
}
|
|
924
|
+
};
|
|
917
925
|
const stepInto = async protocol => {
|
|
918
926
|
try {
|
|
919
927
|
const provider = getDebugProvider(protocol);
|
|
@@ -4884,6 +4892,10 @@ const renameFile = (oldUri, newUri) => {
|
|
|
4884
4892
|
writeFile(newUri, content);
|
|
4885
4893
|
remove(oldUri);
|
|
4886
4894
|
};
|
|
4895
|
+
const copy = (oldUri, newUri) => {
|
|
4896
|
+
const content = readFile(oldUri);
|
|
4897
|
+
writeFile(newUri, content);
|
|
4898
|
+
};
|
|
4887
4899
|
const renameDirectory = (oldUri, newUri) => {
|
|
4888
4900
|
if (!oldUri.endsWith(Slash)) {
|
|
4889
4901
|
oldUri += Slash;
|
|
@@ -5116,7 +5128,7 @@ const handleMessagePort2 = async (port, rpcId) => {
|
|
|
5116
5128
|
commandMap: {}
|
|
5117
5129
|
});
|
|
5118
5130
|
if (rpcId) {
|
|
5119
|
-
set$
|
|
5131
|
+
set$g(rpcId, rpc);
|
|
5120
5132
|
}
|
|
5121
5133
|
};
|
|
5122
5134
|
|
|
@@ -5126,7 +5138,7 @@ const handleMessagePort = async (port, rpcId) => {
|
|
|
5126
5138
|
commandMap: {}
|
|
5127
5139
|
});
|
|
5128
5140
|
if (rpcId) {
|
|
5129
|
-
set$
|
|
5141
|
+
set$g(rpcId, rpc);
|
|
5130
5142
|
}
|
|
5131
5143
|
};
|
|
5132
5144
|
|
|
@@ -5706,6 +5718,7 @@ const commandMap = {
|
|
|
5706
5718
|
'ExtensionHostDebug.getCallStack': getCallStack,
|
|
5707
5719
|
'ExtensionHostDebug.getScopeChain': getScopeChain,
|
|
5708
5720
|
'ExtensionHostDebug.getScripts': getScripts,
|
|
5721
|
+
'ExtensionHostDebug.getPausedStatus': getPausedStatus,
|
|
5709
5722
|
'ExtensionHostRename.executeprepareRenameProvider': executeprepareRenameProvider,
|
|
5710
5723
|
'ExtensionHostRename.executeRenameProvider': executeRenameProvider,
|
|
5711
5724
|
'ExtensionHostWebView.create': createWebView,
|
|
@@ -5731,6 +5744,7 @@ const commandMap = {
|
|
|
5731
5744
|
'FileSystemMemory.readDirWithFileTypes': readDirWithFileTypes,
|
|
5732
5745
|
'FileSystemMemory.readFile': readFile,
|
|
5733
5746
|
'FileSystemMemory.rename': rename,
|
|
5747
|
+
'FileSystemMemory.copy': copy,
|
|
5734
5748
|
'FileSystemMemory.remove': remove,
|
|
5735
5749
|
'FileSystemMemory.writeFile': writeFile,
|
|
5736
5750
|
'HandleBeforeUnload.handleBeforeUnload': handleBeforeUnload,
|
|
@@ -5807,7 +5821,7 @@ const listen = async () => {
|
|
|
5807
5821
|
const rpc = await WebWorkerRpcClient.create({
|
|
5808
5822
|
commandMap: commandMap
|
|
5809
5823
|
});
|
|
5810
|
-
set$
|
|
5824
|
+
set$g(RendererWorker, rpc);
|
|
5811
5825
|
};
|
|
5812
5826
|
|
|
5813
5827
|
const main = async () => {
|