Commit 2037bd1
committed
Code action requests from other extensions crash the language server
This change fixes PowerShell/vscode-powershell#408 which states that code
action requests sent for diagnostic markers created by other extensions
cause our language server to crash. This was due to us not handling the
case where irrelevant diagnostics might (mistakenly?) get sent to us to
resolve their code actions.1 parent 1fce255 commit 2037bd1
File tree
2 files changed
+10
-2
lines changed- src/PowerShellEditorServices.Protocol
- LanguageServer
- Server
2 files changed
+10
-2
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
994 | 995 | | |
995 | 996 | | |
996 | 997 | | |
997 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
998 | 1001 | | |
999 | 1002 | | |
1000 | 1003 | | |
| |||
1335 | 1338 | | |
1336 | 1339 | | |
1337 | 1340 | | |
| 1341 | + | |
1338 | 1342 | | |
1339 | 1343 | | |
1340 | | - | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | 1346 | | |
| |||
0 commit comments