@lvce-editor/editor-worker 7.13.0 → 7.14.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 +16 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -8549,9 +8549,22 @@ const getKeyBindings = () => {
|
|
|
8549
8549
|
}];
|
|
8550
8550
|
};
|
|
8551
8551
|
|
|
8552
|
+
const getDiagnostics = editor => {
|
|
8553
|
+
return executeDiagnosticProvider(editor);
|
|
8554
|
+
};
|
|
8552
8555
|
const getProblems = async () => {
|
|
8553
|
-
// TODO
|
|
8554
|
-
|
|
8556
|
+
// TODO maybe combine querying diagnostics for problems view with diagnostics for editor
|
|
8557
|
+
// or query the diagnostics for the problems view directtly from the extension host worker
|
|
8558
|
+
const keys = getKeys();
|
|
8559
|
+
const editors = keys.map(key => {
|
|
8560
|
+
const numericKey = parseInt(key);
|
|
8561
|
+
const editor = get$4(numericKey);
|
|
8562
|
+
return editor;
|
|
8563
|
+
});
|
|
8564
|
+
const newEditors = editors.map(editor => editor.newState);
|
|
8565
|
+
const diagnostics = await Promise.all(newEditors.map(getDiagnostics));
|
|
8566
|
+
const flatDiagnostics = diagnostics.flat();
|
|
8567
|
+
return flatDiagnostics;
|
|
8555
8568
|
};
|
|
8556
8569
|
|
|
8557
8570
|
const getQuickPickMenuEntries = () => {
|
|
@@ -8687,6 +8700,7 @@ const createExtensionHostRpc = async () => {
|
|
|
8687
8700
|
port2
|
|
8688
8701
|
} = getPortTuple();
|
|
8689
8702
|
const initialCommand = 'HandleMessagePort.handleMessagePort2';
|
|
8703
|
+
// TODO use transfer rpc
|
|
8690
8704
|
await sendMessagePortToExtensionHostWorker2(port2, initialCommand, RpcId.EditorWorker);
|
|
8691
8705
|
const rpc = await PlainMessagePortRpcParent.create({
|
|
8692
8706
|
commandMap: {},
|