Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Jun 27, 2024
1 parent f57efad commit ef6a940
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/services/ThemeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ class ThemeService implements IThemeService {
return this.innerThemeService.getLoadedThemes().includes(name);
}
async fetchThemeObject(info: RemoteThemeInfo): Promise<TextmateTheme> {
console.error('hello???');
const matches = (
await githubService.fromRepository(info.repo).getTree({ branch: info.branch })
).filter(x => x.path === info.path);
if (!matches.length) throw new Error();
const url = (await getRepoFileInfo(info.repo, matches[0].path!)).download_url!;
const url = (await getRepoFileInfo(info.repo, info.path)).download_url!;
try {
const response = await axios.get<string>(url, { responseType: 'text' });
return (await import('jsonc-parser')).parse(response.data) as TextmateTheme;
Expand Down

0 comments on commit ef6a940

Please sign in to comment.