Skip to content

Commit

Permalink
Add ignoreUnread for VS Code plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk authored and plantain-00 committed Aug 29, 2021
1 parent c01ace0 commit ee25c53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface Option {
strict: boolean
ignoreCatch: boolean
jsEnable: boolean
ignoreUnreadAnys: boolean
}

function init(modules: { typescript: typeof tsserverlibrary }) {
Expand Down
4 changes: 4 additions & 0 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"typeCoverage.jsEnable": {
"type": "boolean",
"description": "validate javascript file."
},
"typeCoverage.ignoreUnread": {
"type": "boolean",
"description": "allow writes to variables with implicit any types"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/vscode/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function synchronizeConfiguration(api: API) {
strict: configuration.get('strict'),
ignoreCatch: configuration.get('ignoreCatch'),
jsEnable: configuration.get('jsEnable'),
ignoreUnreadAnys: configuration.get('ignoreUnread'),
}
api.configurePlugin(configId, options)
}
Expand Down

0 comments on commit ee25c53

Please sign in to comment.