Commit 91a4052
authored
New Problem View (codesandbox#1794)
With this update I move the corrections generated by the linter from the state of our editor to the global state (in case of `app` in Cerebral, in `embed` we use a variable). This way we can show the corrections of the linter in the `Problems` view, which got a small redesign as well to be more useful. In the future we might decide to also include the `corrections`/`errors` generated by VSCode, or we might move the source of truth of this state to VSCode entirely.
- [x] Moves lint errors to global state
- [x] Removes the need of `moduleId` for corrections and errors
- [x] Removes glyphs (we didn't use it)
- [x] Adds ability to open specific line of a file
1 parent 7f54ada commit 91a4052
File tree
32 files changed
+545
-293
lines changed- packages
- app/src
- app
- components
- CodeEditor
- CodeMirror
- Monaco
- VSCode
- Preview/DevTools
- Problems
- Tabs
- pages/Sandbox/Editor
- Content
- Workspace
- Files/DirectoryEntry/DirectoryChildren
- store/modules/editor
- utils
- embed/components/Content
- codesandbox-api/src/actions
- common/src
- components/Preview
- utils
- sandbox-hooks
- sse-hooks
- standalone-packages/vscode-extensions/out
- bundles
- extensions/ngryman.codesandbox-theme-0.0.1/themes
32 files changed
+545
-293
lines changedLines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
57 | 80 | | |
58 | 81 | | |
59 | 82 | | |
| |||
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
76 | 102 | | |
77 | 103 | | |
78 | 104 | | |
| |||
Lines changed: 32 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
666 | 669 | | |
667 | 670 | | |
668 | 671 | | |
| 672 | + | |
669 | 673 | | |
670 | | - | |
| 674 | + | |
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
674 | 678 | | |
675 | 679 | | |
676 | | - | |
| 680 | + | |
677 | 681 | | |
678 | 682 | | |
679 | | - | |
680 | | - | |
| 683 | + | |
| 684 | + | |
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
| |||
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| 705 | + | |
| 706 | + | |
701 | 707 | | |
702 | | - | |
| 708 | + | |
703 | 709 | | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
707 | 713 | | |
708 | | - | |
709 | | - | |
| 714 | + | |
| 715 | + | |
710 | 716 | | |
711 | 717 | | |
712 | | - | |
713 | | - | |
| 718 | + | |
| 719 | + | |
714 | 720 | | |
715 | 721 | | |
716 | 722 | | |
| |||
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | 743 | | |
762 | 744 | | |
763 | 745 | | |
| |||
900 | 882 | | |
901 | 883 | | |
902 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
903 | 888 | | |
904 | | - | |
905 | | - | |
906 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
907 | 902 | | |
908 | 903 | | |
909 | 904 | | |
| |||
964 | 959 | | |
965 | 960 | | |
966 | 961 | | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | 962 | | |
981 | 963 | | |
982 | 964 | | |
| |||
0 commit comments