You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any object in the document has a method with the previous syntax, Serenade will throw an error with every subsequent command.
Bug 2 - Generator Functions
If there's any generator function present in your code, Serenade will throw an error with every subsequent command.
function* example() {
yield "Hello World";
}
It doesn't matter where the * is, after the function keyword, before the function name or in the middle.
Bug 3 - Voice Commands to Traverse Arrays
Serenade groups all array elements on a global scale. As it currently stands, it's quite difficult to refactor arrays with Serenade. Let me explain. Example code:
function test() {
const a = [1, 2];
}
function test2() {
const b = [3, 4];
const c = [5, 6, 7];
}
Saying element two takes me to the number 2 in the first array.
Saying element five takes me to the number 5 in the third array.
It doesn't matter where my cursor is, Serenade treats all elements as if they're in the same array. I think the expected behavior is that these commands would prioritize the arrays that are on the same line as the cursor. Or in case of nested arrays it would prioritize the array that the cursor is currently inside of.
Bug 4 - Private Methods & Attributes
In TypeScript, Serenade handles private methods and attributes well.
If I'm inside a class and say: add private method hello, I get what you would expect:
class Example {
private hello() {
}
}
However, I get the same result in JavaScript, which is wrong. In JavaScript, private methods and attributes are declared with a # sign. So, following the previous example, in JavaScript I should get:
class Example {
#hello() {
}
}
The text was updated successfully, but these errors were encountered:
thanks for the report! agree these are issues worth fixing. (1) and (2) are likely fixed in the tree-sitter grammar, (3) in core, and (4) in corpusgen.
System Information
Serenade Version: v2.0.1
OS and Version: Windows 11 Version 10.0.22000 Build 22000
Application: VS Code
Issue Description
Bug 1 - Object Methods
When it comes to adding methods to an object, if we use the following shorthand, Serenade will stop working.
If any object in the document has a method with the previous syntax, Serenade will throw an error with every subsequent command.
Bug 2 - Generator Functions
If there's any generator function present in your code, Serenade will throw an error with every subsequent command.
It doesn't matter where the
*
is, after the function keyword, before the function name or in the middle.Bug 3 - Voice Commands to Traverse Arrays
Serenade groups all array elements on a global scale. As it currently stands, it's quite difficult to refactor arrays with Serenade. Let me explain. Example code:
Saying
element two
takes me to the number2
in the first array.Saying
element five
takes me to the number5
in the third array.It doesn't matter where my cursor is, Serenade treats all elements as if they're in the same array. I think the expected behavior is that these commands would prioritize the arrays that are on the same line as the cursor. Or in case of nested arrays it would prioritize the array that the cursor is currently inside of.
Bug 4 - Private Methods & Attributes
In TypeScript, Serenade handles private methods and attributes well.
If I'm inside a class and say:
add private method hello
, I get what you would expect:However, I get the same result in JavaScript, which is wrong. In JavaScript, private methods and attributes are declared with a
#
sign. So, following the previous example, in JavaScript I should get:The text was updated successfully, but these errors were encountered: