(filePath: string, position: Position)
| 274 | } |
| 275 | |
| 276 | async completion(filePath: string, position: Position) { |
| 277 | const uri = await toUri(filePath); |
| 278 | return this.connection.sendRequest<CompletionList | CompletionItem[] | null>( |
| 279 | 'textDocument/completion', |
| 280 | { |
| 281 | textDocument: {uri}, |
| 282 | position, |
| 283 | }, |
| 284 | ); |
| 285 | } |
| 286 | |
| 287 | async completionResolve(item: CompletionItem) { |
| 288 | return this.connection.sendRequest<CompletionItem>('completionItem/resolve', item); |
no test coverage detected