/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/ServerExitCodes.cs
31 строка
1 KB
David Barbet
Implement LSP daemon mode (#84199)
25 июл 2026, 00:26
Не верифицирован
25 июл 2026, 00:26
490f516
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.CodeAnalysis.LanguageServer; /// <summary> /// Exit codes used by the language server to indicate different termination reasons. /// </summary> internal static class ServerExitCodes { /// <summary> /// The server exited normally. /// </summary> public const int Success = 0; /// <summary> /// The server is exiting because the client process has exited. /// This occurs when the server is monitoring a client process (via the processId /// provided in the initialize request) and that process exits, or when we encounter /// issues while trying to determine if the client process is still running. /// </summary> public const int ClientProcessExited = 1; /// <summary> /// A process started with <c>--daemon</c> exited because another daemon already owns the requested /// pipe. This is recoverable (the client will connect to the existing daemon); it is reported as a /// non-zero (but non-crashing) exit so it is distinguishable from a normal shutdown. /// </summary> public const int DaemonAlreadyRunning = 2; }