@effect/language-service 0.53.2 → 0.53.3
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/cli.js +14 -2
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +6 -7
- package/effect-lsp-patch-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -6104,7 +6104,10 @@ function appendMetadataRelationError(tsInstance, errorNode, source, target) {
|
|
|
6104
6104
|
function checkSourceFileWorker(tsInstance, program, sourceFile, compilerOptions, addDiagnostic) {
|
|
6105
6105
|
const pluginOptions = extractEffectLspOptions(compilerOptions);
|
|
6106
6106
|
if (!pluginOptions) return;
|
|
6107
|
-
const parsedOptions =
|
|
6107
|
+
const parsedOptions = {
|
|
6108
|
+
...parse(pluginOptions),
|
|
6109
|
+
diagnosticsName: true
|
|
6110
|
+
};
|
|
6108
6111
|
pipe(
|
|
6109
6112
|
getSemanticDiagnosticsWithCodeFixes(diagnostics, sourceFile),
|
|
6110
6113
|
nanoLayer3,
|
|
@@ -6126,12 +6129,8 @@ function checkSourceFileWorker(tsInstance, program, sourceFile, compilerOptions,
|
|
|
6126
6129
|
),
|
|
6127
6130
|
map(
|
|
6128
6131
|
map3((_) => {
|
|
6129
|
-
if (parsedOptions.reportSuggestionsAsWarningsInTsc &&
|
|
6130
|
-
return {
|
|
6131
|
-
..._,
|
|
6132
|
-
category: tsInstance.DiagnosticCategory.Warning,
|
|
6133
|
-
messageText: typeof _.messageText === "string" ? `[suggestion] ${_.messageText}` : _.messageText
|
|
6134
|
-
};
|
|
6132
|
+
if (parsedOptions.reportSuggestionsAsWarningsInTsc && _.category === tsInstance.DiagnosticCategory.Suggestion) {
|
|
6133
|
+
return { ..._, category: tsInstance.DiagnosticCategory.Message };
|
|
6135
6134
|
}
|
|
6136
6135
|
return _;
|
|
6137
6136
|
})
|