Skip to content

Commit

Permalink
ProjectGeneration handles .omnisharp, .editiorconfig, and analyzers
Browse files Browse the repository at this point in the history
No booleans.
  • Loading branch information
Chizaruu committed Apr 1, 2023
1 parent b65c86d commit 7c66820
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 589 deletions.
12 changes: 7 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Code Editor Package for Visual Studio Code

<<<<<<< HEAD
## [1.3.1] - 2023-04-01

- Moved .omnisharp, .editorconfig, and analyzer generation to ProjectGeneration.cs to be in line with the rest of the project
- Simplified XElement creation in ProjectGeneration.cs to be more readable

## [1.3.0] - 2023-04-01

- Added complete SDK support, this allows you to use Omnisharp's useModernNet in your project (Special thanks to Andrew Spiering @wackoisgod)
Expand All @@ -9,8 +13,6 @@
- Added support for .Net 4.8 API compatibility level for 2022.1 and above
- Fixed failure while loading the analyzer reference 'Unity.SourceGenerators'

=======
>>>>>>> 8298f45 (Better Support & Formatting)
## [1.2.7] - 2023-03-19

- Added Unity Roslyn analyzers support (See <https://code.visualstudio.com/docs/other/unity#_enabling-unity-warnings>)
Expand Down Expand Up @@ -98,6 +100,6 @@ Add %LOCALAPPDATA%/Programs to the path of install paths.

## [1.0.3] - 2019-01-01

### This is the first release of *Unity Package vscode_editor*
### This is the first release of _Unity Package vscode_editor_

Using the newly created api to integrate Visual Studio Code with Unity.
Using the newly created api to integrate Visual Studio Code with Unity.
7 changes: 7 additions & 0 deletions Editor/ProjectGeneration/FileIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public interface IFileIO
string ReadAllText(string fileName);
void WriteAllText(string fileName, string content);

void Copy(string sourceFileName, string destFileName, bool overwrite);

void CreateDirectory(string pathName);
string EscapedRelativePathFor(string file, string projectDirectory);
}
Expand All @@ -33,6 +35,11 @@ public void WriteAllText(string fileName, string content)
File.WriteAllText(fileName, content, Encoding.UTF8);
}

public void Copy(string sourceFileName, string destFileName, bool overwrite)
{
File.Copy(sourceFileName, destFileName, overwrite);
}

public void CreateDirectory(string pathName)
{
Directory.CreateDirectory(pathName);
Expand Down
Loading

0 comments on commit 7c66820

Please sign in to comment.