client/atom/main.js in yoda-language-server-0.5.0 vs client/atom/main.js in yoda-language-server-0.6.0

- old
+ new

@@ -5,9 +5,29 @@ class YodaClient extends AutoLanguageClient { constructor() { super() } + preInitialization(connection) { + connection.onTelemetryEvent(({ type, phase, message }) => { + if (!this.busySignalService) { return; } + if (type != 'initialization') { return; } + + if (this.initializationBusyMessage) { + this.initializationBusyMessage.setTitle(message); + } else { + this.initializationBusyMessage = this.busySignalService.reportBusy(message); + } + }); + } + + postInitialization(_server) { + if (this.initializationBusyMessage) { + this.initializationBusyMessage.dispose(); + this.initializationBusyMessage = null; + } + } + getGrammarScopes () { return ['source.ruby', 'source.rb', 'source.ruby.rails'] } getLanguageName () { return 'Ruby' } getServerName () { return 'Yoda' } getConnectionType() { return 'stdio' }