Commit 4746f4e
authored
Better handle parameter attribute directive completion (#12473)
Modifies completion in several ways:
Makes ':' no longer a commit character. This being a commit character was causing difficulties as it and '=' require fundamentally different completion commit behavior, and LSP doesn't support that for a single completion item.
Makes parameter completions show up in attribute name contexts too. This is nice for discoverability.
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/26079481 parent ae54aca commit 4746f4e
File tree
12 files changed
+583
-537
lines changed- src/Razor
- src
- Microsoft.AspNetCore.Razor.LanguageServer/Extensions
- Microsoft.CodeAnalysis.Razor.Workspaces/Completion
- Microsoft.CodeAnalysis.Remote.Razor/Completion
- Microsoft.VisualStudio.LegacyEditor.Razor/Completion
- test
- Microsoft.AspNetCore.Razor.LanguageServer.Test/Completion
- Microsoft.CodeAnalysis.Razor.Workspaces.Test/Completion
12 files changed
+583
-537
lines changedsrc/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Extensions/IServiceCollectionExtensions.cs
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 276 additions & 164 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 127 deletions
This file was deleted.
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
| |||
0 commit comments