You've already forked com.unity.ide.cursor
mirror of
https://github.com/boxqkrtm/com.unity.ide.cursor.git
synced 2026-05-18 00:10:11 +00:00
com.unity.ide.visualstudio@2.0.16
## [2.0.16] - 2022-06-08 Integration: - Prevent ADB Refresh while being in safe-mode with a URP project - Fixed an issue keeping the progress bar visible even after opening a script with Visual Studio.
This commit is contained in:
5
Editor/AppleEventIntegration~/howtobuild.txt
Normal file
5
Editor/AppleEventIntegration~/howtobuild.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Bundle style (release)
|
||||
xcodebuild -configuration Release
|
||||
|
||||
Standalone style (test)
|
||||
clang++ -D BUILD_APP -framework Foundation -framework AppKit main.mm
|
||||
@@ -1,26 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f68874d6ae00db4a993b9507d065658
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 1
|
||||
isExplicitlyReferenced: 0
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7cec3e1820a40be4486946c20d7ffd00
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -11,6 +11,9 @@
|
||||
#include <windows.h>
|
||||
#include <shlwapi.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
|
||||
#include "BStrHolder.h"
|
||||
#include "ComPtr.h"
|
||||
#include "dte80a.tlh"
|
||||
@@ -441,6 +444,10 @@ static bool VisualStudioOpenFile(
|
||||
}
|
||||
|
||||
int wmain(int argc, wchar_t* argv[]) {
|
||||
|
||||
// We need this to properly display UTF16 text on the console
|
||||
_setmode(_fileno(stdout), _O_U16TEXT);
|
||||
|
||||
if (argc != 3 && argc != 5) {
|
||||
std::wcerr << argc << ": wrong number of arguments\n" << "Usage: com.exe installationPath solutionPath [fileName lineNumber]" << std::endl;
|
||||
for (int i = 0; i < argc; i++) {
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ffa4010724f8d54aacbed867d4a5aa6
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 1
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,26 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 013868b12dff0dc43adcc33513ae71bf
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 1
|
||||
isExplicitlyReferenced: 0
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97115cd910ade104a9d05d65a6b6b7d9
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
6
Editor/COMIntegration/COMIntegration~/howtobuild.txt
Normal file
6
Editor/COMIntegration/COMIntegration~/howtobuild.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Direct style:
|
||||
cl /EHsc /std:c++17 COMIntegration.cpp /link Shlwapi.lib /out:"..\Release\COMIntegration.exe"
|
||||
|
||||
CMake style:
|
||||
cmake ../COMIntegration~ -B ./build
|
||||
cmake --build ./build --config=release -- /p:OutDir=..
|
||||
@@ -1 +0,0 @@
|
||||
cl /EHsc /std:c++17 COMIntegration.cpp /link Shlwapi.lib /out:"..\Release\COMIntegration.exe"
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b44687349be79f4184ba013fb6ffa0c
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,6 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
using System;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Compilation;
|
||||
|
||||
namespace Microsoft.Unity.VisualStudio.Editor
|
||||
@@ -37,6 +38,17 @@ namespace Microsoft.Unity.VisualStudio.Editor
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly Lazy<bool> _lazyIsInSafeMode = new Lazy<bool>(() =>
|
||||
{
|
||||
// internal static extern bool isInSafeMode { get {} }
|
||||
var ieu = typeof(EditorUtility);
|
||||
var pinfo = ieu.GetProperty("isInSafeMode", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
|
||||
if (pinfo == null)
|
||||
return false;
|
||||
|
||||
return Convert.ToBoolean(pinfo.GetValue(null));
|
||||
});
|
||||
public static bool IsInSafeMode => _lazyIsInSafeMode.Value;
|
||||
public static Version LatestLanguageVersionSupported(Assembly assembly)
|
||||
{
|
||||
#if UNITY_2020_2_OR_NEWER
|
||||
|
||||
@@ -175,7 +175,6 @@ namespace Microsoft.Unity.VisualStudio.Editor
|
||||
|
||||
public void SyncAll()
|
||||
{
|
||||
AssetDatabase.Refresh();
|
||||
_generator.Sync();
|
||||
}
|
||||
|
||||
@@ -319,7 +318,9 @@ namespace Microsoft.Unity.VisualStudio.Editor
|
||||
CreateNoWindow = true,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
StandardOutputEncoding = System.Text.Encoding.Unicode,
|
||||
RedirectStandardError = true,
|
||||
StandardErrorEncoding = System.Text.Encoding.Unicode,
|
||||
}
|
||||
};
|
||||
var result = process.Start();
|
||||
|
||||
@@ -239,6 +239,9 @@ namespace Microsoft.Unity.VisualStudio.Editor
|
||||
if (!EditorPrefs.GetBool("kAutoRefresh", true))
|
||||
return;
|
||||
|
||||
if (UnityInstallation.IsInSafeMode)
|
||||
return;
|
||||
|
||||
RunOnceOnUpdate(AssetDatabase.Refresh);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user