| 677 | } |
| 678 | |
| 679 | private getIdeSettingsSync(): IdeSettings { |
| 680 | const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); |
| 681 | const remoteConfigServerUrl = settings.get<string | undefined>( |
| 682 | "remoteConfigServerUrl", |
| 683 | undefined, |
| 684 | ); |
| 685 | const ideSettings: IdeSettings = { |
| 686 | remoteConfigServerUrl, |
| 687 | remoteConfigSyncPeriod: settings.get<number>( |
| 688 | "remoteConfigSyncPeriod", |
| 689 | 60, |
| 690 | ), |
| 691 | userToken: settings.get<string>("userToken", ""), |
| 692 | continueTestEnvironment: "production", |
| 693 | pauseCodebaseIndexOnStart: settings.get<boolean>( |
| 694 | "pauseCodebaseIndexOnStart", |
| 695 | false, |
| 696 | ), |
| 697 | }; |
| 698 | return ideSettings; |
| 699 | } |
| 700 | |
| 701 | async getIdeSettings(): Promise<IdeSettings> { |
| 702 | const ideSettings = this.getIdeSettingsSync(); |