Skip to content

Commit 322c404

Browse files
authored
Merge pull request #125 from ironmansoftware/perfoptions
New status bar settings and organize settings.
2 parents cdd35b3 + 041933b commit 322c404

File tree

5 files changed

+261
-186
lines changed

5 files changed

+261
-186
lines changed

vscode/powershellprotools/package.json

Lines changed: 194 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -372,162 +372,202 @@
372372
"icon": "$(link-external)"
373373
}
374374
],
375-
"configuration": {
376-
"type": "object",
377-
"title": "PowerShell Pro Tools",
378-
"properties": {
379-
"poshProTools.universalDashboardPreviewPort": {
380-
"type": "number",
381-
"default": 10000,
382-
"description": "The port to start Universal Dashboard on when running the Preview Universal Dashboard command."
383-
},
384-
"poshProTools.showUpgradeNotification": {
385-
"type": "boolean",
386-
"default": true,
387-
"description": "Show upgrade notification."
388-
},
389-
"poshProTools.checkForModuleUpdates": {
390-
"type": "boolean",
391-
"default": false,
392-
"description": "Whether to check for updated versions of the modules you have installed. This can be slow if you have a lot of modules installed."
393-
},
394-
"poshProTools.sideBar.astVisibility": {
395-
"type": "boolean",
396-
"default": true,
397-
"description": "Specifies the visibility of the Abstract Syntax Tree in the PowerShell Pro Tools Side Bar."
398-
},
399-
"poshProTools.sideBar.hostProcessVisibility": {
400-
"type": "boolean",
401-
"default": true,
402-
"description": "Specifies the visibility of Host Processes in the PowerShell Pro Tools Side Bar."
403-
},
404-
"poshProTools.sideBar.moduleVisibility": {
405-
"type": "boolean",
406-
"default": true,
407-
"description": "Specifies the visibility of Modules in the PowerShell Pro Tools Side Bar."
408-
},
409-
"poshProTools.sideBar.providerVisibility": {
410-
"type": "boolean",
411-
"default": true,
412-
"description": "Specifies the visibility of Providers in the PowerShell Pro Tools Side Bar."
413-
},
414-
"poshProTools.sideBar.reflectionVisibility": {
415-
"type": "boolean",
416-
"default": true,
417-
"description": "Specifies the visibility of Reflection in the PowerShell Pro Tools Side Bar."
418-
},
419-
"poshProTools.sideBar.quickScriptVisibility": {
420-
"type": "boolean",
421-
"default": true,
422-
"description": "Specifies the visibility of Quick Scripts in the PowerShell Pro Tools Side Bar."
423-
},
424-
"poshProTools.sideBar.jobVisibility": {
425-
"type": "boolean",
426-
"default": true,
427-
"description": "Specifies the visibility of Jobs in the PowerShell Pro Tools Side Bar."
428-
},
429-
"poshProTools.sideBar.variableVisibility": {
430-
"type": "boolean",
431-
"default": true,
432-
"description": "Specifies the visibility of Variables in the PowerShell Pro Tools Side Bar."
433-
},
434-
"poshProTools.sideBar.customVisibility": {
435-
"type": "boolean",
436-
"default": true,
437-
"description": "Specifies the visibility of Custom in the PowerShell Pro Tools Side Bar."
438-
},
439-
"poshProTools.sideBar.historyVisibility": {
440-
"type": "boolean",
441-
"default": true,
442-
"description": "Specifies the visibility of History Explorer in the PowerShell Pro Tools Side Bar."
443-
},
444-
"poshProTools.sideBar.sessionVisibility": {
445-
"type": "boolean",
446-
"default": true,
447-
"description": "Specifies the visibility of Sessions in the PowerShell Pro Tools Side Bar."
448-
},
449-
"poshProTools.toolbar.runInNewTerminal": {
450-
"type": "boolean",
451-
"default": true,
452-
"description": "Whether to display the Run in New Terminal button."
453-
},
454-
"poshProTools.toolbar.quickScripts": {
455-
"type": "boolean",
456-
"default": true,
457-
"description": "Whether to display the Quick Scripts button."
458-
},
459-
"poshProTools.toolbar.packageAsExecutable": {
460-
"type": "boolean",
461-
"default": true,
462-
"description": "Whether to display the package as executable button."
463-
},
464-
"poshProTools.toolbar.formDesigner": {
465-
"type": "boolean",
466-
"default": true,
467-
"description": "Whether to display the form designer button."
468-
},
469-
"poshProTools.ignoredModules": {
470-
"type": "string",
471-
"default": "",
472-
"markdownDescription": "RapidSense: Modules to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
473-
},
474-
"poshProTools.ignoredAssemblies": {
475-
"type": "string",
476-
"default": "",
477-
"markdownDescription": "RapidSense: Assemblies to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
478-
},
479-
"poshProTools.ignoredTypes": {
480-
"type": "string",
481-
"default": ".*AnonymousType.*;.*ImplementationDetails.*;_.*",
482-
"markdownDescription": "RapidSense: Types to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
483-
},
484-
"poshProTools.ignoredCommands": {
485-
"type": "string",
486-
"default": "",
487-
"markdownDescription": "RapidSense: Commands to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
488-
},
489-
"poshProTools.ignoredVariables": {
490-
"type": "string",
491-
"default": "",
492-
"markdownDescription": "RapidSense: Variables to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
493-
},
494-
"poshProTools.ignoredPaths": {
495-
"type": "string",
496-
"default": "",
497-
"markdownDescription": "RapidSense: Paths to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
498-
},
499-
"poshProTools.defaultPackagePsd1Path": {
500-
"type": "string",
501-
"default": "",
502-
"markdownDescription": "Default package.psd1 file path."
503-
},
504-
"poshProTools.signOnSave": {
505-
"type": "boolean",
506-
"default": false,
507-
"markdownDescription": "Sign PS1 files when they are saved."
508-
},
509-
"poshProTools.signOnSaveCertificate": {
510-
"type": "string",
511-
"default": "",
512-
"markdownDescription": "The certificate to use when signing a script on save. This should be the Get-ChildItem path to the certificate."
513-
},
514-
"poshProTools.excludeAutomaticVariables": {
515-
"type": "boolean",
516-
"default": false,
517-
"markdownDescription": "Whether to exclude automatic variables from the variables window."
518-
},
519-
"poshProTools.clearScreenAfterLoad": {
520-
"type": "boolean",
521-
"default": true,
522-
"markdownDescription": "Whether to clear the terminal after loading PowerShell Pro Tools. Set to false to see any errors loading the module."
523-
},
524-
"poshProTools.disableNewsNotification": {
525-
"type": "boolean",
526-
"default": false,
527-
"markdownDescription": "Disables the notification when Ironman Software publishes news."
375+
"configuration": [
376+
{
377+
"title": "General",
378+
"properties": {
379+
"poshProTools.showUpgradeNotification": {
380+
"type": "boolean",
381+
"default": true,
382+
"description": "Show upgrade notification."
383+
},
384+
"poshProTools.checkForModuleUpdates": {
385+
"type": "boolean",
386+
"default": false,
387+
"description": "Whether to check for updated versions of the modules you have installed. This can be slow if you have a lot of modules installed."
388+
},
389+
"poshProTools.toolbar.runInNewTerminal": {
390+
"type": "boolean",
391+
"default": true,
392+
"description": "Whether to display the Run in New Terminal button."
393+
},
394+
"poshProTools.toolbar.quickScripts": {
395+
"type": "boolean",
396+
"default": true,
397+
"description": "Whether to display the Quick Scripts button."
398+
},
399+
"poshProTools.toolbar.packageAsExecutable": {
400+
"type": "boolean",
401+
"default": true,
402+
"description": "Whether to display the package as executable button."
403+
},
404+
"poshProTools.toolbar.formDesigner": {
405+
"type": "boolean",
406+
"default": true,
407+
"description": "Whether to display the form designer button."
408+
},
409+
"poshProTools.defaultPackagePsd1Path": {
410+
"type": "string",
411+
"default": "",
412+
"markdownDescription": "Default package.psd1 file path."
413+
},
414+
"poshProTools.signOnSave": {
415+
"type": "boolean",
416+
"default": false,
417+
"markdownDescription": "Sign PS1 files when they are saved."
418+
},
419+
"poshProTools.signOnSaveCertificate": {
420+
"type": "string",
421+
"default": "",
422+
"markdownDescription": "The certificate to use when signing a script on save. This should be the Get-ChildItem path to the certificate."
423+
},
424+
"poshProTools.excludeAutomaticVariables": {
425+
"type": "boolean",
426+
"default": false,
427+
"markdownDescription": "Whether to exclude automatic variables from the variables window."
428+
},
429+
"poshProTools.clearScreenAfterLoad": {
430+
"type": "boolean",
431+
"default": true,
432+
"markdownDescription": "Whether to clear the terminal after loading PowerShell Pro Tools. Set to false to see any errors loading the module."
433+
},
434+
"poshProTools.disableNewsNotification": {
435+
"type": "boolean",
436+
"default": false,
437+
"markdownDescription": "Disables the notification when Ironman Software publishes news."
438+
}
439+
}
440+
},
441+
{
442+
"title": "RapidSense",
443+
"properties": {
444+
"poshProTools.ignoredModules": {
445+
"type": "string",
446+
"default": "",
447+
"markdownDescription": "RapidSense: Modules to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
448+
},
449+
"poshProTools.ignoredAssemblies": {
450+
"type": "string",
451+
"default": "",
452+
"markdownDescription": "RapidSense: Assemblies to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
453+
},
454+
"poshProTools.ignoredTypes": {
455+
"type": "string",
456+
"default": ".*AnonymousType.*;.*ImplementationDetails.*;_.*",
457+
"markdownDescription": "RapidSense: Types to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
458+
},
459+
"poshProTools.ignoredCommands": {
460+
"type": "string",
461+
"default": "",
462+
"markdownDescription": "RapidSense: Commands to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
463+
},
464+
"poshProTools.ignoredVariables": {
465+
"type": "string",
466+
"default": "",
467+
"markdownDescription": "RapidSense: Variables to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
468+
},
469+
"poshProTools.ignoredPaths": {
470+
"type": "string",
471+
"default": "",
472+
"markdownDescription": "RapidSense: Paths to ignore. Separate items by a semicolon (;). This setting can include regular expressions."
473+
}
474+
}
475+
},
476+
{
477+
"title": "Side Bar",
478+
"properties": {
479+
"poshProTools.sideBar.astVisibility": {
480+
"type": "boolean",
481+
"default": true,
482+
"description": "Specifies the visibility of the Abstract Syntax Tree in the PowerShell Pro Tools Side Bar."
483+
},
484+
"poshProTools.sideBar.hostProcessVisibility": {
485+
"type": "boolean",
486+
"default": true,
487+
"description": "Specifies the visibility of Host Processes in the PowerShell Pro Tools Side Bar."
488+
},
489+
"poshProTools.sideBar.moduleVisibility": {
490+
"type": "boolean",
491+
"default": true,
492+
"description": "Specifies the visibility of Modules in the PowerShell Pro Tools Side Bar."
493+
},
494+
"poshProTools.sideBar.providerVisibility": {
495+
"type": "boolean",
496+
"default": true,
497+
"description": "Specifies the visibility of Providers in the PowerShell Pro Tools Side Bar."
498+
},
499+
"poshProTools.sideBar.reflectionVisibility": {
500+
"type": "boolean",
501+
"default": true,
502+
"description": "Specifies the visibility of Reflection in the PowerShell Pro Tools Side Bar."
503+
},
504+
"poshProTools.sideBar.quickScriptVisibility": {
505+
"type": "boolean",
506+
"default": true,
507+
"description": "Specifies the visibility of Quick Scripts in the PowerShell Pro Tools Side Bar."
508+
},
509+
"poshProTools.sideBar.jobVisibility": {
510+
"type": "boolean",
511+
"default": true,
512+
"description": "Specifies the visibility of Jobs in the PowerShell Pro Tools Side Bar."
513+
},
514+
"poshProTools.sideBar.variableVisibility": {
515+
"type": "boolean",
516+
"default": true,
517+
"description": "Specifies the visibility of Variables in the PowerShell Pro Tools Side Bar."
518+
},
519+
"poshProTools.sideBar.customVisibility": {
520+
"type": "boolean",
521+
"default": true,
522+
"description": "Specifies the visibility of Custom in the PowerShell Pro Tools Side Bar."
523+
},
524+
"poshProTools.sideBar.historyVisibility": {
525+
"type": "boolean",
526+
"default": true,
527+
"description": "Specifies the visibility of History Explorer in the PowerShell Pro Tools Side Bar."
528+
},
529+
"poshProTools.sideBar.sessionVisibility": {
530+
"type": "boolean",
531+
"default": true,
532+
"description": "Specifies the visibility of Sessions in the PowerShell Pro Tools Side Bar."
533+
}
534+
}
535+
},
536+
{
537+
"title": "Status Bar",
538+
"properties": {
539+
"poshProTools.statusBar.performanceVisibility": {
540+
"type": "boolean",
541+
"default": true,
542+
"markdownDescription": "Visibility of the performance indicator in the status bar."
543+
},
544+
"poshProTools.statusBar.performanceAlignment": {
545+
"type": "string",
546+
"default": "left",
547+
"anyOf": [
548+
"left",
549+
"right"
550+
],
551+
"markdownDescription": "The alignment of the performance indicator in the status bar."
552+
},
553+
"poshProTools.statusBar.performanceRefreshInterval": {
554+
"type": "integer",
555+
"default": 5,
556+
"markdownDescription": "The refresh interval for the performance indicator in the status bar."
557+
},
558+
"poshProTools.statusBar.statusVisibility": {
559+
"type": "boolean",
560+
"default": true,
561+
"markdownDescription": "Visibility of the status indicator in the status bar."
562+
},
563+
"poshProTools.statusBar.rapidSenseVisibility": {
564+
"type": "boolean",
565+
"default": true,
566+
"markdownDescription": "Visibility of the RapidSense indicator in the status bar."
567+
}
528568
}
529569
}
530-
},
570+
],
531571
"keybindings": [
532572
{
533573
"command": "poshProTools.runInNewTerminal",

0 commit comments

Comments
 (0)