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 ef3bf1a commit 921613bCopy full SHA for 921613b
lib/adapters/show-document-adapter.ts
@@ -40,7 +40,7 @@ export async function onShowDocument(params: ShowDocumentParams): Promise<ShowDo
40
initialLine: params.selection?.start.line ?? 0,
41
initialColumn: params.selection?.start.character ?? 0,
42
})
43
- if (view instanceof TextEditor && params.selection != null) {
+ if (view instanceof TextEditor && params.selection !== undefined) {
44
view.selectToBufferPosition(Convert.positionToPoint(params.selection.end))
45
}
46
return { success: true }
0 commit comments