|
4 | 4 | 'use strict'; |
5 | 5 |
|
6 | 6 | import { Socket } from 'net'; |
7 | | -import { Request as RequestResult } from 'request'; |
8 | 7 | import { |
9 | 8 | CancellationToken, |
10 | 9 | ConfigurationChangeEvent, |
@@ -360,41 +359,6 @@ export type DownloadOptions = { |
360 | 359 | extension: 'tmp' | string; |
361 | 360 | }; |
362 | 361 |
|
363 | | -export const IFileDownloader = Symbol('IFileDownloader'); |
364 | | -/** |
365 | | - * File downloader, that'll display progress in the status bar. |
366 | | - * |
367 | | - * @export |
368 | | - * @interface IFileDownloader |
369 | | - */ |
370 | | -export interface IFileDownloader { |
371 | | - /** |
372 | | - * Download file and display progress in statusbar. |
373 | | - * Optionnally display progress in the provided output channel. |
374 | | - * |
375 | | - * @param {string} uri |
376 | | - * @param {DownloadOptions} options |
377 | | - * @returns {Promise<string>} |
378 | | - * @memberof IFileDownloader |
379 | | - */ |
380 | | - downloadFile(uri: string, options: DownloadOptions): Promise<string>; |
381 | | -} |
382 | | - |
383 | | -export const IHttpClient = Symbol('IHttpClient'); |
384 | | -export interface IHttpClient { |
385 | | - downloadFile(uri: string): Promise<RequestResult>; |
386 | | - /** |
387 | | - * Downloads file from uri as string and parses them into JSON objects |
388 | | - * @param uri The uri to download the JSON from |
389 | | - * @param strict Set `false` to allow trailing comma and comments in the JSON, defaults to `true` |
390 | | - */ |
391 | | - getJSON<T>(uri: string, strict?: boolean): Promise<T>; |
392 | | - /** |
393 | | - * Returns the url is valid (i.e. return status code of 200). |
394 | | - */ |
395 | | - exists(uri: string): Promise<boolean>; |
396 | | -} |
397 | | - |
398 | 362 | export const IExtensionContext = Symbol('ExtensionContext'); |
399 | 363 | export interface IExtensionContext extends ExtensionContext {} |
400 | 364 |
|
|
0 commit comments