diff --git a/client/src/common/client.ts b/client/src/common/client.ts index 2ffdec1a..588414bd 100644 --- a/client/src/common/client.ts +++ b/client/src/common/client.ts @@ -155,6 +155,14 @@ export type ErrorHandlerResult = { * An optional message to be presented to the user. */ message?: string; + + /** + * If set to true the client assumes that the corresponding + * error handler has presented an appropriate message to the + * user and the message will only be log to the client's + * output channel. + */ + handled?: boolean; }; /** @@ -182,6 +190,14 @@ export type CloseHandlerResult = { * An optional message to be presented to the user. */ message?: string; + + /** + * If set to true the client assumes that the corresponding + * close handler has presented an appropriate message to the + * user and the message will only be log to the client's + * output channel. + */ + handled?: boolean; }; /** @@ -1498,7 +1514,7 @@ export abstract class BaseLanguageClient implements FeatureClient { this.error(`Stopping server failed`, error, false); });