Skip to content

Commit 7b098df

Browse files
committed
main
1 parent c0e7fdd commit 7b098df

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

docs/document/Modern CSharp/docs/Understanding String Formatting.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ string.Format("{0,-20}", 123);
5353

5454

5555
## `ToString` & `IFormattable`
56+
57+
58+
## Formatting Strategy

docs/document/PowerShell/docs/Registry/1.Overview.md

Whitespace-only changes.

docs/services/GithubService.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,21 @@ class GithubRepositoryEndPointMethods {
9999
const split = repo.split('/');
100100
const owner = split[0];
101101
const _repo = split[1];
102-
return (
103-
await octokit.rest.repos.getContent({
104-
owner: owner,
105-
repo: _repo,
106-
path: path,
107-
})
108-
).data as RepoFileSystemInfo;
102+
try {
103+
return (
104+
await octokit.rest.repos.getContent({
105+
owner: owner,
106+
repo: _repo,
107+
path: path,
108+
})
109+
).data as RepoFileSystemInfo;
110+
} catch (error) {
111+
console.error(`failed to fetch remote file from github repo: ${repo}/${path}`);
112+
console.log(
113+
`The path might have been changed, check out: "https://github.com/${repo}/${path}"`,
114+
);
115+
}
109116
}
110-
throw new Error();
111117
}
112118
}
113119
export class GithubService {

docs/services/ThemeService.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@ export type RemoteThemeInfo = {
2121
};
2222

2323
const themeInfos = {
24-
'Eva Light': { repo: 'fisheva/Eva-Theme', path: 'themes/Eva-Light.json', branch: 'master' },
25-
'Eva Dark': { repo: 'fisheva/Eva-Theme', path: 'themes/Eva-Dark.json', branch: 'master' },
24+
'Eva Light': {
25+
repo: 'fisheva/Eva-Theme',
26+
path: 'VSCode/themes/Eva-Light.json',
27+
branch: 'master',
28+
},
29+
'Eva Dark': {
30+
repo: 'fisheva/Eva-Theme',
31+
path: 'VSCode/themes/Eva-Dark.json',
32+
branch: 'master',
33+
},
2634
} satisfies Record<string, RemoteThemeInfo>;
2735

2836
export type ThemeName = keyof typeof themeInfos;

0 commit comments

Comments
 (0)