Skip to content

chore: Add VS Code recommended extensions, settings, and build tasks #78

Description

@PlagueHO

Summary

Add the standard VS Code workspace configuration files aligned with SqlServerDsc.

Files to create

.vscode/extensions.json

{
    "recommendations": [
        "davidanson.vscode-markdownlint",
        "pspester.pester-test",
        "ms-vscode.powershell",
        "streetsidesoftware.code-spell-checker"
    ]
}

.vscode/tasks.json

Label Build group Command
noop ./build.ps1 -Tasks noop
build build (default) ./build.ps1 -AutoRestore -Tasks build
test test (default) ./build.ps1 -Tasks noop; Invoke-Pester -Path './tests/Unit' -Output Detailed
test-with-coverage test Unit tests with coverage
hqrmtest ./build.ps1 -AutoRestore -Tasks hqrmtest -CodeCoverageThreshold 0

Include problemMatcher and presentation settings. Adapt test paths to tests/Unit/DSCResources/. Reference: SqlServerDsc tasks.json.

.vscode/settings.json

Based on SqlServerDsc settings.json: PowerShell formatting, PSScriptAnalyzer, Pester, useInstructionFiles: true, cSpell with FileContentDsc-relevant words (no SQL Server terms), pwsh terminal profiles.

.vscode/analyzersettings.psd1

Based on SqlServerDsc analyzersettings.psd1 — remove SqlServerDsc-specific custom rule path.

Acceptance criteria

  • .vscode/extensions.json created
  • .vscode/tasks.json created; test paths reflect tests/Unit/DSCResources/
  • .vscode/settings.json created with no SQL Server–specific content
  • .vscode/analyzersettings.psd1 created

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions