Skip to content

Commit

Permalink
ISSUE: 2 Adds TS/JS Support
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJanecke committed Jun 20, 2023
1 parent f487763 commit 992db85
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

This file documents all notable changes to the VS Code Lizard extension.

## [1.0.2] — 2022-09-29

- [#2](https://github.com/brobeson/vscode-lizard/issues/2) Adds Typescript,
javascript support

## [1.0.1] — 2022-09-29

### Fixed
Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-lizard",
"displayName": "VS Code Lizard",
"description": "Run complexity analysis on your code.",
"version": "1.0.1",
"version": "1.0.2",
"publisher": "brobeson",
"author": {
"name": "brobeson",
Expand Down Expand Up @@ -30,7 +30,9 @@
"ccn"
],
"activationEvents": [
"onLanguage:cpp"
"onLanguage:cpp",
"onLanguage:typescript",
"onLanguage:javascript"
],
"main": "./out/lizard.js",
"extensionKind": [
Expand Down
2 changes: 1 addition & 1 deletion src/lizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function lintDocument(
log: vscode.OutputChannel
) {
// TODO Expand this list to include all the languages supported by Lizard.
if (!["cpp"].includes(file.languageId) || file.uri.scheme !== "file") {
if (!["cpp", "typescript", "javascript"].includes(file.languageId) || file.uri.scheme !== "file") {
return [];
}
const limits = readLimits();
Expand Down

0 comments on commit 992db85

Please sign in to comment.