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

Update utils.ts #27

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update utils.ts #27

wants to merge 3 commits into from

Conversation

EGOKM
Copy link

@EGOKM EGOKM commented Jan 4, 2024

dimIndex now allows starting from zero

dimIndex now allows starting from zero
src/utils.ts Outdated
if ( start < 0 || end < 0 || end<start ) {
throw new Error('dimIndex Element Range Spec invalid.');
}
/* if (!start || !end) {

Choose a reason for hiding this comment

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

Actually this is necessary undefined check
You can replace this with

if (start === undefined || end === undefined) {
    return [];
}

@kossnikita
Copy link

fix #23

@EGOKM
Copy link
Author

EGOKM commented Jan 8, 2024

Hello again,
well it seems that haneefdm is not working on peripheral-viewer any more ? So I wanted to ask thegecko for some Review ?
Any Chance to check the PR ?
THX, Enrico

@EGOKM
Copy link
Author

EGOKM commented Jan 17, 2024

just to avoid something like this:
image

@EGOKM EGOKM marked this pull request as draft January 30, 2024 06:39
@EGOKM EGOKM marked this pull request as ready for review February 16, 2024 14:33
}

if (start === undefined || end === undefined) {
return [];

Choose a reason for hiding this comment

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

still has indent issues
tabs instead spaces, 4 space indent
Please, use lint before commit

@kossnikita
Copy link

Works fine to me
image

@EGOKM
Copy link
Author

EGOKM commented Apr 12, 2024

well, because kossnikita has verified it works - is it possible to merge and update ?

@EGOKM
Copy link
Author

EGOKM commented Apr 19, 2024

@kossnikita well, because the pull request is still open :-( , its possible to send the working extension to me ?

@kossnikita
Copy link

You have to build it by yourself. You require node.js and yarn

npx vsce package --yarn

It generates peripheral-viewer-xxx.vsix you can install with VS Code command Extensions: Install from VSIX...

@EGOKM
Copy link
Author

EGOKM commented Apr 19, 2024

ok, THX, now it works also for me ;-)

@kossnikita
Copy link

Please note, you should fix issues I mentioned before. Use yarn lint to check syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants