@lvce-editor/extension-management-worker 4.83.3 → 4.84.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.
|
@@ -3943,14 +3943,20 @@ const executeExtensionDiagnosticProvider = async (rpc, extension, textDocument,
|
|
|
3943
3943
|
const executeMatchingDiagnosticProvider = async (extension, textDocument, args, assetDir, platform, resultPort, providerIndex) => {
|
|
3944
3944
|
const providerId = extension.id ?? extension.uri ?? extension.path ?? String(providerIndex);
|
|
3945
3945
|
let diagnostics = [];
|
|
3946
|
+
let providerError;
|
|
3946
3947
|
try {
|
|
3947
3948
|
const rpc = await getRpc$1(extension, assetDir, platform, `onDiagnostic:${textDocument.languageId}`);
|
|
3948
3949
|
diagnostics = await executeExtensionDiagnosticProvider(rpc, extension, textDocument, args);
|
|
3949
|
-
} catch {
|
|
3950
|
-
//
|
|
3950
|
+
} catch (error) {
|
|
3951
|
+
// Preserve failure information for callers waiting for a successful diagnostics pass.
|
|
3952
|
+
// Other providers still deliver their results.
|
|
3953
|
+
providerError = error instanceof Error ? error.message : String(error);
|
|
3951
3954
|
}
|
|
3952
3955
|
resultPort?.postMessage({
|
|
3953
3956
|
diagnostics,
|
|
3957
|
+
...(providerError !== undefined && {
|
|
3958
|
+
error: providerError
|
|
3959
|
+
}),
|
|
3954
3960
|
providerId,
|
|
3955
3961
|
providerIndex,
|
|
3956
3962
|
type: 'result'
|