@assistkick/create 1.17.0 → 1.18.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/package.json
CHANGED
|
@@ -340,6 +340,19 @@ export const FilesView = ({ projectId }: FilesViewProps) => {
|
|
|
340
340
|
activeTabPathRef.current = activeTabPath;
|
|
341
341
|
|
|
342
342
|
const handleEditorMount: OnMount = useCallback((editor, monaco) => {
|
|
343
|
+
// Disable TypeScript/JavaScript semantic and suggestion diagnostics —
|
|
344
|
+
// Monaco can't resolve project modules (node_modules, path aliases) so
|
|
345
|
+
// these just produce noise. Syntax highlighting still works.
|
|
346
|
+
for (const lang of ['typescript', 'javascript']) {
|
|
347
|
+
const defaults = lang === 'typescript'
|
|
348
|
+
? monaco.languages.typescript.typescriptDefaults
|
|
349
|
+
: monaco.languages.typescript.javascriptDefaults;
|
|
350
|
+
defaults.setDiagnosticsOptions({
|
|
351
|
+
noSemanticValidation: true,
|
|
352
|
+
noSuggestionDiagnostics: true,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
343
356
|
// Intercept Ctrl/Cmd+S to trigger immediate save
|
|
344
357
|
editor.addAction({
|
|
345
358
|
id: 'auto-save-now',
|