Skip to content

Adds PowerShell module checks - #108

Open
ChristianJ-TV wants to merge 1 commit into
mainfrom
adds-powershell-module-checks
Open

Adds PowerShell module checks#108
ChristianJ-TV wants to merge 1 commit into
mainfrom
adds-powershell-module-checks

Conversation

@ChristianJ-TV

@ChristianJ-TV ChristianJ-TV commented Aug 3, 2026

Copy link
Copy Markdown
Member

Adds a lightweight PowerShell module dependency validation script and a workspace task to ensure required PowerShell modules are available.

@ChristianJ-TV ChristianJ-TV added the Improvement Indicates an improvement for existing functionality label Aug 3, 2026
Comment thread .vscode/tasks.json
},
"runOptions": {
"instanceLimit": 1,
"runOn": "folderOpen"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this locally and was expecting that the "Open Folder" menu option in VSCode would trigger this function to run. But where does the output go? I did not see anything even though I manually uninstalled PSScriptAnalyzer which is used as the default module to check for by the function.
Shouldn't there also be a list of our required modules here that is passed to the function to check for?

Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

# Normalize the requested module list: remove blanks, trim whitespace, and drop duplicates.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and all comments below do not really add any new insight. They just repeat the code. I would recommend to remove them all unless there is really some kind of insight available when reading them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Indicates an improvement for existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants