mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-01 11:32:08 +01:00
Settings search - fix JSON-encoded default values from remote search
This commit is contained in:
@@ -215,6 +215,9 @@ class RemoteSearchProvider implements ISearchProvider {
|
||||
const packageId = r['packageid'];
|
||||
const id = getSettingKey(key, packageId);
|
||||
|
||||
const value = r['value'];
|
||||
const defaultValue = value ? JSON.parse(value) : value;
|
||||
|
||||
const packageName = r['packagename'];
|
||||
let extensionName: string;
|
||||
let extensionPublisher: string;
|
||||
@@ -225,7 +228,7 @@ class RemoteSearchProvider implements ISearchProvider {
|
||||
return <IRemoteSetting>{
|
||||
key,
|
||||
id,
|
||||
defaultValue: r['value'],
|
||||
defaultValue,
|
||||
score: r['@search.score'],
|
||||
description: JSON.parse(r['details']),
|
||||
packageId,
|
||||
|
||||
Reference in New Issue
Block a user