This file contains hidden or 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
| #!/usr/bin/env bash | |
| # install the supported SDK 9.0 (9.0.112 when writing this script) | |
| sudo add-apt-repository -y ppa:dotnet/backports | |
| sudo apt-get update | |
| sudo apt-get reinstall -y dotnet-sdk-9.0 | |
| # download the compatible SDK 9.0, required for slnx (9.0.205 when writing this script) | |
| wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh | |
| chmod +x ./dotnet-install.sh |
This file contains hidden or 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
| using System; | |
| using System.Threading; | |
| using SyntaxTree.VisualStudio.Unity.Messaging; | |
| // copy SyntaxTree.VisualStudio.Unity.Messaging.dll along with Program.cs | |
| // on mac you can find it here: /Applications/Visual\ Studio.app/Contents/Resources/lib/monodevelop/AddIns/MonoDevelop.Unity/SyntaxTree.VisualStudio.Unity.Messaging.dll | |
| // compile with: csc Program.cs -r:SyntaxTree.VisualStudio.Unity.Messaging.dll | |
| // depending on the VSTU/VSTUM version, you will need to add -r:netstandard.dll |
This file contains hidden or 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
| hookMonacoCompletionProvider(provider) { | |
| const provideCompletionItems = provider.prototype.provideCompletionItems; | |
| const owner = this; | |
| provider.prototype.provideCompletionItems = async function (model, position, context, token) { | |
| // reuse 'this' to preserve context through call (using apply) | |
| const result = await provideCompletionItems.apply(this, [model, position, context, token]); | |
| if (!result || !result.suggestions) | |
| return result; |
This file contains hidden or 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
| using Microsoft.CodeAnalysis; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Collections.Immutable; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.Diagnostics; | |
| using Microsoft.CodeAnalysis.Text; |
This file contains hidden or 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
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Xml.Linq; | |
| using UnityEditor; | |
| #if ENABLE_VSTU | |
| using SyntaxTree.VisualStudio.Unity.Bridge; |
This file contains hidden or 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
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Threading; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.Text; | |
| namespace SyntaxTree.VisualStudio.Unity.Debugger.Evaluation | |
| { | |
| internal static class DebugSyntaxFactory |
This file contains hidden or 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
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Xml.Linq; | |
| using UnityEditor; | |
| #if ENABLE_VSTU | |
| using SyntaxTree.VisualStudio.Unity.Bridge; |
This file contains hidden or 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
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Xml.Linq; | |
| using UnityEditor; | |
| #if ENABLE_VSTU | |
| using SyntaxTree.VisualStudio.Unity.Bridge; |
This file contains hidden or 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
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Xml.Linq; | |
| using UnityEditor; | |
| #if ENABLE_VSTU | |
| using SyntaxTree.VisualStudio.Unity.Bridge; |
This file contains hidden or 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
| var zip = ZipArchive.Read(filename); | |
| foreach (var entry in zip.Entries) | |
| { | |
| entry.LocalFileHeader.Filename = entry.LocalFileHeader.Filename.Replace("\\", "/"); | |
| entry.CentralDirectoryHeader.Filename = entry.LocalFileHeader.Filename; | |
| } | |
| zip.Write(filename); |
NewerOlder