Skip to content

Commit 98467f9

Browse files
Merge pull request #4090 from PowerShell/andschwa/rename-terminal
Rename "Integrated Console" to "Extension Terminal"
2 parents 085be80 + 765f658 commit 98467f9

10 files changed

+39
-35
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ to get more details on how to use the extension on these platforms.
5252
- Run selected selection of PowerShell code using <kbd>F8</kbd>
5353
- Launch online help for the symbol under the cursor using <kbd>Ctrl</kbd>+<kbd>F1</kbd>
5454
- Local script debugging
55-
- Integrated console support
55+
- Extension Terminal support
5656
- PowerShell ISE color theme
5757

5858
## Installing the Extension

docs/azure_data_studio/README_FOR_MARKETPLACE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ to get more details on how to use the extension on these platforms.
5151
- Run selected selection of PowerShell code using <kbd>F8</kbd>
5252
- Launch online help for the symbol under the cursor using <kbd>Ctrl</kbd>+<kbd>F1</kbd>
5353
- Local script debugging
54-
- Integrated console support
54+
- Extension Terminal support
5555
- PowerShell ISE color theme
5656

5757
## Installing the Extension

docs/troubleshooting.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ message starts with `[PSScriptAnalyzer]` or if you are getting faulty script dia
3939
## Completions aren't appearing
4040

4141
First, please ensure that the extension itself has properly started. Do this by opening
42-
the PowerShell Integrated Console and checking the value of the variable `$psEditor`,
42+
the PowerShell Extension Terminal and checking the value of the variable `$psEditor`,
4343
it should return a version and other fields. If it does not, you're probably in a
44-
different "PowerShell" terminal in VS Code, and not the extension's integrated console.
44+
different "PowerShell" terminal in VS Code, and not the PowerShell Extension Terminal.
4545
So please open a bug about your extension failing to start instead.
4646

47-
If the extension _is_ started and the PSIC functional, completions should appear! Please
47+
If the extension _is_ started and the Extension Terminal functional, completions should appear! Please
4848
double-check that your `editor.suggest.showFunctions` VS Code setting is `true`, as
4949
setting it to `false` _will_ disable completions (from all extensions). You may also want
5050
to check other related settings under "Text Editor -> Suggestions" in VS Code.
@@ -308,7 +308,7 @@ these messages. To do this:
308308

309309
### Visual Studio Code version
310310

311-
[Your VS Code version][] can be obtained from the Integrated Console or any terminal:
311+
[Your VS Code version][] can be obtained from the Extension Terminal or any terminal:
312312

313313
```powershell
314314
code --version
@@ -353,7 +353,7 @@ Extensions` and list your extensions.
353353

354354
### Editor Services version
355355

356-
To get the [PowerShell Editor Services][] version, in the Integrated Console, enter:
356+
To get the [PowerShell Editor Services][] version, in the Extension Terminal, enter:
357357

358358
```powershell
359359
> $psEditor.EditorServicesVersion
@@ -364,7 +364,7 @@ Major Minor Build Revision
364364

365365
### PowerShell version table
366366

367-
You can get [your PowerShell version table][] from the Integrated Console through the
367+
You can get [your PowerShell version table][] from the Extension Terminal through the
368368
variable `$PSVersionTable`:
369369

370370
```powershell

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
},
234234
{
235235
"command": "PowerShell.ShowSessionConsole",
236-
"title": "Show Integrated Console",
236+
"title": "Show Extension Terminal",
237237
"category": "PowerShell"
238238
},
239239
{
@@ -447,7 +447,7 @@
447447
},
448448
{
449449
"label": "PowerShell: Interactive Session",
450-
"description": "Debug commands executed from the Integrated Console",
450+
"description": "Debug commands executed from the Extension Terminal",
451451
"body": {
452452
"name": "PowerShell Interactive Session",
453453
"type": "PowerShell",
@@ -498,7 +498,7 @@
498498
},
499499
"createTemporaryIntegratedConsole": {
500500
"type": "boolean",
501-
"description": "Determines whether a temporary PowerShell Integrated Console is created for each debugging session, useful for debugging PowerShell classes and binary modules. Overrides the user setting 'powershell.debugging.createTemporaryIntegratedConsole'.",
501+
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session, useful for debugging PowerShell classes and binary modules. Overrides the user setting 'powershell.debugging.createTemporaryIntegratedConsole'.",
502502
"default": false
503503
}
504504
}
@@ -597,7 +597,7 @@
597597
"powershell.startAutomatically": {
598598
"type": "boolean",
599599
"default": true,
600-
"description": "Starts PowerShell extension features automatically when a PowerShell file opens. If false, to start the extension, use the 'PowerShell: Restart Current Session' command. IntelliSense, code navigation, integrated console, code formatting, and other features are not enabled until the extension starts."
600+
"description": "Starts PowerShell extension features automatically when a PowerShell file opens. If false, to start the extension, use the 'PowerShell: Restart Current Session' command. IntelliSense, code navigation, Extension Terminal, code formatting, and other features are not enabled until the extension starts."
601601
},
602602
"powershell.useX86Host": {
603603
"type": "boolean",
@@ -628,7 +628,7 @@
628628
"powershell.cwd": {
629629
"type": "string",
630630
"default": null,
631-
"description": "An explicit start path where the Powershell Integrated Console will be launched. Both the PowerShell process and the shell's location will be set to this directory. Predefined variables can be used (i.e. ${fileDirname} to use the current opened file's directory)."
631+
"description": "An explicit start path where the PowerShell Extension Terminal will be launched. Both the PowerShell process and the shell's location will be set to this directory. Predefined variables can be used (i.e. ${fileDirname} to use the current opened file's directory)."
632632
},
633633
"powershell.scriptAnalysis.enable": {
634634
"type": "boolean",
@@ -761,7 +761,7 @@
761761
"powershell.integratedConsole.showOnStartup": {
762762
"type": "boolean",
763763
"default": true,
764-
"description": "Shows the integrated console when the PowerShell extension is initialized."
764+
"description": "Shows the Extension Terminal when the PowerShell extension is initialized."
765765
},
766766
"powershell.integratedConsole.focusConsoleOnExecute": {
767767
"type": "boolean",
@@ -771,7 +771,7 @@
771771
"powershell.integratedConsole.useLegacyReadLine": {
772772
"type": "boolean",
773773
"default": false,
774-
"description": "Falls back to the legacy (lightweight) ReadLine experience. This will disable the use of PSReadLine in the PowerShell Integrated Console."
774+
"description": "Falls back to the legacy ReadLine experience. This will disable the use of PSReadLine in the PowerShell Extension Terminal."
775775
},
776776
"powershell.integratedConsole.forceClearScrollbackBuffer": {
777777
"type": "boolean",
@@ -780,12 +780,12 @@
780780
"powershell.integratedConsole.suppressStartupBanner": {
781781
"type": "boolean",
782782
"default": false,
783-
"description": "Do not show the Powershell Integrated Console banner on launch"
783+
"description": "Do not show the Powershell Extension Terminal banner on launch"
784784
},
785785
"powershell.debugging.createTemporaryIntegratedConsole": {
786786
"type": "boolean",
787787
"default": false,
788-
"description": "Determines whether a temporary PowerShell Integrated Console is created for each debugging session, useful for debugging PowerShell classes and binary modules."
788+
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session. Useful for debugging PowerShell classes and binary modules."
789789
},
790790
"powershell.developer.bundledModulesPath": {
791791
"type": "string",

src/features/Console.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ export class ConsoleFeature extends LanguageClientConsumer {
207207
vscode.commands.registerCommand("PowerShell.RunSelection", async () => {
208208

209209
if (vscode.window.activeTerminal &&
210-
vscode.window.activeTerminal.name !== "PowerShell Integrated Console") {
211-
this.log.write("PSIC is not active terminal. Running in active terminal using 'runSelectedText'");
210+
vscode.window.activeTerminal.name !== "PowerShell Extension") {
211+
this.log.write("PowerShell Extension Terminal is not active! Running in current terminal using 'runSelectedText'");
212212
await vscode.commands.executeCommand("workbench.action.terminal.runSelectedText");
213213

214214
// We need to honor the focusConsoleOnExecute setting here too. However, the boolean that `show`
@@ -236,7 +236,7 @@ export class ConsoleFeature extends LanguageClientConsumer {
236236
expression: editor.document.getText(selectionRange),
237237
});
238238

239-
// Show the integrated console if it isn't already visible and
239+
// Show the Extension Terminal if it isn't already visible and
240240
// scroll terminal to bottom so new output is visible
241241
await vscode.commands.executeCommand("PowerShell.ShowSessionConsole", true);
242242
await vscode.commands.executeCommand("workbench.action.terminal.scrollToBottom");

src/features/DebugSession.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
9191
{
9292
id: DebugConfig.InteractiveSession,
9393
label: "Interactive Session",
94-
description: "Debug commands executed from the Integrated Console",
94+
description: "Debug commands executed from the PowerShell Extension Terminal",
9595
},
9696
{
9797
id: DebugConfig.AttachHostProcess,
@@ -230,7 +230,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
230230
: currentDocument.fileName;
231231

232232
} else {
233-
// If the non-temp integrated console is being used, default to the current working dir.
233+
// If the non-temp Extension Terminal is being used, default to the current working dir.
234234
config.cwd = "";
235235
}
236236
}
@@ -450,7 +450,7 @@ export class PickPSHostProcessFeature extends LanguageClientConsumer {
450450
// Start with the current PowerShell process in the list.
451451
const items: IProcessItem[] = [{
452452
label: "Current",
453-
description: "The current PowerShell Integrated Console process.",
453+
description: "The current PowerShell Extension process.",
454454
pid: "current",
455455
}];
456456
for (const p in hostProcesses) {

src/features/UpdatePowerShell.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export async function InvokePowerShellUpdateCheck(
149149
await streamPipeline(res.body, fs.createWriteStream(msiDownloadPath));
150150
});
151151

152-
// Stop the Integrated Console session because Windows likes to hold on to files.
152+
// Stop the session because Windows likes to hold on to files.
153153
sessionManager.stop();
154154

155155
// Close all terminals with the name "pwsh" in the current VS Code session.
@@ -165,7 +165,7 @@ export async function InvokePowerShellUpdateCheck(
165165
const msi = spawn("msiexec", ["/i", msiDownloadPath]);
166166

167167
msi.on("close", async () => {
168-
// Now that the MSI is finished, start the Integrated Console session.
168+
// Now that the MSI is finished, restart the session.
169169
await sessionManager.start();
170170
fs.unlinkSync(msiDownloadPath);
171171
});

src/process.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class PowerShellProcess {
124124
this.log.write(`${pwshName} started.`);
125125

126126
if (this.sessionSettings.integratedConsole.showOnStartup) {
127-
// We still need to run this to set the active terminal to the Integrated Console.
127+
// We still need to run this to set the active terminal to the extension terminal.
128128
this.consoleTerminal.show(true);
129129
}
130130

src/session.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,13 @@ export class SessionManager implements Middleware {
220220
if (this.sessionSettings.integratedConsole.suppressStartupBanner) {
221221
this.editorServicesArgs += "-StartupBanner '' ";
222222
} else {
223-
const startupBanner = `=====> ${this.HostName} Integrated Console v${this.HostVersion} <=====
223+
const startupBanner = `${this.HostName} Extension v${this.HostVersion}
224+
Copyright (c) Microsoft Corporation.
225+
226+
https://aka.ms/vscode-powershell
227+
Type 'help' to get help.
224228
`;
225-
this.editorServicesArgs += `-StartupBanner '${startupBanner}' `;
229+
this.editorServicesArgs += `-StartupBanner "${startupBanner}" `;
226230
}
227231

228232
if (this.sessionSettings.developer.editorServicesWaitForDebugger) {
@@ -291,7 +295,7 @@ export class SessionManager implements Middleware {
291295

292296
public createDebugSessionProcess(sessionSettings: Settings.ISettings): PowerShellProcess {
293297

294-
// NOTE: We only support one temporary integrated console at a time. To
298+
// NOTE: We only support one temporary Extension Terminal at a time. To
295299
// support more, we need to track each separately, and tie the session
296300
// for the event handler to the right process (and dispose of the event
297301
// handler when the process is disposed).
@@ -304,14 +308,14 @@ export class SessionManager implements Middleware {
304308
new PowerShellProcess(
305309
this.PowerShellExeDetails.exePath,
306310
this.bundledModulesPath,
307-
"[TEMP] PowerShell Integrated Console",
311+
"[TEMP] PowerShell Extension",
308312
this.log,
309313
this.editorServicesArgs + "-DebugServiceOnly ",
310314
this.getNewSessionFilePath(),
311315
sessionSettings);
312316

313-
// Similar to the regular integrated console, we need to send a key
314-
// press to the process spawned for temporary integrated consoles when
317+
// Similar to the regular Extension Terminal, we need to send a key
318+
// press to the process spawned for temporary Extension Terminals when
315319
// the server requests a cancellation os Console.ReadKey.
316320
this.debugEventHandler = vscode.debug.onDidReceiveDebugSessionCustomEvent(
317321
e => {
@@ -477,7 +481,7 @@ export class SessionManager implements Middleware {
477481
new PowerShellProcess(
478482
this.PowerShellExeDetails.exePath,
479483
this.bundledModulesPath,
480-
"PowerShell Integrated Console",
484+
"PowerShell Extension",
481485
this.log,
482486
this.editorServicesArgs,
483487
this.getNewSessionFilePath(),
@@ -532,7 +536,7 @@ export class SessionManager implements Middleware {
532536

533537
private async promptForRestart() {
534538
const response: string = await vscode.window.showErrorMessage(
535-
"The PowerShell Integrated Console (PSIC) has stopped, would you like to restart it? (IntelliSense will not work unless the PSIC is active and unblocked.)",
539+
"The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!",
536540
"Yes", "No");
537541

538542
if (response === "Yes") {

tools/ReleaseTools.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function Get-Bullets {
8282
'Area-Documentation' = '📖'
8383
'Area-Engine' = '🚂'
8484
'Area-Folding' = '📚'
85-
'Area-Integrated Console' = '📟'
85+
'Area-Extension Terminal' = '📟'
8686
'Area-IntelliSense' = '🧠'
8787
'Area-Logging' = '💭'
8888
'Area-Pester' = '🐢'

0 commit comments

Comments
 (0)