1- import { CancellationToken , EventEmitter , ExtensionContext } from "vscode" ;
1+ import { EventEmitter , ExtensionContext } from "vscode" ;
22import { join } from "path" ;
33import { pathExists , readFile , remove } from "fs-extra" ;
44
@@ -16,9 +16,6 @@ import { AnalysisResults } from "./shared/analysis-result";
1616import { App } from "../common/app" ;
1717import { redactableError } from "../pure/errors" ;
1818
19- const autoDownloadMaxSize = 300 * 1024 ;
20- const autoDownloadMaxCount = 100 ;
21-
2219const noop = ( ) => {
2320 /* do nothing */
2421} ;
@@ -128,29 +125,6 @@ export class RemoteQueriesManager extends DisposableObject {
128125 }
129126 }
130127
131- public async autoDownloadRemoteQueryResults (
132- queryResult : RemoteQueryResult ,
133- token : CancellationToken ,
134- ) : Promise < void > {
135- const analysesToDownload = queryResult . analysisSummaries
136- . filter ( ( a ) => a . fileSizeInBytes < autoDownloadMaxSize )
137- . slice ( 0 , autoDownloadMaxCount )
138- . map ( ( a ) => ( {
139- nwo : a . nwo ,
140- databaseSha : a . databaseSha ,
141- resultCount : a . resultCount ,
142- sourceLocationPrefix : a . sourceLocationPrefix ,
143- downloadLink : a . downloadLink ,
144- fileSize : String ( a . fileSizeInBytes ) ,
145- } ) ) ;
146-
147- await this . analysesResultsManager . loadAnalysesResults (
148- analysesToDownload ,
149- token ,
150- ( results ) => this . view . setAnalysisResults ( results , queryResult . queryId ) ,
151- ) ;
152- }
153-
154128 public async openResults ( query : RemoteQuery , queryResult : RemoteQueryResult ) {
155129 await this . view . showResults ( query , queryResult ) ;
156130 }
0 commit comments