Skip to content

Preview extension: There is no document formatter for 'powershell'-files installed. #1730

@fullenw1

Description

@fullenw1

When I use the preview extension, the formatter does not work.
There is no auto-format when I type and when I press SHIFT + ALT + F, I get this error message:

There is no document formatter for 'powershell'-files installed.

Attached Logs

Successfully activated to Diagnostic but got this error when I typed Open PowerShell Extension Logs Folder in the command palette:

command 'PowerShell.OpenLogFolder' not found

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.30.2
PowerShell Extension Version 1.11.0 - DISABLED
PowerShell Extension Version Preview 2.0.0-preview.1

PowerShell Information

Name Value
PSVersion 6.1.2
PSEdition Core
GitCommitId 6.1.2
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.1.2
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-account ms-vscode 0.8.0
azurerm-vscode-tools msazurermtools 0.4.2
code-settings-sync Shan 3.2.4
gitlens eamodio 9.4.1
PowerShell ms-vscode 1.11.0
shell-launcher Tyriar 0.3.0
vscode-icons robertohuertasm 8.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions