Skip to content

Top scope references block intellisense #207

@jacobeatsspam

Description

@jacobeatsspam

What Versions are you running?

OS Version: MacOS Mojave
VSCode Version: 1.40.0
Puppet Extension Version: 0.21.0
PDK Version: 1.14.1
Using agent instead of pdk.

What You Are Seeing?

Mouse-over information is properly displayed for classes without absolute references:

foo::bar { 'foobar': }

But is not displayed at all for classes with absolute references:

::foo::bar { 'foobar': }

What is Expected?

I expect to see a tooltip with parameters displayed.

When I delete the top scope prefix ::, it works as expected, but because this is a completely valid form of puppet code, I felt it best to file this bug.

How Did You Get This To Happen? (Steps to Reproduce)

Inherited a codebase with lots of top scope usage.

Output Log

With top scope:

ERROR -- : (textDocument/hover) ::foo::bar is not a valid puppet type

Without top scope:

{"jsonrpc":"2.0","id":18,"result":{"contents":"**foo::bar** Resource\n\n---\n* ensure"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions