@codingame/monaco-vscode-update-service-override 11.1.2 → 12.0.1
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/index.d.ts +2 -1
- package/index.js +13 -1
- package/package.json +18 -7
- package/vscode/src/vs/platform/update/common/update.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +24 -23
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +53 -53
- package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +35 -35
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +39 -36
- package/vscode/src/vs/workbench/contrib/update/browser/update.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +136 -132
- package/vscode/src/vs/workbench/services/update/browser/updateService.d.ts +30 -0
- package/vscode/src/vs/workbench/services/update/browser/updateService.js +5 -3
- package/update.js +0 -12
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { IUpdateService } from 'vscode/vscode/vs/platform/update/common/update.service';
|
|
4
|
+
import { BrowserUpdateService } from './vscode/src/vs/workbench/services/update/browser/updateService.js';
|
|
5
|
+
import './vscode/src/vs/workbench/contrib/update/browser/update.contribution.js';
|
|
6
|
+
|
|
7
|
+
function getServiceOverride() {
|
|
8
|
+
return {
|
|
9
|
+
[IUpdateService.toString()]: new SyncDescriptor(BrowserUpdateService, [], true)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,15 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "12.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "12.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "12.0.1",
|
|
22
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {},
|
|
25
|
+
"peerDependenciesMeta": {},
|
|
17
26
|
"main": "index.js",
|
|
18
27
|
"module": "index.js",
|
|
19
28
|
"types": "index.d.ts",
|
|
@@ -22,10 +31,12 @@
|
|
|
22
31
|
"default": "./index.js"
|
|
23
32
|
},
|
|
24
33
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
34
|
+
"default": "./vscode/src/*.js",
|
|
35
|
+
"types": "./vscode/src/*.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./*": {
|
|
38
|
+
"default": "./*.js",
|
|
39
|
+
"types": "./*.d.ts"
|
|
26
40
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
|
|
30
41
|
}
|
|
31
42
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
+
|
|
1
2
|
import { isWindows, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
4
|
+
import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
4
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
6
|
|
|
6
|
-
const configurationRegistry = (
|
|
7
|
+
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
7
8
|
configurationRegistry.registerConfiguration({
|
|
8
9
|
id: 'update',
|
|
9
10
|
order: 15,
|
|
10
|
-
title: ( localize(
|
|
11
|
+
title: ( localize(2215, "Update")),
|
|
11
12
|
type: 'object',
|
|
12
13
|
properties: {
|
|
13
14
|
'update.mode': {
|
|
14
15
|
type: 'string',
|
|
15
16
|
enum: ['none', 'manual', 'start', 'default'],
|
|
16
17
|
default: 'default',
|
|
17
|
-
scope:
|
|
18
|
+
scope: ConfigurationScope.APPLICATION,
|
|
18
19
|
description: ( localize(
|
|
19
|
-
|
|
20
|
+
2216,
|
|
20
21
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
21
22
|
)),
|
|
22
23
|
tags: ['usesOnlineServices'],
|
|
23
24
|
enumDescriptions: [
|
|
24
|
-
( localize(
|
|
25
|
+
( localize(2217, "Disable updates.")),
|
|
25
26
|
( localize(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
2218,
|
|
28
|
+
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
29
|
+
)),
|
|
29
30
|
( localize(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
2219,
|
|
32
|
+
"Check for updates only on startup. Disable automatic background update checks."
|
|
33
|
+
)),
|
|
33
34
|
( localize(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
2220,
|
|
36
|
+
"Enable automatic update checks. Code will check for updates automatically and periodically."
|
|
37
|
+
))
|
|
37
38
|
],
|
|
38
39
|
policy: {
|
|
39
40
|
name: 'UpdateMode',
|
|
@@ -43,13 +44,13 @@ configurationRegistry.registerConfiguration({
|
|
|
43
44
|
'update.channel': {
|
|
44
45
|
type: 'string',
|
|
45
46
|
default: 'default',
|
|
46
|
-
scope:
|
|
47
|
+
scope: ConfigurationScope.APPLICATION,
|
|
47
48
|
description: ( localize(
|
|
48
|
-
|
|
49
|
+
2216,
|
|
49
50
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
50
51
|
)),
|
|
51
52
|
deprecationMessage: ( localize(
|
|
52
|
-
|
|
53
|
+
2221,
|
|
53
54
|
"This setting is deprecated, please use '{0}' instead.",
|
|
54
55
|
'update.mode'
|
|
55
56
|
))
|
|
@@ -57,10 +58,10 @@ configurationRegistry.registerConfiguration({
|
|
|
57
58
|
'update.enableWindowsBackgroundUpdates': {
|
|
58
59
|
type: 'boolean',
|
|
59
60
|
default: true,
|
|
60
|
-
scope:
|
|
61
|
-
title: ( localize(
|
|
61
|
+
scope: ConfigurationScope.APPLICATION,
|
|
62
|
+
title: ( localize(2222, "Enable Background Updates on Windows")),
|
|
62
63
|
description: ( localize(
|
|
63
|
-
|
|
64
|
+
2223,
|
|
64
65
|
"Enable to download and install new VS Code versions in the background on Windows."
|
|
65
66
|
)),
|
|
66
67
|
included: isWindows && !isWeb
|
|
@@ -68,9 +69,9 @@ configurationRegistry.registerConfiguration({
|
|
|
68
69
|
'update.showReleaseNotes': {
|
|
69
70
|
type: 'boolean',
|
|
70
71
|
default: true,
|
|
71
|
-
scope:
|
|
72
|
+
scope: ConfigurationScope.APPLICATION,
|
|
72
73
|
description: ( localize(
|
|
73
|
-
|
|
74
|
+
2224,
|
|
74
75
|
"Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
|
|
75
76
|
)),
|
|
76
77
|
tags: ['usesOnlineServices']
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IAction } from "vscode/vscode/vs/base/common/actions";
|
|
2
|
+
import type { Tokens } from "vscode/vscode/vs/base/common/marked/marked";
|
|
3
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
+
import { IClipboardService } from "vscode/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
5
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
7
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
8
|
+
import { IPreferencesService } from "vscode/vscode/vs/workbench/services/preferences/common/preferences.service";
|
|
9
|
+
export declare class SimpleSettingRenderer {
|
|
10
|
+
private readonly _configurationService;
|
|
11
|
+
private readonly _contextMenuService;
|
|
12
|
+
private readonly _preferencesService;
|
|
13
|
+
private readonly _telemetryService;
|
|
14
|
+
private readonly _clipboardService;
|
|
15
|
+
private readonly codeSettingAnchorRegex;
|
|
16
|
+
private readonly codeSettingSimpleRegex;
|
|
17
|
+
private _updatedSettings;
|
|
18
|
+
private _encounteredSettings;
|
|
19
|
+
private _featuredSettings;
|
|
20
|
+
constructor(_configurationService: IConfigurationService, _contextMenuService: IContextMenuService, _preferencesService: IPreferencesService, _telemetryService: ITelemetryService, _clipboardService: IClipboardService);
|
|
21
|
+
get featuredSettingStates(): Map<string, boolean>;
|
|
22
|
+
private replaceAnchor;
|
|
23
|
+
private replaceSimple;
|
|
24
|
+
getHtmlRenderer(): (token: Tokens.HTML | Tokens.Tag) => string;
|
|
25
|
+
getCodeSpanRenderer(): (token: Tokens.Codespan) => string;
|
|
26
|
+
settingToUriString(settingId: string, value?: any): string;
|
|
27
|
+
private getSetting;
|
|
28
|
+
parseValue(settingId: string, value: string): string | number | boolean | undefined;
|
|
29
|
+
private render;
|
|
30
|
+
private viewInSettingsMessage;
|
|
31
|
+
private restorePreviousSettingMessage;
|
|
32
|
+
private isAlreadySet;
|
|
33
|
+
private booleanSettingMessage;
|
|
34
|
+
private stringSettingMessage;
|
|
35
|
+
private numberSettingMessage;
|
|
36
|
+
private renderSetting;
|
|
37
|
+
private getSettingMessage;
|
|
38
|
+
restoreSetting(settingId: string): Promise<void>;
|
|
39
|
+
setSetting(settingId: string, currentSettingValue: any, newSettingValue: any): Promise<void>;
|
|
40
|
+
getActions(uri: URI): IAction[] | undefined;
|
|
41
|
+
private showContextMenu;
|
|
42
|
+
updateSetting(uri: URI, x: number, y: number): Promise<void>;
|
|
43
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
3
4
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
5
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
5
6
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
7
|
+
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
6
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
9
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
8
10
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
9
11
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
10
|
-
import { settingKeyToDisplayFormat } from 'vscode/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels';
|
|
12
|
+
import { settingKeyToDisplayFormat } from '@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels';
|
|
11
13
|
|
|
12
14
|
let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
13
15
|
constructor(_configurationService, _contextMenuService, _preferencesService, _telemetryService, _clipboardService) {
|
|
@@ -16,16 +18,16 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
16
18
|
this._preferencesService = _preferencesService;
|
|
17
19
|
this._telemetryService = _telemetryService;
|
|
18
20
|
this._clipboardService = _clipboardService;
|
|
19
|
-
this._updatedSettings = (
|
|
20
|
-
this._encounteredSettings = (
|
|
21
|
-
this._featuredSettings = (
|
|
22
|
-
this.codeSettingAnchorRegex = (
|
|
21
|
+
this._updatedSettings = ( new Map());
|
|
22
|
+
this._encounteredSettings = ( new Map());
|
|
23
|
+
this._featuredSettings = ( new Map());
|
|
24
|
+
this.codeSettingAnchorRegex = ( new RegExp(
|
|
23
25
|
`^<a (href)=".*code.*://settings/([^\\s"]+)"(?:\\s*codesetting="([^"]+)")?>`
|
|
24
|
-
))
|
|
25
|
-
this.codeSettingSimpleRegex = (
|
|
26
|
+
));
|
|
27
|
+
this.codeSettingSimpleRegex = ( new RegExp(`^setting\\(([^\\s:)]+)(?::([^)]+))?\\)$`));
|
|
26
28
|
}
|
|
27
29
|
get featuredSettingStates() {
|
|
28
|
-
const result = (
|
|
30
|
+
const result = ( new Map());
|
|
29
31
|
for (const [settingId, value] of this._featuredSettings) {
|
|
30
32
|
result.set(settingId, this._configurationService.getValue(settingId) === value);
|
|
31
33
|
}
|
|
@@ -75,7 +77,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
75
77
|
return `${Schemas.codeSetting}://${settingId}${value ? `/${value}` : ''}`;
|
|
76
78
|
}
|
|
77
79
|
getSetting(settingId) {
|
|
78
|
-
if ((
|
|
80
|
+
if (( this._encounteredSettings.has(settingId))) {
|
|
79
81
|
return this._encounteredSettings.get(settingId);
|
|
80
82
|
}
|
|
81
83
|
return this._preferencesService.getSetting(settingId);
|
|
@@ -107,26 +109,26 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
107
109
|
}
|
|
108
110
|
viewInSettingsMessage(settingId, alreadyDisplayed) {
|
|
109
111
|
if (alreadyDisplayed) {
|
|
110
|
-
return
|
|
112
|
+
return localize(7031, "View in Settings");
|
|
111
113
|
}
|
|
112
114
|
else {
|
|
113
115
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
+
return localize(
|
|
117
|
+
7032,
|
|
116
118
|
"View \"{0}: {1}\" in Settings",
|
|
117
119
|
displayName.category,
|
|
118
120
|
displayName.label
|
|
119
|
-
)
|
|
121
|
+
);
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
restorePreviousSettingMessage(settingId) {
|
|
123
125
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
124
|
-
return
|
|
125
|
-
|
|
126
|
+
return localize(
|
|
127
|
+
7033,
|
|
126
128
|
"Restore value of \"{0}: {1}\"",
|
|
127
129
|
displayName.category,
|
|
128
130
|
displayName.label
|
|
129
|
-
)
|
|
131
|
+
);
|
|
130
132
|
}
|
|
131
133
|
isAlreadySet(setting, value) {
|
|
132
134
|
const currentValue = this._configurationService.getValue(setting.key);
|
|
@@ -136,70 +138,70 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
136
138
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
137
139
|
if (this.isAlreadySet(setting, booleanValue)) {
|
|
138
140
|
if (booleanValue) {
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
+
return localize(
|
|
142
|
+
7034,
|
|
141
143
|
"\"{0}: {1}\" is already enabled",
|
|
142
144
|
displayName.category,
|
|
143
145
|
displayName.label
|
|
144
|
-
)
|
|
146
|
+
);
|
|
145
147
|
}
|
|
146
148
|
else {
|
|
147
|
-
return
|
|
148
|
-
|
|
149
|
+
return localize(
|
|
150
|
+
7035,
|
|
149
151
|
"\"{0}: {1}\" is already disabled",
|
|
150
152
|
displayName.category,
|
|
151
153
|
displayName.label
|
|
152
|
-
)
|
|
154
|
+
);
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
if (booleanValue) {
|
|
156
|
-
return
|
|
158
|
+
return localize(7036, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
157
159
|
}
|
|
158
160
|
else {
|
|
159
|
-
return
|
|
161
|
+
return localize(7037, "Disable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
stringSettingMessage(setting, stringValue) {
|
|
163
165
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
164
166
|
if (this.isAlreadySet(setting, stringValue)) {
|
|
165
|
-
return
|
|
166
|
-
|
|
167
|
+
return localize(
|
|
168
|
+
7038,
|
|
167
169
|
"\"{0}: {1}\" is already set to \"{2}\"",
|
|
168
170
|
displayName.category,
|
|
169
171
|
displayName.label,
|
|
170
172
|
stringValue
|
|
171
|
-
)
|
|
173
|
+
);
|
|
172
174
|
}
|
|
173
|
-
return
|
|
174
|
-
|
|
175
|
+
return localize(
|
|
176
|
+
7039,
|
|
175
177
|
"Set \"{0}: {1}\" to \"{2}\"",
|
|
176
178
|
displayName.category,
|
|
177
179
|
displayName.label,
|
|
178
180
|
stringValue
|
|
179
|
-
)
|
|
181
|
+
);
|
|
180
182
|
}
|
|
181
183
|
numberSettingMessage(setting, numberValue) {
|
|
182
184
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
183
185
|
if (this.isAlreadySet(setting, numberValue)) {
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
+
return localize(
|
|
187
|
+
7040,
|
|
186
188
|
"\"{0}: {1}\" is already set to {2}",
|
|
187
189
|
displayName.category,
|
|
188
190
|
displayName.label,
|
|
189
191
|
numberValue
|
|
190
|
-
)
|
|
192
|
+
);
|
|
191
193
|
}
|
|
192
|
-
return
|
|
193
|
-
|
|
194
|
+
return localize(
|
|
195
|
+
7041,
|
|
194
196
|
"Set \"{0}: {1}\" to {2}",
|
|
195
197
|
displayName.category,
|
|
196
198
|
displayName.label,
|
|
197
199
|
numberValue
|
|
198
|
-
)
|
|
200
|
+
);
|
|
199
201
|
}
|
|
200
202
|
renderSetting(setting, newValue) {
|
|
201
203
|
const href = this.settingToUriString(setting.key, newValue);
|
|
202
|
-
const title = ( localize(
|
|
204
|
+
const title = ( localize(7042, "View or change setting"));
|
|
203
205
|
return `<code tabindex="0"><a href="${href}" class="codesetting" title="${title}" aria-role="button"><svg width="14" height="14" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M9.1 4.4L8.6 2H7.4l-.5 2.4-.7.3-2-1.3-.9.8 1.3 2-.2.7-2.4.5v1.2l2.4.5.3.8-1.3 2 .8.8 2-1.3.8.3.4 2.3h1.2l.5-2.4.8-.3 2 1.3.8-.8-1.3-2 .3-.8 2.3-.4V7.4l-2.4-.5-.3-.8 1.3-2-.8-.8-2 1.3-.7-.2zM9.4 1l.5 2.4L12 2.1l2 2-1.4 2.1 2.4.4v2.8l-2.4.5L14 12l-2 2-2.1-1.4-.5 2.4H6.6l-.5-2.4L4 13.9l-2-2 1.4-2.1L1 9.4V6.6l2.4-.5L2.1 4l2-2 2.1 1.4.4-2.4h2.8zm.6 7c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM8 9c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z"/></svg>
|
|
204
206
|
<span class="separator"></span>
|
|
205
207
|
<span class="setting-name">${setting.key}</span>
|
|
@@ -220,11 +222,11 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
220
222
|
async restoreSetting(settingId) {
|
|
221
223
|
const userOriginalSettingValue = this._updatedSettings.get(settingId);
|
|
222
224
|
this._updatedSettings.delete(settingId);
|
|
223
|
-
return this._configurationService.updateValue(settingId, userOriginalSettingValue,
|
|
225
|
+
return this._configurationService.updateValue(settingId, userOriginalSettingValue, ConfigurationTarget.USER);
|
|
224
226
|
}
|
|
225
227
|
async setSetting(settingId, currentSettingValue, newSettingValue) {
|
|
226
228
|
this._updatedSettings.set(settingId, currentSettingValue);
|
|
227
|
-
return this._configurationService.updateValue(settingId, newSettingValue,
|
|
229
|
+
return this._configurationService.updateValue(settingId, newSettingValue, ConfigurationTarget.USER);
|
|
228
230
|
}
|
|
229
231
|
getActions(uri) {
|
|
230
232
|
if (uri.scheme !== Schemas.codeSetting) {
|
|
@@ -234,7 +236,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
234
236
|
const settingId = uri.authority;
|
|
235
237
|
const newSettingValue = this.parseValue(uri.authority, uri.path.substring(1));
|
|
236
238
|
const currentSettingValue = this._configurationService.inspect(settingId).userValue;
|
|
237
|
-
if ((newSettingValue !== undefined) && newSettingValue === currentSettingValue && (
|
|
239
|
+
if ((newSettingValue !== undefined) && newSettingValue === currentSettingValue && ( this._updatedSettings.has(settingId))) {
|
|
238
240
|
const restoreMessage = this.restorePreviousSettingMessage(settingId);
|
|
239
241
|
actions.push({
|
|
240
242
|
class: undefined,
|
|
@@ -278,8 +280,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
278
280
|
class: undefined,
|
|
279
281
|
enabled: true,
|
|
280
282
|
id: 'copySettingId',
|
|
281
|
-
tooltip: ( localize(
|
|
282
|
-
label: ( localize(
|
|
283
|
+
tooltip: ( localize(7043, "Copy Setting ID")),
|
|
284
|
+
label: ( localize(7043, "Copy Setting ID")),
|
|
283
285
|
run: () => {
|
|
284
286
|
this._clipboardService.writeText(settingId);
|
|
285
287
|
}
|
|
@@ -295,9 +297,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
295
297
|
getAnchor: () => ({ x, y }),
|
|
296
298
|
getActions: () => actions,
|
|
297
299
|
getActionViewItem: (action) => {
|
|
298
|
-
return (
|
|
299
|
-
(new ActionViewItem(action, action, { label: true }))
|
|
300
|
-
);
|
|
300
|
+
return ( new ActionViewItem(action, action, { label: true }));
|
|
301
301
|
},
|
|
302
302
|
});
|
|
303
303
|
}
|
|
@@ -310,12 +310,12 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
|
-
SimpleSettingRenderer = (
|
|
314
|
-
(
|
|
315
|
-
(
|
|
316
|
-
(
|
|
317
|
-
(
|
|
318
|
-
(
|
|
319
|
-
], SimpleSettingRenderer))
|
|
313
|
+
SimpleSettingRenderer = ( __decorate([
|
|
314
|
+
( __param(0, IConfigurationService)),
|
|
315
|
+
( __param(1, IContextMenuService)),
|
|
316
|
+
( __param(2, IPreferencesService)),
|
|
317
|
+
( __param(3, ITelemetryService)),
|
|
318
|
+
( __param(4, IClipboardService))
|
|
319
|
+
], SimpleSettingRenderer));
|
|
320
320
|
|
|
321
321
|
export { SimpleSettingRenderer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".file-icons-enabled .show-file-icons .webview-vs_code_release_notes-name-file-icon.file-icon:before{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik0xMDI0IDEwMjRIMFYwaDEwMjR2MTAyNHoiIHN0eWxlPSJmaWxsOiNmNmY2ZjY7ZmlsbC1vcGFjaXR5OjAiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTAyNCA4NS4zMzN2ODUzLjMzM0gwVjg1LjMzM2gxMDI0eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0wIDg1LjMzM2gyOTguNjY3djg1My4zMzNIMFY4NS4zMzN6bTEwMjQgMHY4NTMuMzMzSDM4NFY4NS4zMzNoNjQwem0tNTU0LjY2NyAxNjBoMzQxLjMzM3YtNjRINDY5LjMzM3Y2NHptMzQxLjMzNCA1MzMuMzM0SDQ2OS4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0xMjgtMTQ5LjMzNEg1OTcuMzMzdjY0aDM0MS4zMzNsLjAwMS02NHptMC0xNDkuMzMzSDU5Ny4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0wLTE0OS4zMzNINTk3LjMzM3Y2NGgzNDEuMzMzbC4wMDEtNjR6IiBzdHlsZT0iZmlsbDojMTY3YWJmIi8+PC9zdmc+\");content:\" \"}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
2
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
3
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
5
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
6
|
+
import { IRequestService } from "vscode/vscode/vs/platform/request/common/request.service";
|
|
7
|
+
import { IWebviewWorkbenchService } from "vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
9
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
10
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
+
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
14
|
+
export declare class ReleaseNotesManager {
|
|
15
|
+
private readonly _environmentService;
|
|
16
|
+
private readonly _keybindingService;
|
|
17
|
+
private readonly _languageService;
|
|
18
|
+
private readonly _openerService;
|
|
19
|
+
private readonly _requestService;
|
|
20
|
+
private readonly _configurationService;
|
|
21
|
+
private readonly _editorService;
|
|
22
|
+
private readonly _editorGroupService;
|
|
23
|
+
private readonly _codeEditorService;
|
|
24
|
+
private readonly _webviewWorkbenchService;
|
|
25
|
+
private readonly _extensionService;
|
|
26
|
+
private readonly _productService;
|
|
27
|
+
private readonly _instantiationService;
|
|
28
|
+
private readonly _simpleSettingRenderer;
|
|
29
|
+
private readonly _releaseNotesCache;
|
|
30
|
+
private _currentReleaseNotes;
|
|
31
|
+
private _lastMeta;
|
|
32
|
+
private readonly disposables;
|
|
33
|
+
constructor(_environmentService: IEnvironmentService, _keybindingService: IKeybindingService, _languageService: ILanguageService, _openerService: IOpenerService, _requestService: IRequestService, _configurationService: IConfigurationService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _codeEditorService: ICodeEditorService, _webviewWorkbenchService: IWebviewWorkbenchService, _extensionService: IExtensionService, _productService: IProductService, _instantiationService: IInstantiationService);
|
|
34
|
+
private updateHtml;
|
|
35
|
+
private getBase;
|
|
36
|
+
show(version: string, useCurrentFile: boolean): Promise<boolean>;
|
|
37
|
+
private loadReleaseNotes;
|
|
38
|
+
private onDidClickLink;
|
|
39
|
+
private addGAParameters;
|
|
40
|
+
private renderBody;
|
|
41
|
+
private onDidChangeConfiguration;
|
|
42
|
+
private onDidChangeActiveWebviewEditor;
|
|
43
|
+
private updateCheckboxWebview;
|
|
44
|
+
}
|