Example #1
0
        /// <summary>
        /// Starts the language service with the specified TCP socket port.
        /// </summary>
        /// <param name="languageServicePort">The port number for the language service.</param>
        public void StartLanguageService(int languageServicePort)
        {
            this._languageServer = new Protocol.Server.LanguageServer(new TcpSocketServerChannel(languageServicePort));

            this._languageServer.Start().Wait();

            Logger.Write(
                LogLevel.Normal,
                string.Format(
                    "Language service started, listening on port {0}",
                    languageServicePort));
        }
Example #2
0
 /// <summary>
 /// Stops the language or debug services if either were started.
 /// </summary>
 public void StopServices()
 {
     this._languageServer?.Stop().Wait();
     this._languageServer = null;
 }