Skip to content

Notebook Mode - #Require statement appear as markdown cells #2867

@EmmanuelDefranc

Description

@EmmanuelDefranc

Issue Description

When putting a #Require statement in a .ps1 file and enabling Notebook Mode, the line appears as a markdown cell.
image

Attached Logs

No logs required

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.18363
VSCode 1.48.0-insider
PowerShell Extension Version 2020.7.0

PowerShell Information

Name Value
PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.0.0 6.1.0 6.2.0 7.0.3
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.9.1
powershell-preview ms-vscode 2020.7.0
vscode-azurefunctions ms-azuretools 0.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions