Skip to content

Commit f22fd8e

Browse files
authored
Settings URL - case sensitivity (microsoft#223486)
Fixes microsoft#223288
1 parent 56bfd21 commit f22fd8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/services/preferences/browser/preferencesService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/use
4545
import { ResourceSet } from 'vs/base/common/map';
4646
import { isEqual } from 'vs/base/common/resources';
4747
import { IURLService } from 'vs/platform/url/common/url';
48+
import { compareIgnoreCase } from 'vs/base/common/strings';
4849

4950
const emptyEditableSettingsContent = '{\n}';
5051

@@ -608,7 +609,7 @@ export class PreferencesService extends Disposable implements IPreferencesServic
608609
for (const group of this._settingsGroups) {
609610
for (const section of group.sections) {
610611
for (const setting of section.settings) {
611-
if (setting.key === settingId) {
612+
if (compareIgnoreCase(setting.key, settingId) === 0) {
612613
return setting;
613614
}
614615
}
@@ -625,7 +626,7 @@ export class PreferencesService extends Disposable implements IPreferencesServic
625626
*
626627
*/
627628
async handleURL(uri: URI): Promise<boolean> {
628-
if (uri.authority !== SETTINGS_AUTHORITY) {
629+
if (compareIgnoreCase(uri.authority, SETTINGS_AUTHORITY) !== 0) {
629630
return false;
630631
}
631632

0 commit comments

Comments
 (0)