-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Update utils.ts #27
Conversation
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) { |
There was a problem hiding this comment.
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 [];
}
fix #23 |
Hello again, |
} | ||
|
||
if (start === undefined || end === undefined) { | ||
return []; |
There was a problem hiding this comment.
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
well, because kossnikita has verified it works - is it possible to merge and update ? |
@kossnikita well, because the pull request is still open :-( , its possible to send the working extension to me ? |
You have to build it by yourself. You require node.js and yarn npx vsce package --yarn It generates |
ok, THX, now it works also for me ;-) |
Please note, you should fix issues I mentioned before. Use |
dimIndex now allows starting from zero