Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
frarees committed Oct 26, 2020
1 parent f80273f commit 1dbedb6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [0.6.1] - 2020-10-26

### Changed
- Fix crash on initialization.

## [0.6.0] - 2020-10-17

### Added
Expand Down Expand Up @@ -104,6 +109,7 @@
- Support for MacVim on macOS.
- Support for Sublime Text 3 on macOS.

[0.6.1]: https://github.com/frarees/easyeditor/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/frarees/easyeditor/compare/v0.5.1...v0.6.0
[0.5.1]: https://github.com/frarees/easyeditor/compare/v0.5.0...v0.5.1
[0.5.0]: https://github.com/frarees/easyeditor/compare/v0.4.3...v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion Editor/EasyEditor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"overrideReferences": true,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
Expand Down
10 changes: 6 additions & 4 deletions Editor/ExternalCodeEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ private static bool SupportsExtension(string path)

private static void OnAfterAssemblyReload()
{
if (!Registry.Instance)
{
return;
}

if (Registry.Instance.TryGetDiscoveryFromEditorPath(CodeEditor.CurrentEditorInstallation, out Discovery discovery))
{
if (discovery.AutoGenerate)
Expand All @@ -71,10 +76,7 @@ private static void OnBeforeAssemblyReload()

private ExternalCodeEditor()
{
if (Registry.LoadInstance())
{
Installations = Registry.Instance.GetInstallations();
}
Installations = Registry.LoadInstance() ? Registry.Instance.GetInstallations() : new CodeEditor.Installation[] { };
}

public void Initialize(string editorInstallationPath)
Expand Down
2 changes: 1 addition & 1 deletion Editor/Reflected/EasyEditor.Reflected.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"overrideReferences": true,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "com.frarees.easyeditor",
"version": "0.6.0",
"version": "0.6.1",
"displayName": "Easy Editor",
"description": "Support external editors with ease.",
"unity": "2019.2",
"documentationUrl": "https://github.com/frarees/easyeditor/tree/v0.6.0",
"changelogUrl": "https://github.com/frarees/easyeditor/blob/v0.6.0/CHANGELOG.md",
"licensesUrl": "https://github.com/frarees/easyeditor/blob/v0.6.0/LICENSE.md",
"documentationUrl": "https://github.com/frarees/easyeditor/tree/v0.6.1",
"changelogUrl": "https://github.com/frarees/easyeditor/blob/v0.6.1/CHANGELOG.md",
"licensesUrl": "https://github.com/frarees/easyeditor/blob/v0.6.1/LICENSE.md",
"keywords": [
"editor"
],
Expand Down

0 comments on commit 1dbedb6

Please sign in to comment.