Skip to content

Commit a3bad6b

Browse files
authored
docs: explain outputChannel vs logOutputChannel #5573
1 parent 4bb2fc1 commit a3bad6b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/core/src/shared/extensionGlobals.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,19 @@ interface ToolkitGlobals {
178178
readonly globalState: GlobalState
179179
/** Decides the prefix for package.json extension parameters, e.g. commands, 'setContext' values, etc. */
180180
contextPrefix: string
181+
182+
//
181183
// TODO: make the rest of these readonly (or delete them)
184+
//
185+
186+
/**
187+
* For "normal" messages, to show output from various application features (the result of
188+
* a Lambda invocation, "sam build" output, etc.).
189+
*/
182190
outputChannel: OutputChannel
191+
/**
192+
* Log messages. Use `outputChannel` for application messages.
193+
*/
183194
logOutputChannel: OutputChannel
184195
loginManager: LoginManager
185196
awsContextCommands: AwsContextCommands

0 commit comments

Comments
 (0)