Commit 2dadd30
committed
Handle null case in ReferencesCodeLensProvider's CodeLens resolver
This change fixes an issue where a null case isn't being handled
gracefully in the ReferencesCodeLensProvider when resolving a CodeLens
while the user is typing out a new function defintion or doing anything
else that causes the code to change like formatting the script.
Resolves PowerShell/vscode-powershell#857
Resolves PowerShell/vscode-powershell#8551 parent 19c4f49 commit 2dadd30
File tree
2 files changed
+14
-11
lines changed- src/PowerShellEditorServices.Host/CodeLens
2 files changed
+14
-11
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments