(scope: SettingScope)
| 133 | } |
| 134 | |
| 135 | forScope(scope: SettingScope): SettingsFile { |
| 136 | switch (scope) { |
| 137 | case SettingScope.User: |
| 138 | return this.user; |
| 139 | case SettingScope.Workspace: |
| 140 | return this.workspace; |
| 141 | case SettingScope.System: |
| 142 | return this.system; |
| 143 | default: |
| 144 | throw new Error(`Invalid scope: ${scope}`); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | setValue<K extends keyof Settings>( |
| 149 | scope: SettingScope, |
no outgoing calls
no test coverage detected