Commit ccec61c
authored
Return null when Hover request is cancelled or no symbol details (#1316)
Previously we returned a new Hover instance without initializing the
Contents or Range members. At least in VS Code, this will result in the
LSP client attempting to access null properties. As we're not returning
any Hover data, the correct response is to simply return null.1 parent 0c2d369 commit ccec61c
File tree
1 file changed
+2
-2
lines changed- src/PowerShellEditorServices/Services/TextDocument/Handlers
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments