Commit 21c7674
authored
Re-architect formatting to prepare for cohosting (and for fun!) (#10778)
I nerd sniped myself thinking about how to get formatting into
cohosting, given the limitations Alex ran into doing the relayering for
auto insert, and this is the result. I was going to go further and port
the actual formatting endpoint to cohosting, but that would have ran
into the same issue that Alex did with auto insert, so I figured I'd
wait for that to merge, and put this up in the meantime.
This unblocks the formatting, code action and completion end points from
being ported.
Part of #10743
Part of #9519
I **strongly** recommend reviewing commit-at-a-time, as I did this
deliberately in an order, and in order to (hopefully) make reviewing
easier. Though granted, there are a lot of commits.File tree
59 files changed
+1171
-1458
lines changed- src/Razor
- benchmarks/Microsoft.AspNetCore.Razor.Microbenchmarks/LanguageServer
- src
- Microsoft.AspNetCore.Razor.LanguageServer
- AutoInsert
- CodeActions
- CSharp
- Html
- Razor
- Completion/Delegation
- Extensions
- Formatting
- InlineCompletion
- WrapWithTag
- Microsoft.CodeAnalysis.Razor.Workspaces
- Extensions
- Formatting
- Passes
- Microsoft.CodeAnalysis.Remote.Razor
- AutoInsert
- Formatting
- test
- Microsoft.AspNetCore.Razor.LanguageServer.Test
- CodeActions
- CSharp
- Completion/Delegation
- Formatting_NetFx
- WrapWithTag
- Microsoft.CodeAnalysis.Razor.Workspaces.Test/Formatting
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+1171
-1458
lines changedLines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 113 | | |
120 | 114 | | |
121 | | - | |
| 115 | + | |
122 | 116 | | |
123 | 117 | | |
124 | 118 | | |
| |||
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
Lines changed: 0 additions & 190 deletions
This file was deleted.
Lines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 25 | | |
41 | 26 | | |
42 | 27 | | |
| |||
80 | 65 | | |
81 | 66 | | |
82 | 67 | | |
83 | | - | |
| 68 | + | |
84 | 69 | | |
85 | | - | |
86 | 70 | | |
87 | | - | |
| 71 | + | |
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
| |||
99 | 83 | | |
100 | 84 | | |
101 | 85 | | |
102 | | - | |
| 86 | + | |
103 | 87 | | |
104 | 88 | | |
105 | 89 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments