Skip to content

Commit

Permalink
GH-2068: Do not handle the .md resources with diff scheme.
Browse files Browse the repository at this point in the history
But fall back to the default text editor. So that compare does not fail.

This commit also makes the `tslint` version update in the `yarnl.lock`.
See: a119c0c

Closes #2068.

Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
kittaakos committed Jun 15, 2018
1 parent db9ee3e commit 7b3e012
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MarkdownPreviewHandler implements PreviewHandler {
protected readonly openerService: OpenerService;

canHandle(uri: URI): number {
return uri.path.ext === '.md' ? 500 : 0;
return uri.scheme === 'file' && uri.path.ext === '.md' ? 500 : 0;
}

renderContent(params: RenderContentParams): HTMLElement {
Expand Down

0 comments on commit 7b3e012

Please sign in to comment.