Skip to content

using module "..\PathRelativeModule" rejected by Intellisense #64

Closed
@AndrewGaspar

Description

@AndrewGaspar

I've got a project with a file hierarchy like this:

\
  \ Module
    Module.psd1
    Module.psm1
  \ Tests
    Module.Tests.ps1

At the top of Module.Tests.ps1, I have

using module "..\Module"

PowerShell itself seems to accept this statement (it loads all the module's functions and types as expected), but VS Code rejects it with the error "Could not find the module '..\Module'.". I believe this Intellisense is incorrect, but my understanding of the "using module" syntax is admittedly incomplete.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions