forked from IBM-Blockchain/blockchain-vscode-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configurations.ts
44 lines (37 loc) · 2.06 KB
/
configurations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// tslint:disable max-classes-per-file
export class SettingConfigurations {
// In order to migrate old values to new values, we need to bump up the 'migrationCheck' value in extension.ts.
// FABRIC CONFIGURATIONS
static readonly FABRIC_RUNTIME: string = 'ibm-blockchain-platform.fabric.runtime';
static readonly FABRIC_CLIENT_TIMEOUT: string = 'ibm-blockchain-platform.fabric.client.timeout';
static readonly FABRIC_CHAINCODE_TIMEOUT: string = 'ibm-blockchain-platform.fabric.chaincode.timeout';
// Needed for migration
static readonly OLD_FABRIC_WALLETS: string = 'ibm-blockchain-platform.fabric.wallets';
static readonly OLD_FABRIC_GATEWAYS: string = 'ibm-blockchain-platform.fabric.gateways';
static readonly OLD_ENVIRONMENTS: string = 'ibm-blockchain-platform.fabric.environments';
static readonly OLD_EXTENSION_REPOSITORIES: string = 'ibm-blockchain-platform.ext.repositories';
// EXTENSION CONFIGURATIONS
static readonly EXTENSION_DIRECTORY: string = 'ibm-blockchain-platform.ext.directory';
static readonly EXTENSION_BYPASS_PREREQS: string = 'ibm-blockchain-platform.ext.bypassPreReqs';
// HOME CONFIGURATIONS
static readonly HOME_SHOW_ON_STARTUP: string = 'ibm-blockchain-platform.home.showOnStartup';
}
export class FileConfigurations {
static readonly FABRIC_WALLETS: string = 'wallets';
static readonly FABRIC_GATEWAYS: string = 'gateways';
static readonly FABRIC_ENVIRONMENTS: string = 'environments';
static readonly REPOSITORIES: string = 'repositories';
}