-
Notifications
You must be signed in to change notification settings - Fork 510
Display extension edition & version in PSIC banner #2643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rjmholt added a Add an with the Extension name and version. |
I take it you are going to take this on, @rkeithhill ? 😊 Would be great to see you contributing again! |
That's the plan. We'll see how it goes. :-) |
I "think" this might be best addressed in the vscode-powershell repo. The question I suppose is what version info should it display? Version info for the extension or version info for PSES? If we do this on the extension side, it is pretty easy e.g.: if (this.sessionSettings.integratedConsole.suppressStartupBanner) {
this.editorServicesArgs += "-StartupBanner '' ";
} else {
const packageJSON: any = require("../../package.json");
const previewStr = (packageJSON.name.toLowerCase() === "powershell-preview") ? "Preview " : "";
const version = packageJSON.version;
const startupBanner = `
=====> PowerShell ${previewStr}Integrated Console v${version} <=====
`;
this.editorServicesArgs += `-StartupBanner "${startupBanner}" `;
} If want want to do this on the PSES side, I'm not sure where to get the preview status. The BuildInfo.cs class does have a BuildVersion field but nothing on preview status unless that gets reflected by BuildOrigin when you do a build for publish. Thoughts? |
I was thinking this would purely be on the extension side. Just because:
|
Also I'm pretty sure |
We can probably use this which were |
I'm gonna transfer this to vscode-powershell. |
Any opinion on whether it should be |
I like it with the |
As long as we are displaying this banner:
It would be more useful if it displayed this:
or
I switch between four different computers and on some I use preview and others I use stable. It would be nice to see which I'm using without having to look through my extensions list. I know, first world problems. :-)
The text was updated successfully, but these errors were encountered: