(view: EditorView)
| 89 | } |
| 90 | |
| 91 | function getWordAtCursor(view: EditorView): string { |
| 92 | const { state } = view; |
| 93 | const pos = state.selection.main.head; |
| 94 | const word = state.wordAt(pos); |
| 95 | if (word) { |
| 96 | return state.doc.sliceString(word.from, word.to); |
| 97 | } |
| 98 | return ""; |
| 99 | } |
| 100 | |
| 101 | async function fetchReferences( |
| 102 | view: EditorView, |
no outgoing calls
no test coverage detected