New feature in typescript 5.1 and typescript-language-server 4.0  https://github.com/typescript-language-server/typescript-language-server/pull/732