Skip to content

intellisense for json objects #30812

@Meir017

Description

@Meir017

I have the files config.js:

module.exports = {
    username: 'meir',
    password: '123456'
};

and config.json:

{
    "username": "meir",
    "password": "123456"
}

when requiring that file from another file I get intellisense on that object.
app.js:

const config = require('./config.js');

config. // suggests username & password

However when using raw json file I get no intellisense at all:

const config = require('./config.json');

config. // random stuff

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions