typescript-vim
typescript-vim copied to clipboard
Wrong indent within function with Promise<type> return signature
Expected behaviour after indenting:
export function a() {
const x = _.chain(1)
.value();
return Promise
.resolve(x);
}
export function b(): Promise<number> {
const x = _.chain(1)
.value();
return Promise
.resolve(x);
}
Actual:
export function a() {
const x = _.chain(1)
.value();
return Promise
.resolve(x);
}
export function b(): Promise<number> {
const x = _.chain(1)
.value();
return Promise
.resolve(x);
}
Thanks. The indent is mostly copied from https://github.com/pangloss/vim-javascript, which would not recognize the return type I guess. I will take a look.