-
Notifications
You must be signed in to change notification settings - Fork 492
Typescript autocomplete puts errors on require calls #3507
Copy link
Copy link
Closed
Labels
Category: Documentationclosed_staleClosed. Idle for more than 6 months. Please feel free to re-open to bring it back to lifeClosed. Idle for more than 6 months. Please feel free to re-open to bring it back to life
Description
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:
When I mouse over the marked text I see this error message:
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:
- Install dnscontrol
- Follow instructions to install the typescript autocomplete files and activate them in a dnscontro.js file
- Add a
require("file")call to your dnscontro.js - 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Category: Documentationclosed_staleClosed. Idle for more than 6 months. Please feel free to re-open to bring it back to lifeClosed. Idle for more than 6 months. Please feel free to re-open to bring it back to life

