Language-server-protocol: Localization of diagnostic messages

Created on 20 Oct 2016  路  3Comments  路  Source: microsoft/language-server-protocol

Are diagnostic messages supposed to be read by machines only? I thought that's what error codes are for.

If the messages are supposed to be read by humans, how can the client request the language? Maybe specify an Accept-Language header with the same semantics as http.

feature-request help wanted

Most helpful comment

Maybe the locale should come as part of initialize or didChangeConfiguration.

All 3 comments

Maybe the locale should come as part of initialize or didChangeConfiguration.

The locale used by the client should come in the initialize request. In VS Code we distinguish between the request locale (for example de-CH) and the one VS Code chooses to use (de) in case the server implements its own language lookup.

Dups #754 which got addressed for 3.16

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andfoy picture andfoy  路  6Comments

angelozerr picture angelozerr  路  6Comments

davidanthoff picture davidanthoff  路  3Comments

svenefftinge picture svenefftinge  路  5Comments

pajatopmr picture pajatopmr  路  3Comments