File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55'use strict' ;
66
77import * as vscode from 'vscode' ;
8- import { localize } from 'vscode-nls' ;
8+ import * as nls from 'vscode-nls' ;
99import * as util from '../common' ;
1010import * as logger from '../logger' ;
1111import * as telemetry from '../telemetry' ;
1212import { ChatContextResult , ProjectContextResult } from './client' ;
1313import { getClients } from './extension' ;
1414import { checkDuration } from './utils' ;
1515
16+ nls . config ( { messageFormat : nls . MessageFormat . bundle , bundleFormat : nls . BundleFormat . standalone } ) ( ) ;
17+ const localize : nls . LocalizeFunc = nls . loadMessageBundle ( ) ;
18+
1619const MSVC : string = 'MSVC' ;
1720const Clang : string = 'Clang' ;
1821const GCC : string = 'GCC' ;
@@ -177,7 +180,7 @@ export async function getProjectContext(uri: vscode.Uri, context: { flags: Recor
177180 // Intentionally swallow any exception.
178181 }
179182 telemetryProperties [ "error" ] = "true" ;
180- return undefined ;
183+ throw exception ; // Throw the exception for auto-retry.
181184 } finally {
182185 telemetry . logCopilotEvent ( 'ProjectContext' , telemetryProperties , telemetryMetrics ) ;
183186 }
You can’t perform that action at this time.
0 commit comments