@@ -1339,14 +1339,15 @@ internal async Task StopAnalyzingDirectoryAsync(string directory) {
1339
1339
1340
1340
internal async Task UnloadFileAsync ( AnalysisEntry entry ) {
1341
1341
_analysisComplete = false ;
1342
- await SendRequestAsync ( new AP . UnloadFileRequest ( ) { fileId = entry . FileId } ) . ConfigureAwait ( false ) ;
1343
1342
AnalysisEntry removed ;
1344
1343
_projectFiles . TryRemove ( entry . Path , out removed ) ;
1345
1344
_projectFilesById . TryRemove ( entry . FileId , out removed ) ;
1346
1345
1347
1346
_errorProvider . Clear ( entry , ParserTaskMoniker ) ;
1348
1347
_errorProvider . Clear ( entry , UnresolvedImportMoniker ) ;
1349
1348
_commentTaskProvider . Clear ( entry , ParserTaskMoniker ) ;
1349
+
1350
+ await SendRequestAsync ( new AP . UnloadFileRequest ( ) { fileId = entry . FileId } ) . ConfigureAwait ( false ) ;
1350
1351
}
1351
1352
1352
1353
internal void ClearAllTasks ( ) {
@@ -1380,7 +1381,7 @@ private void OnShouldWarnOnLaunchChanged(AnalysisEntry entry) {
1380
1381
if ( conn == null ) {
1381
1382
return default ( T ) ;
1382
1383
}
1383
- Debug . WriteLine ( String . Format ( "{1} Sending request {0}" , request . command , DateTime . Now ) ) ;
1384
+ Debug . WriteLine ( String . Format ( "{1} Sending request {0}" , request , DateTime . Now ) ) ;
1384
1385
T res = defaultValue ;
1385
1386
try {
1386
1387
res = await conn . SendRequestAsync ( request , _processExitedCancelSource . Token ) . ConfigureAwait ( false ) ;
@@ -1391,7 +1392,7 @@ private void OnShouldWarnOnLaunchChanged(AnalysisEntry entry) {
1391
1392
} catch ( FailedRequestException e ) {
1392
1393
_pyService . Logger . LogEvent ( Logging . PythonLogEvent . AnalysisOpertionFailed , e . Message ) ;
1393
1394
}
1394
- Debug . WriteLine ( String . Format ( "{1} Done sending request {0}" , request . command , DateTime . Now ) ) ;
1395
+ Debug . WriteLine ( String . Format ( "{1} Done sending request {0}" , request , DateTime . Now ) ) ;
1395
1396
return res ;
1396
1397
}
1397
1398
0 commit comments