private credentialsDeleteHandler?:()

in runtimes/runtimes/lsp/router/lspServer.ts [39:68]


    private credentialsDeleteHandler?: (type: CredentialsType) => void

    private clientSupportsNotifications?: boolean
    private initializeResult?: PartialInitializeResult

    private notificationRouter?: RouterByServerName<NotificationParams, NotificationFollowupParams>
    private notificationFollowupHandler?: NotificationHandler<NotificationFollowupParams>

    constructor(
        private lspConnection: Connection,
        private encoding: Encoding,
        private logger: Logging
    ) {
        this.notification = {
            showNotification: params => {
                if (this.clientSupportsNotifications) {
                    if (!this.notificationRouter) {
                        this.logger.log(`Notifications are not supported: serverInfo is not defined`)
                    }
                    this.notificationRouter?.send(
                        params => this.lspConnection.sendNotification(showNotificationRequestType.method, params),
                        params
                    )
                }
            },
            onNotificationFollowup: handler => {
                this.notificationFollowupHandler = handler
            },
        }
    }