mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
- Introduce policy model with file policy
- Introduce policy configuration using policy model - Use policy configuration while reading, inspecting and writing configuration - Adopt json settings editor
This commit is contained in:
@@ -43,6 +43,7 @@ suite('ExtHostConfiguration', function () {
|
||||
function createConfigurationData(contents: any): IConfigurationInitData {
|
||||
return {
|
||||
defaults: new ConfigurationModel(contents),
|
||||
policy: new ConfigurationModel(),
|
||||
user: new ConfigurationModel(contents),
|
||||
workspace: new ConfigurationModel(),
|
||||
folders: [],
|
||||
@@ -279,6 +280,7 @@ suite('ExtHostConfiguration', function () {
|
||||
'wordWrap': 'off'
|
||||
}
|
||||
}, ['editor.wordWrap']),
|
||||
policy: new ConfigurationModel(),
|
||||
user: new ConfigurationModel({
|
||||
'editor': {
|
||||
'wordWrap': 'on'
|
||||
@@ -328,6 +330,7 @@ suite('ExtHostConfiguration', function () {
|
||||
'wordWrap': 'off'
|
||||
}
|
||||
}, ['editor.wordWrap']),
|
||||
policy: new ConfigurationModel(),
|
||||
user: new ConfigurationModel({
|
||||
'editor': {
|
||||
'wordWrap': 'on'
|
||||
@@ -405,6 +408,7 @@ suite('ExtHostConfiguration', function () {
|
||||
'lineNumbers': 'on'
|
||||
}
|
||||
}, ['editor.wordWrap']),
|
||||
policy: new ConfigurationModel(),
|
||||
user: new ConfigurationModel({
|
||||
'editor': {
|
||||
'wordWrap': 'on'
|
||||
@@ -508,6 +512,7 @@ suite('ExtHostConfiguration', function () {
|
||||
'editor.wordWrap': 'bounded',
|
||||
}
|
||||
}),
|
||||
policy: new ConfigurationModel(),
|
||||
user: toConfigurationModel({
|
||||
'editor.wordWrap': 'bounded',
|
||||
'[typescript]': {
|
||||
|
||||
Reference in New Issue
Block a user