@codingame/monaco-vscode-theme-service-override 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-theme-service-override",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0
|
|
22
|
-
"@codingame/monaco-vscode-files-service-override": "2.0
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-files-service-override": "2.1.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
4
|
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { equalsIgnoreCase } from 'vscode/vscode/vs/base/common/strings';
|
|
@@ -387,11 +387,11 @@ registerAction2(class extends Action2 {
|
|
|
387
387
|
constructor() {
|
|
388
388
|
super({
|
|
389
389
|
id: SelectColorThemeCommandId,
|
|
390
|
-
title:
|
|
390
|
+
title: ( localize2WithPath(
|
|
391
391
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
392
392
|
'selectTheme.label',
|
|
393
|
-
|
|
394
|
-
)),
|
|
393
|
+
'Color Theme'
|
|
394
|
+
)),
|
|
395
395
|
category: Categories.Preferences,
|
|
396
396
|
f1: true,
|
|
397
397
|
keybinding: {
|
|
@@ -449,11 +449,11 @@ registerAction2(class extends Action2 {
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super({
|
|
451
451
|
id: SelectFileIconThemeCommandId,
|
|
452
|
-
title:
|
|
452
|
+
title: ( localize2WithPath(
|
|
453
453
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
454
454
|
'selectIconTheme.label',
|
|
455
|
-
|
|
456
|
-
)),
|
|
455
|
+
'File Icon Theme'
|
|
456
|
+
)),
|
|
457
457
|
category: Categories.Preferences,
|
|
458
458
|
f1: true
|
|
459
459
|
});
|
|
@@ -500,11 +500,11 @@ registerAction2(class extends Action2 {
|
|
|
500
500
|
constructor() {
|
|
501
501
|
super({
|
|
502
502
|
id: SelectProductIconThemeCommandId,
|
|
503
|
-
title:
|
|
503
|
+
title: ( localize2WithPath(
|
|
504
504
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
505
505
|
'selectProductIconTheme.label',
|
|
506
|
-
|
|
507
|
-
)),
|
|
506
|
+
'Product Icon Theme'
|
|
507
|
+
)),
|
|
508
508
|
category: Categories.Preferences,
|
|
509
509
|
f1: true
|
|
510
510
|
});
|
|
@@ -621,11 +621,11 @@ registerAction2(class extends Action2 {
|
|
|
621
621
|
constructor() {
|
|
622
622
|
super({
|
|
623
623
|
id: 'workbench.action.generateColorTheme',
|
|
624
|
-
title:
|
|
624
|
+
title: ( localize2WithPath(
|
|
625
625
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
626
626
|
'generateColorTheme.label',
|
|
627
|
-
|
|
628
|
-
)),
|
|
627
|
+
'Generate Color Theme From Current Settings'
|
|
628
|
+
)),
|
|
629
629
|
category: Categories.Developer,
|
|
630
630
|
f1: true
|
|
631
631
|
});
|
|
@@ -675,11 +675,11 @@ registerAction2(class extends Action2 {
|
|
|
675
675
|
constructor() {
|
|
676
676
|
super({
|
|
677
677
|
id: toggleLightDarkThemesCommandId,
|
|
678
|
-
title:
|
|
678
|
+
title: ( localize2WithPath(
|
|
679
679
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
680
680
|
'toggleLightDarkThemes.label',
|
|
681
|
-
|
|
682
|
-
)),
|
|
681
|
+
'Toggle between Light/Dark Themes'
|
|
682
|
+
)),
|
|
683
683
|
category: Categories.Preferences,
|
|
684
684
|
f1: true,
|
|
685
685
|
});
|
|
@@ -717,11 +717,11 @@ registerAction2(class extends Action2 {
|
|
|
717
717
|
constructor() {
|
|
718
718
|
super({
|
|
719
719
|
id: browseColorThemesInMarketplaceCommandId,
|
|
720
|
-
title:
|
|
720
|
+
title: ( localize2WithPath(
|
|
721
721
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
722
722
|
'browseColorThemeInMarketPlace.label',
|
|
723
|
-
|
|
724
|
-
)),
|
|
723
|
+
'Browse Color Themes in Marketplace'
|
|
724
|
+
)),
|
|
725
725
|
category: Categories.Preferences,
|
|
726
726
|
f1: true,
|
|
727
727
|
});
|
|
@@ -782,7 +782,7 @@ MenuRegistry.appendMenuItem(ThemesSubMenu, {
|
|
|
782
782
|
title: ( localizeWithPath(
|
|
783
783
|
'vs/workbench/contrib/themes/browser/themes.contribution',
|
|
784
784
|
'selectTheme.label',
|
|
785
|
-
|
|
785
|
+
'Color Theme'
|
|
786
786
|
))
|
|
787
787
|
},
|
|
788
788
|
order: 1
|
|
@@ -158,7 +158,8 @@ let WorkbenchThemeService = class WorkbenchThemeService {
|
|
|
158
158
|
const initializeColorTheme = async () => {
|
|
159
159
|
const devThemes = this.colorThemeRegistry.findThemeByExtensionLocation(extDevLoc);
|
|
160
160
|
if (devThemes.length) {
|
|
161
|
-
|
|
161
|
+
const matchedColorTheme = devThemes.find(theme => theme.type === this.currentColorTheme.type);
|
|
162
|
+
return this.setColorTheme(matchedColorTheme ? matchedColorTheme.id : devThemes[0].id, undefined);
|
|
162
163
|
}
|
|
163
164
|
const preferredColorScheme = this.getPreferredColorScheme();
|
|
164
165
|
const prevScheme = this.storageService.get(PERSISTED_OS_COLOR_SCHEME, PERSISTED_OS_COLOR_SCHEME_SCOPE);
|