0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-19 06:24:35 +01:00
gitea/web_src/js/features
silverwind bed563e574
Improve JSX/TSX support in code editor (#32833)
Two tweaks to Monaco to improve JSX/TSX support.

1. Certain language features like JSX/TSX only work when passing `uri`
(containing the filename), do this.
2. Set the `jsx` compiler option to avoid error annotations

Before:
<img width="441" alt="Screenshot 2024-12-13 at 15 11 33"
src="https://github.com/user-attachments/assets/dac245a7-e80f-4249-8e09-13124b03d12a"
/>

After:
<img width="441" alt="Screenshot 2024-12-13 at 15 10 46"
src="https://github.com/user-attachments/assets/726ad712-d116-438d-88da-bc40534b6860"
/>
2024-12-14 03:10:20 +00:00
..
admin
comp
autofocus-end.ts
captcha.ts
citation.ts
clipboard.ts
code-frequency.ts
codeeditor.ts Improve JSX/TSX support in code editor (#32833) 2024-12-14 03:10:20 +00:00
colorpicker.ts
common-button.ts
common-fetch-action.ts
common-form.ts
common-issue-list.test.ts
common-issue-list.ts
common-organization.ts
common-page.ts
contextpopup.ts
contributors.ts
copycontent.ts
dropzone.ts
emoji.ts
eventsource.sharedworker.ts
file-fold.ts
heatmap.ts
imagediff.ts
install.ts
issue.ts
notification.ts
oauth2-settings.ts
org-team.ts
pull-view-file.ts
recent-commits.ts
repo-branch.ts
repo-code.test.ts
repo-code.ts
repo-commit.ts
repo-common.ts
repo-diff-commit.ts
repo-diff-commitselect.ts
repo-diff-filetree.ts
repo-diff.ts
repo-editor.ts
repo-findfile.test.ts
repo-findfile.ts
repo-graph.ts
repo-home.ts
repo-issue-content.ts
repo-issue-edit.ts
repo-issue-list.ts
repo-issue-pr-form.ts
repo-issue-pr-status.ts
repo-issue-sidebar-combolist.ts
repo-issue-sidebar.md
repo-issue-sidebar.ts
repo-issue.ts
repo-legacy.ts
repo-migrate.ts
repo-migration.ts
repo-milestone.ts
repo-new.ts
repo-projects.ts
repo-release.ts
repo-search.ts
repo-settings-branches.test.ts
repo-settings-branches.ts
repo-settings.ts
repo-template.ts
repo-unicode-escape.ts
repo-wiki.ts
scoped-access-token.ts
sshkey-helper.ts
stopwatch.ts
tablesort.ts
tribute.ts
user-auth-webauthn.ts
user-auth.ts
user-settings.ts