Skip to content

Import-Module Terminal-Icons breaks application of custom Format.ps1xml files (when loaded in VsCode) #128

@DEberhardt

Description

@DEberhardt

When I load Import-Module Terminal-Icons during my profile, and then load my custom module that contains Format.ps1xml files that are loaded via the Modules PSD1, they do not appear

Expected Behavior

Custom Format files to be applied when custom module is imported after Terminal-Icons

Current Behavior

No custom Format files seem to apply

Possible Solution

unknown, current workaround: not loading Terminal-Icons

Steps to Reproduce (for bugs)

  1. Import-Module Terminal-Icons
  2. Import any Module with Formats
  3. Run a command that would use one of the formats

Context

This has cost my afternoon/evening yesterday and let me to dream of code, not an unpleasant dreams, but Formats where merging into dynamic parameters, so you could class it as a nightmare?

Your Environment

  • Module version used: 0.11.0
  • Operating System and PowerShell version:
Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

NOTE: I admit, during writing of this issue, I have realized I only tested this in VsCode... it seems, the issue is with the VsCode terminal, as it works normally in Windows Terminal
Still wanted to bring it to your attention, if not useful, please close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions