@lvce-editor/extension-host-worker 5.18.0 → 5.19.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.
|
@@ -2518,7 +2518,8 @@ const createNodeRpc = async ({
|
|
|
2518
2518
|
};
|
|
2519
2519
|
|
|
2520
2520
|
const send = async port => {
|
|
2521
|
-
|
|
2521
|
+
const initialCommand = 'FileSystem.handleMessagePort';
|
|
2522
|
+
await invokeAndTransfer$2('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, initialCommand);
|
|
2522
2523
|
};
|
|
2523
2524
|
const launchFileSystemProcess = async () => {
|
|
2524
2525
|
const rpc = await TransferMessagePortRpcParent.create({
|
|
@@ -2541,9 +2542,16 @@ const append = async (uri, content) => {
|
|
|
2541
2542
|
};
|
|
2542
2543
|
|
|
2543
2544
|
const providers = Object.create(null);
|
|
2545
|
+
const getOutputFilePath = id => {
|
|
2546
|
+
const outputFolderPath = 'file:///tmp';
|
|
2547
|
+
const uri = `${outputFolderPath}/${id}.txt`;
|
|
2548
|
+
return uri;
|
|
2549
|
+
};
|
|
2544
2550
|
const registerOutputChannel = provider => {
|
|
2545
|
-
|
|
2546
|
-
|
|
2551
|
+
const uri = getOutputFilePath(provider.id);
|
|
2552
|
+
providers[provider.id] = {
|
|
2553
|
+
...provider
|
|
2554
|
+
};
|
|
2547
2555
|
return {
|
|
2548
2556
|
async append(text) {
|
|
2549
2557
|
await append(uri, text);
|
|
@@ -2559,7 +2567,8 @@ const getEnabledProviders = () => {
|
|
|
2559
2567
|
for (const provider of values) {
|
|
2560
2568
|
enabledProviders.push({
|
|
2561
2569
|
id: provider.id,
|
|
2562
|
-
label: provider.label
|
|
2570
|
+
label: provider.label,
|
|
2571
|
+
uri: provider.uri
|
|
2563
2572
|
});
|
|
2564
2573
|
}
|
|
2565
2574
|
return enabledProviders;
|