Skip to content

Typescript autocomplete puts errors on require calls #3507

@labrown

Description

@labrown

Describe the bug
After running dnscontrol write-types I noticed that the block of require calls in my main dnscontrol.js file was marked with errors in vscode:

Image

When I mouse over the marked text I see this error message:

Image

I expect this is fallout from re-using the require command from javascript as part of the dnscontrol DSL.

To Reproduce
Steps to reproduce the behavior:

  1. Install dnscontrol
  2. Follow instructions to install the typescript autocomplete files and activate them in a dnscontro.js file
  3. Add a require("file") call to your dnscontro.js
  4. See the incorrect error text

A clear and concise description of what you expected to happen:

The typescript autocomplete should handle the require top-level command properly, not through an inappropriate error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: Documentationclosed_staleClosed. Idle for more than 6 months. Please feel free to re-open to bring it back to life

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions