xsburg / vscode-javascript-booster

Sprinkle extra refactorings, code actions and commands over your JavaScript! 🍩 TypeScript and Flow are first class citizens as well!
https://marketplace.visualstudio.com/items?itemName=sburg.vscode-javascript-booster
160 stars 13 forks source link

Convert to arrow function removes async keyword #12

Closed r-murphy closed 4 years ago

r-murphy commented 5 years ago

Hi. Firstly, great extension. Thanks for creating it.

When I use Convert to arrow function on the following, it removes the async keyword.

module.exports = {
    up: async function() {
        await Promise.resolve();
    }
};

Result

module.exports = {
    up: () => {
        await Promise.resolve();
    }
};
xsburg commented 4 years ago

Fixed in v0.11.0.