ipatalas / vscode-postfix-ts

Postfix notation for TypeScript/Javascript - extension for VS Code
MIT License
159 stars 43 forks source link

can't work in shorter syntax for method definitions on object #66

Closed qijizh closed 2 years ago

qijizh commented 2 years ago

It works perfectly in normal way of method definitions for objects, like obj.fn1 and obj.fn2 , but can't work in shorter syntax for method definitions on objects, like obj.fn3.

const obj = {
  fn1: function (params) {
    params.return    //works
  },
  fn2: (params) => {
    params.return    //works
  },
  fn3(params) {
    params.return    //can't work
  },
};

My English expression may not be very good, please forgive me

ipatalas commented 2 years ago

Found the problem, fix will be available in next release.

ipatalas commented 2 years ago

Fixed in new release, please update