You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -236,14 +236,14 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
236
236
if(config.type===DebuggerType.cppvsdbg){
237
237
// Fail if cppvsdbg type is running on non-Windows
238
238
if(os.platform()!=='win32'){
239
-
voidgetOutputChannelLogger().showWarningMessage(localize("debugger.not.available","Debugger of type: '{0}' is only available on Windows. Use type: '{1}' on the current OS platform.","cppvsdbg","cppdbg"));
239
+
voidlogger.getOutputChannelLogger().showWarningMessage(localize("debugger.not.available","Debugger of type: '{0}' is only available on Windows. Use type: '{1}' on the current OS platform.","cppvsdbg","cppdbg"));
240
240
returnundefined;// Abort debugging silently.
241
241
}
242
242
243
243
// Handle legacy 'externalConsole' bool and convert to console: "externalTerminal"
244
244
// eslint-disable-next-line no-prototype-builtins
245
245
if(config.hasOwnProperty("externalConsole")){
246
-
voidgetOutputChannelLogger().showWarningMessage(localize("debugger.deprecated.config","The key '{0}' is deprecated. Please use '{1}' instead.","externalConsole","console"));
246
+
voidlogger.getOutputChannelLogger().showWarningMessage(localize("debugger.deprecated.config","The key '{0}' is deprecated. Please use '{1}' instead.","externalConsole","console"));
247
247
if(config.externalConsole&&!config.console){
248
248
config.console="externalTerminal";
249
249
}
@@ -322,18 +322,18 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
voidgetOutputChannelLogger().showErrorMessage(localize("vs.code.1.69+.required","'deploySteps' require VS Code 1.69+."));
336
+
voidlogger.getOutputChannelLogger().showErrorMessage(localize("vs.code.1.69+.required","'deploySteps' require VS Code 1.69+."));
337
337
returnundefined;
338
338
}
339
339
@@ -362,7 +362,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
362
362
if(processId){
363
363
config.processId=processId;
364
364
}else{
365
-
voidgetOutputChannelLogger().showErrorMessage("No process was selected.");
365
+
voidlogger.getOutputChannelLogger().showErrorMessage("No process was selected.");
366
366
returnundefined;
367
367
}
368
368
}
@@ -421,7 +421,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
421
421
// Non-absolute. Check on $PATH
422
422
(awaitutil.whichAsync(compilerPath)!==undefined);
423
423
if(!compilerPathExists){
424
-
getOutputChannelLogger().appendLine(localize('compiler.path.not.exists',"Unable to find {0}. {1} task is ignored.",compilerPath,definition.label));
424
+
logger.getOutputChannelLogger().appendLine(localize('compiler.path.not.exists',"Unable to find {0}. {1} task is ignored.",compilerPath,definition.label));
getOutputChannelLogger().appendLine(localize('debugger.path.not.exists',"Unable to find the {0} debugger. The debug configuration for {1} is ignored.",`\"${debuggerName}\"`,compilerName));
496
+
logger.getOutputChannelLogger().appendLine(localize('debugger.path.not.exists',"Unable to find the {0} debugger. The debug configuration for {1} is ignored.",`\"${debuggerName}\"`,compilerName));
497
497
returnundefined;
498
498
}
499
499
}
@@ -608,7 +608,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
outputChannel.appendLine(localize("lldb.install.help","To resolve this issue, either install XCode through the Apple App Store or install the XCode Command Line Tools by running '{0}' in a Terminal window.",xcodeCLIInstallCmd));
620
-
showOutputChannel();
620
+
logger.showOutputChannel();
621
621
622
622
returnundefined;
623
623
}
@@ -696,11 +696,11 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
696
696
}
697
697
698
698
if(messages.length>0){
699
-
getOutputChannel().appendLine(localize("resolving.variables.in.sourcefilemap","Resolving variables in {0}...","sourceFileMap"));
699
+
logger.getOutputChannel().appendLine(localize("resolving.variables.in.sourcefilemap","Resolving variables in {0}...","sourceFileMap"));
700
700
messages.forEach((message)=>{
701
-
getOutputChannel().appendLine(message);
701
+
logger.getOutputChannel().appendLine(message);
702
702
});
703
-
showOutputChannel();
703
+
logger.showOutputChannel();
704
704
}
705
705
}
706
706
}
@@ -1038,7 +1038,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
1038
1038
caseStepType.command: {
1039
1039
// VS Code commands are the same regardless of which extension invokes them, so just invoke them here.
1040
1040
if(step.args&&!Array.isArray(step.args)){
1041
-
voidgetOutputChannelLogger().showErrorMessage(localize('command.args.must.be.array','"args" in command deploy step must be an array.'));
1041
+
voidlogger.getOutputChannelLogger().showErrorMessage(localize('command.args.must.be.array','"args" in command deploy step must be an array.'));
@@ -1048,7 +1048,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
1048
1048
caseStepType.rsync: {
1049
1049
constisScp: boolean=stepType===StepType.scp;
1050
1050
if(!step.files||!step.targetDir||!step.host){
1051
-
voidgetOutputChannelLogger().showErrorMessage(localize('missing.properties.copyFile','"host", "files", and "targetDir" are required in {0} steps.',isScp ? 'SCP' : 'rsync'));
1051
+
voidlogger.getOutputChannelLogger().showErrorMessage(localize('missing.properties.copyFile','"host", "files", and "targetDir" are required in {0} steps.',isScp ? 'SCP' : 'rsync'));
voidgetOutputChannelLogger().showErrorMessage(localize('incorrect.files.type.copyFile','"files" must be a string or an array of strings in {0} steps.',isScp ? 'SCP' : 'rsync'));
1064
+
voidlogger.getOutputChannelLogger().showErrorMessage(localize('incorrect.files.type.copyFile','"files" must be a string or an array of strings in {0} steps.',isScp ? 'SCP' : 'rsync'));
1065
1065
returnfalse;
1066
1066
}
1067
1067
@@ -1079,7 +1079,7 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
1079
1079
}
1080
1080
caseStepType.ssh: {
1081
1081
if(!step.host||!step.command){
1082
-
voidgetOutputChannelLogger().showErrorMessage(localize('missing.properties.ssh','"host" and "command" are required for ssh steps.'));
1082
+
voidlogger.getOutputChannelLogger().showErrorMessage(localize('missing.properties.ssh','"host" and "command" are required for ssh steps.'));
getOutputChannelLogger().appendLine(localize("copilot.projectcontext.error","Error while retrieving the project context. Reason: {0}",err.message));
184
+
logger.getOutputChannelLogger().appendLine(localize("copilot.projectcontext.error","Error while retrieving the project context. Reason: {0}",err.message));
185
185
}
186
186
catch{
187
187
// Intentionally swallow any exception.
@@ -249,7 +249,7 @@ export class CppConfigurationLanguageModelTool implements vscode.LanguageModelTo
249
249
250
250
privateasyncreportError(): Promise<void>{
251
251
try{
252
-
getOutputChannelLogger().appendLine(localize("copilot.cppcontext.error","Error while retrieving the #cpp context."));
252
+
logger.getOutputChannelLogger().appendLine(localize("copilot.cppcontext.error","Error while retrieving the #cpp context."));
0 commit comments