InvokeAI/invokeai
psychedelicious 4308d593c3 fix(ui): improve IDE TS performance by not resolving JSON
The TS Language Server slows down immensely with our translation JSON, which is used to provide kinda-type-safe translation keys. I say "kinda", because you don't get autocomplete - you only get red squigglies when the key is incorrect.

To improve the performance, we can opt out of this process entirely, at the cost of no red squigglies for translation keys. Hopefully we can resolve this in the future.

It's not clear why this became an issue only recently (like past couple weeks). We've tried rolling back the app dependencies, VSCode extensions, VSCode itself, and the TS version to before the time when the issue started, but nothing seems to improve the performance.

1. Disable `resolveJsonModule` in `tsconfig.json`
2. Ignore TS in `i18n.ts` when importing the JSON
3. Comment out the custom types in `i18.d.ts` entirely

It's possible that only `3` is needed to fix the issue.

I've tested building the app and running the build - it works fine, and translation works fine.
2023-06-28 23:55:44 -04:00
..
app Merge branch 'main' into feat/lora_model_patch 2023-06-28 22:43:58 +03:00
assets Various fixes 2023-01-30 18:42:17 -05:00
backend Merge branch 'main' into feat/lora_model_patch 2023-06-28 22:43:58 +03:00
configs rename ModelType.Pipeline to ModelType.Main 2023-06-24 11:45:49 -04:00
frontend fix(ui): improve IDE TS performance by not resolving JSON 2023-06-28 23:55:44 -04:00
version move static into invokeai.frontend.web directory for dist install 2023-05-22 16:48:17 -04:00
__init__.py Various fixes 2023-01-30 18:42:17 -05:00
README CODEOWNERS coarse draft 2023-03-03 14:36:43 -05:00

Organization of the source tree:

app -- Home of nodes invocations and services
assets -- Images and other data files used by InvokeAI
backend -- Non-user facing libraries, including the rendering
	core.
configs -- Configuration files used at install and run times
frontend -- User-facing scripts, including the CLI and the WebUI
version -- Current InvokeAI version string, stored
	in version/invokeai_version.py