We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8770c commit 7bede25Copy full SHA for 7bede25
lib/adapters/show-document-adapter.ts
@@ -41,6 +41,9 @@ export async function showDocument(params: ShowDocumentParams): Promise<ShowDocu
41
initialLine: params.selection?.start.line ?? 0,
42
initialColumn: params.selection?.start.character ?? 0,
43
})
44
+ if (view === undefined) {
45
+ return { success: false }
46
+ }
47
if (view instanceof TextEditor && params.selection !== undefined) {
48
view.selectToBufferPosition(Convert.positionToPoint(params.selection.end))
49
}
0 commit comments