@codingame/monaco-vscode-user-data-profile-service-override 38.0.1 → 38.0.3
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-user-data-profile-service-override",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - user-data-profile service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "38.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "38.0.3"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -383,18 +383,18 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
383
383
|
const currentSelection = currentSelectionIndex !== undefined ? this.profilesList?.element(currentSelectionIndex) : undefined;
|
|
384
384
|
this.profilesList?.splice(0, this.profilesList.length, this.model.profiles);
|
|
385
385
|
if (elementToSelect) {
|
|
386
|
-
this.profilesList?.setSelection([this.model.profiles.indexOf(elementToSelect)]);
|
|
386
|
+
this.profilesList?.setSelection([( this.model.profiles.indexOf(elementToSelect))]);
|
|
387
387
|
} else if (currentSelection) {
|
|
388
388
|
if (!this.model.profiles.includes(currentSelection)) {
|
|
389
389
|
const elementToSelect = this.model.profiles.find(profile => profile.name === currentSelection.name) ?? this.model.profiles[0];
|
|
390
390
|
if (elementToSelect) {
|
|
391
|
-
this.profilesList?.setSelection([this.model.profiles.indexOf(elementToSelect)]);
|
|
391
|
+
this.profilesList?.setSelection([( this.model.profiles.indexOf(elementToSelect))]);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
} else {
|
|
395
395
|
const elementToSelect = this.model.profiles.find(profile => profile.active) ?? this.model.profiles[0];
|
|
396
396
|
if (elementToSelect) {
|
|
397
|
-
this.profilesList?.setSelection([this.model.profiles.indexOf(elementToSelect)]);
|
|
397
|
+
this.profilesList?.setSelection([( this.model.profiles.indexOf(elementToSelect))]);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|