Skip to content

Commit

Permalink
Merge pull request #1625 from filipw/bugfix/metadata
Browse files Browse the repository at this point in the history
Fixed "go to metadata"
  • Loading branch information
david-driscoll authored Oct 5, 2019
2 parents 57e8052 + 82d9428 commit b010270
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to the project will be documented in this file.

## [1.34.5] - not yet released
* Fixed 1.34.4 regression that caused "go to metadata" to not work ([#1624](https://github.com/OmniSharp/omnisharp-roslyn/issues/1624), PR: [#1625](https://github.com/OmniSharp/omnisharp-roslyn/pull/1625))

## [1.34.4] - 2019-09-30
* Upgraded to MSBuild 16.3 and Mono MSBuild 16.3 (from Mono 6.4.0) to support .NET Core 3.0 RTM (PR: [#1616](https://github.com/OmniSharp/omnisharp-roslyn/pull/1616), [#1612](https://github.com/OmniSharp/omnisharp-roslyn/pull/1612), [#1606](https://github.com/OmniSharp/omnisharp-roslyn/pull/1606))
* Fixed behavior when there are multiple handlers are defined for a language for a given request (PR: [#1582](https://github.com/OmniSharp/omnisharp-roslyn/pull/1582))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class GotoDefinitionResponse : ICanBeEmptyResponse
[JsonConverter(typeof(ZeroBasedIndexConverter))]
public int Column { get; set; }
public MetadataSource MetadataSource { get; set; }
public bool IsEmpty => FileName == null || FileName == string.Empty;
public bool IsEmpty => string.IsNullOrWhiteSpace(FileName) && MetadataSource == null;
}
}
1 change: 1 addition & 0 deletions tests/OmniSharp.Roslyn.CSharp.Tests/GoToDefinitionFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ private async Task TestGoToMetadataAsync(TestFile testFile, string expectedAssem
var response = await GetResponseAsync(new[] { testFile }, wantMetadata: true);

Assert.NotNull(response.MetadataSource);
Assert.False(response.IsEmpty);
Assert.Equal(expectedAssemblyName, response.MetadataSource.AssemblyName);
Assert.Equal(expectedTypeName, response.MetadataSource.TypeName);

Expand Down

0 comments on commit b010270

Please sign in to comment.