Skip to content

Commit

Permalink
Fix Scheme (#109)
Browse files Browse the repository at this point in the history
* Fixed Scheme
  • Loading branch information
fr43nk authored Aug 2, 2022
1 parent 831a7ed commit a766c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ccContentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class CCContentProvider implements TextDocumentContentProvider, QuickDiff
return "canceled";
}

if (uri.scheme === 'cc-file-org') {
uri = uri.with({ scheme: 'cc-file-current', path: uri.query });
if (uri.scheme === 'cc-orig') {
uri = uri.with({ scheme: 'cc', path: uri.query });
}

let { path, version } = fromCcUri(uri);
Expand Down

0 comments on commit a766c5a

Please sign in to comment.