You've already forked com.unity.ide.cursor
mirror of
https://github.com/boxqkrtm/com.unity.ide.cursor.git
synced 2026-05-19 09:10:09 +00:00
com.unity.ide.visualstudio@2.0.12
## [2.0.12] - 2021-10-20 Integration: - Do not block asset opening when only a VS instance without a loaded solution is found. - Only check package version once per Unity session. - Improved support for Visual Studio For Mac 2022.
This commit is contained in:
31
Editor/SessionSettings.cs
Normal file
31
Editor/SessionSettings.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Microsoft.Unity.VisualStudio.Editor
|
||||
{
|
||||
internal static class SessionSettings
|
||||
{
|
||||
internal static string GetKey([CallerMemberName] string memberName = "")
|
||||
{
|
||||
return $"{typeof(SessionSettings).FullName}.{memberName}";
|
||||
}
|
||||
|
||||
public static bool PackageVersionChecked
|
||||
{
|
||||
get
|
||||
{
|
||||
return SessionState.GetBool(GetKey(), false);
|
||||
}
|
||||
set
|
||||
{
|
||||
SessionState.SetBool(GetKey(), value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user