Skip to content

Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects#25116

Merged
mjbvz merged 3 commits intomicrosoft:masterfrom
mjbvz:add-check-js-setting
Apr 21, 2017
Merged

Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects#25116
mjbvz merged 3 commits intomicrosoft:masterfrom
mjbvz:add-check-js-setting

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Apr 21, 2017

Fixes #25113

Adds new setting to enable js typechecking in implicit projects

// cc @mhegazy

@mjbvz mjbvz added this to the April 2017 milestone Apr 21, 2017
@mjbvz mjbvz self-assigned this Apr 21, 2017
@mjbvz mjbvz requested a review from kieferrm April 21, 2017 03:02
Comment thread extensions/typescript/package.nls.json Outdated
"typescript.selectTypeScriptVersion.title": "Select TypeScript Version",
"jsDocCompletion.enabled": "Enable/disable auto JSDoc comments"
"jsDocCompletion.enabled": "Enable/disable auto JSDoc comments",
"javascript.implicitProjectConfig.checkJs": "Enable/disable type checking in loose JavaScript files that are not included in any jsconfig or tsconfig projects. Requires TypeScript >= 2.3.1."
Copy link
Copy Markdown
Collaborator Author

@mjbvz mjbvz Apr 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure how to clearly express when this setting applies and when it does not

The setting applies only when a javascript file is not included in a JavaScript project as defined in a jsconfig or tsconfig. If the file is part of a project, the user must instead enable checkJs in the config file itself

@kieferrm Let me know if you have any suggestions here

Copy link
Copy Markdown
Member

@kieferrm kieferrm Apr 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjbvz how about: "Enable/disable semantic checking of JavaScript files. Existing jsconfig.json or tsconfig.json files override this setting. Requires TypeScript >= 2.3.1." ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better. I'll make the change

this.checkJs = this.readCheckJs();

disposables.push(workspace.onDidChangeConfiguration(() => {
let oldLoggingLevel = this.tsServerLogLevel;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Managing config like this is becoming pretty old. I'll look into refactoring this logic to be clearer in another change

@mjbvz mjbvz merged commit a1677b5 into microsoft:master Apr 21, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects By Default

3 participants