11import { activateBasicCodeIntel } from '@sourcegraph/basic-code-intel'
22// tslint:disable-next-line:rxjs-no-wholesale
3- import { combineLatest , concat , from , Observable , of , Subject } from 'rxjs'
3+ import { combineLatest , concat , from , Observable , of } from 'rxjs'
44import { map , startWith , tap } from 'rxjs/operators'
55import * as sourcegraph from 'sourcegraph'
6+ import { Position , ReferenceContext , TextDocument } from 'sourcegraph'
67import * as rpc from 'vscode-jsonrpc'
78import {
89 DefinitionRequest ,
@@ -184,7 +185,7 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
184185 } )
185186
186187 sourcegraph . languages . registerHoverProvider ( [ 'python' ] , {
187- provideHover : async ( doc , pos ) => {
188+ provideHover : async ( doc : TextDocument , pos : Position ) => {
188189 const { uriConverter, connection } = await getConnectionForDocument (
189190 doc
190191 )
@@ -205,7 +206,7 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
205206 } )
206207
207208 sourcegraph . languages . registerDefinitionProvider ( [ 'python' ] , {
208- provideDefinition : async ( doc , pos ) => {
209+ provideDefinition : async ( doc : TextDocument , pos : Position ) => {
209210 const { uriConverter, connection } = await getConnectionForDocument (
210211 doc
211212 )
@@ -240,7 +241,11 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
240241 } )
241242
242243 sourcegraph . languages . registerReferenceProvider ( [ 'python' ] , {
243- provideReferences : async ( doc , pos , context ) => {
244+ provideReferences : async (
245+ doc : TextDocument ,
246+ pos : Position ,
247+ context : ReferenceContext
248+ ) => {
244249 const { uriConverter, connection } = await getConnectionForDocument (
245250 doc
246251 )
0 commit comments