Skip to content

Commit

Permalink
use url for path
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 15, 2021
1 parent c12e77f commit a341713
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MarkdownSnippets/Reading/FileSnippetExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static async Task AppendUrlAsSnippet(ICollection<Snippet> snippets, strin
throw new SnippetException($"Unable to get UrlAsSnippet: {url}");
}

var snippet = Snippet.Build(1, content!.LineCount(), content!, key, GetLanguageFromPath(url), null);
var snippet = Snippet.Build(1, content!.LineCount(), content!, key, GetLanguageFromPath(url), url);
snippets.Add(snippet);

using var reader = new StringReader(content!);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ artifacts:
on_failure:
- ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name },
Error: ,
FileLocation: null,
FileLocation: https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/src/appveyor.yml(1-13),
IsInError: false
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Usage
}
},
Error: ,
FileLocation: null,
FileLocation: https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/src/Tests/Snippets/Usage.cs(1-45),
IsInError: false
},
{
Expand Down

0 comments on commit a341713

Please sign in to comment.