-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2267 from JetBrains/net221-vk-RIDER-71269
Asset Finder issues
- Loading branch information
Showing
63 changed files
with
3,124 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...per-unity/src/Unity/CSharp/Daemon/Stages/Highlightings/IconsProviders/IconProviderUtil.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using JetBrains.Application.Settings; | ||
using JetBrains.ReSharper.Plugins.Unity.Core.Application.Settings; | ||
|
||
namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.Highlightings.IconsProviders | ||
{ | ||
public class IconProviderUtil | ||
{ | ||
public static bool ShouldShowGutterMarkIcon(IContextBoundSettingsStoreLive settings) | ||
{ | ||
return settings.GetValue((UnitySettings key) => key.GutterIconMode) != GutterIconMode.None; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...om/jetbrains/rider/plugins/unity/actions/UnityVersionRiderTechnicalSupportInfoProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.jetbrains.rider.plugins.unity.actions | ||
|
||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import com.intellij.openapi.application.ex.ApplicationInfoEx | ||
import com.intellij.openapi.project.Project | ||
import com.jetbrains.rider.actions.RiderTechnicalSupportEntry | ||
import com.jetbrains.rider.actions.RiderTechnicalSupportInfoProvider | ||
import com.jetbrains.rider.plugins.unity.FrontendBackendHost | ||
|
||
class UnityVersionRiderTechnicalSupportInfoProvider : RiderTechnicalSupportInfoProvider { | ||
|
||
override fun getEntry(e: AnActionEvent, appInfo: ApplicationInfoEx): RiderTechnicalSupportEntry { | ||
return RiderTechnicalSupportEntry("\$UNITY_VERSION", getUnityVersion(e.project)) | ||
} | ||
|
||
|
||
fun getUnityVersion(project: Project?): String { | ||
if (project == null) | ||
return "" | ||
|
||
if (project.isDisposed) | ||
return "" | ||
|
||
val unityHost = FrontendBackendHost.getInstance(project) | ||
|
||
return unityHost.model.unityApplicationData.valueOrNull?.applicationVersion ?: "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...llGroupsEnabled/gold/animationFindUsagesForCommonBehaviorFieldValue_allGroupsEnabled.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Search target | ||
AnimationController.X:int | ||
Found usages (2 usages found) | ||
<Assembly-CSharp> (1 usage found) | ||
Assets (1 usage found) | ||
AnimationController.cs (1 usage found) | ||
AnimationController (1 usage found) | ||
Foo() (1 usage found) | ||
[289, Assets/AnimationController.cs] (14: 9) X = 0; | ||
Assets (1 usage found) | ||
Anime.controller (1 usage found) | ||
X = "777" |
12 changes: 12 additions & 0 deletions
12
...od_allGroupsEnabled/gold/animationFindUsagesForCommonBehaviorMethod_allGroupsEnabled.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Search target | ||
TestScript1.Setup(int b):void | ||
Found usages (2 usages found) | ||
<Assembly-CSharp> (1 usage found) | ||
Assets (1 usage found) | ||
TestScript1.cs (1 usage found) | ||
TestScript1 (1 usage found) | ||
Setup(int) (1 usage found) | ||
[239, Assets/TestScript1.cs] (11: 9) Setup(b); | ||
Assets (1 usage found) | ||
Anime.controller (1 usage found) | ||
m_MethodName: Setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
rider/testData/solutions/AnimatorFindUsages/Assets/AnimationController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.Events; | ||
|
||
public class AnimationController : StateMachineBehaviour | ||
{ | ||
public int X; | ||
public UnityEvent eventZ; | ||
|
||
public void Foo() | ||
{ | ||
// should be more than 1 usage | ||
X = 0; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
rider/testData/solutions/AnimatorFindUsages/Assets/AnimationController.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.