Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RiderMenu.cs 832B

123456789101112131415161718192021222324252627282930
  1. using JetBrains.Annotations;
  2. using Packages.Rider.Editor;
  3. using Unity.CodeEditor;
  4. // ReSharper disable once CheckNamespace
  5. namespace JetBrains.Rider.Unity.Editor
  6. {
  7. /// <summary>
  8. /// Is called via commandline from Rider Notification after checking out from source control.
  9. /// </summary>
  10. [UsedImplicitly]
  11. public static class RiderMenu
  12. {
  13. /// <summary>
  14. /// Is called via commandline from Rider Notification after checking out from source control.
  15. /// </summary>
  16. [UsedImplicitly]
  17. public static void MenuOpenProject()
  18. {
  19. if (RiderScriptEditor.IsRiderOrFleetInstallation(RiderScriptEditor.CurrentEditor))
  20. {
  21. // Force the project files to be sync
  22. CodeEditor.CurrentEditor.SyncAll();
  23. // Load Project
  24. CodeEditor.CurrentEditor.OpenProject();
  25. }
  26. }
  27. }
  28. }