Open wcoder opened 4 years ago
When trying to add a snippet out of class, the cursor behaves incorrectly.
https://github.com/wcoder/XToolkit.Snippets/blob/3cdf2752084bd22be0202f97e4bee01282761ecc/VS4Mac/xvm.template.xml#L18-L38
=== Visual Studio Community 2019 for Mac === Version 8.6.3 (build 30) Installation UUID: 718c9426-9b34-4dad-a550-66605f1e5527 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638) Package version: 610000104 === Mono Framework MDK === Runtime: Mono 6.10.0.104 (2019-12/5d03a6fe116) (64-bit) Package version: 610000104 === Roslyn (Language Service) === 3.6.0-3.20210.9+4eafdcb1bcbd8d3573f2ba6065e56d9b9ce4f8a3 === NuGet === Version: 5.6.0.6591 === .NET Core SDK === SDK: /usr/local/share/dotnet/sdk/3.1.300/Sdks SDK Versions: 3.1.300 3.1.202 3.1.200 3.1.102 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.10.0/lib/mono/msbuild/Current/bin/Sdks === .NET Core Runtime === Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 3.1.4 3.1.2 2.1.18 2.1.17 2.1.16 === Xamarin.Profiler === Version: 1.6.13.11 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler === Updater === Version: 11 === Apple Developer Tools === Xcode 11.5 (16139) Build 11E608c === Xamarin.Android === Version: 10.3.1.4 (Visual Studio Community) Commit: xamarin-android/d16-6/3a10de9 Android SDK: /Users/yauhenipakala/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 7.0 (API level 24) 8.0 (API level 26) 8.1 (API level 27) SDK Tools Version: 26.1.1 SDK Platform Tools Version: 29.0.6 SDK Build Tools Version: 30.0.0 rc2 Build Information: Mono: 165f4b0 Java.Interop: xamarin/java.interop/d16-6@2cab35c ProGuard: xamarin/proguard/master@905836d SQLite: xamarin/sqlite/3.31.1@49232bc Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-6@bfb66f3 === Microsoft OpenJDK for Mobile === Java SDK: /Users/yauhenipakala/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL === Android SDK Manager === Version: 16.6.0.50 Hash: 5901879 Branch: remotes/origin/d16-6 Build date: 2020-05-15 00:43:06 UTC === Android Device Manager === Version: 16.6.0.95 Hash: 45d17b5 Branch: remotes/origin/d16-6 Build date: 2020-05-15 00:43:26 UTC === Xamarin Designer === Version: 16.6.0.329 Hash: d4f8bcd13 Branch: remotes/origin/d16-6 Build date: 2020-04-24 02:16:02 UTC === Xamarin.Mac === Version: 6.18.2.1 (Visual Studio Community) Hash: 29c4ea731 Branch: d16-6 Build date: 2020-05-26 17:03:04-0400 === Xamarin.iOS === Version: 13.18.2.1 (Visual Studio Community) Hash: 29c4ea731 Branch: d16-6 Build date: 2020-05-26 17:03:05-0400 === Build Information === Release ID: 806030030 Git revision: f43dfeb8c84a15c535a3a0861dcbc4c68bd73815 Build date: 2020-06-04 12:43:00-04 Build branch: release-8.6 Xamarin extensions: f43dfeb8c84a15c535a3a0861dcbc4c68bd73815 === Operating System === Mac OS X 10.15.5 Darwin 19.5.0 Darwin Kernel Version 19.5.0 Tue May 26 20:41:44 PDT 2020 root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64 === Enabled user installed extensions === BinObjCleaner 1.5 MonoDevelop.TouchBar 1.0.3 DT.VS4Mac.SolutionName 1.2 Code Coverage 2.0.1-alpha
Description
When trying to add a snippet out of class, the cursor behaves incorrectly.
Demo
Correct behavior (in class)
Incorrect (outside the class)
Snippet sources
https://github.com/wcoder/XToolkit.Snippets/blob/3cdf2752084bd22be0202f97e4bee01282761ecc/VS4Mac/xvm.template.xml#L18-L38
VS4Mac info