Dimkin
Dimkin

Reputation: 690

webstorm autocomplete for require(.json)

Webstorm is pretty smart when providing auto completion for node.js modules. unfortunatelly for some reason if the required module is a json file i.e

var settings = require('./settings.json);

it does require it and build an object with the data but, no autocomplete is provided in the editor.

Anyone have any solutions for that?

Thanks.

Upvotes: 2

Views: 844

Answers (1)

lena
lena

Reputation: 93738

Looks like it was a bug, logged as WEB-10568.

The issue has been marked as Fixed since this answer was originally posted.

Upvotes: 4

Related Questions