Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Set process priority to "below normal" #565

Merged
merged 2 commits into from
Feb 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/LanguageServer/Impl/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
namespace Microsoft.Python.LanguageServer.Server {
internal static class Program {
public static void Main(string[] args) {
#if RELEASE
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal;
#endif

CheckDebugMode();
using (CoreShell.Create()) {
var services = CoreShell.Current.ServiceManager;
Expand Down