Skip to content

Commit

Permalink
grrr
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Oct 4, 2024
1 parent 0c8cf29 commit 31158ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/services/ThemeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ class ThemeService implements IThemeService {
async register(theme: TextmateTheme): Promise<void> {
if (this.isThemeRegistered(theme.name as ThemeName)) return;
if (theme.name.includes('Eva')) {
const foo = theme.tokenColors.filter(x =>
x.scope.includes('punctuation.definition.comment'),
)[0];
foo.scope = foo.scope.replace(/punctuation.definition.comment,/, '');
const foo = theme.tokenColors.filter(x => x.scope.startsWith('comment'))[0];
foo.settings.fontStyle = '';
}
this.innerThemeService.loadTheme(theme);
}
Expand Down

0 comments on commit 31158ee

Please sign in to comment.