Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2 Adds TS/JS Support #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
## [1.0.2] — 2022-09-29
## Unreleased

I'll update this with the correct version and release date when I cut a new release. I worry users might get confused if the change log says 1.0.2 but there isn't a v1.0.2 tag.


- [#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",
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
"version": "1.0.2",
"version": "1.0.1",

VS Code's publication tool will update this when I publish a new release.

"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