(filePath: string, position: Position)
| 263 | } |
| 264 | |
| 265 | async definition(filePath: string, position: Position) { |
| 266 | const uri = await toUri(filePath); |
| 267 | return this.connection.sendRequest<Location | Location[] | LocationLink[] | null>( |
| 268 | 'textDocument/definition', |
| 269 | { |
| 270 | textDocument: {uri}, |
| 271 | position, |
| 272 | }, |
| 273 | ); |
| 274 | } |
| 275 | |
| 276 | async completion(filePath: string, position: Position) { |
| 277 | const uri = await toUri(filePath); |