typescript-language-server / typescript-language-server

TypeScript & JavaScript Language Server

Home Page:https://www.npmjs.com/package/typescript-language-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated property not marked as such

greg0ire opened this issue · comments

Consider the following piece of code:

interface Hi {
    /** @deprecated */
    stopUsingMe?: string
}
export function foo(): Hi {
    return {
        stopUsingMe: "toto"
    }
}

I would expect a diagnosis letting me know that I shouldn't use stopUsingMe inside foo(), but that does not happen.
I'm using v4.3.3

Note that it works for other elements, for example if I deprecate a function, it's stricken through at every call site.

Diagnostics are provided by typescript/tsserver. You should ask about it in the typescript repo instead.

It does look related! Thanks 🙏