From d1549149d12af2fd27e8689a15b382e72b4873bc Mon Sep 17 00:00:00 2001 From: Matt Lyons Date: Mon, 25 Sep 2023 13:42:14 -0500 Subject: [PATCH] Comment out PDP test until we make it easier to provide test projects --- src/main/main.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 368161d967..e1326c2f1c 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -24,8 +24,6 @@ import extensionAssetProtocolService from '@main/services/extension-asset-protoc import { wait } from '@shared/utils/util'; import { CommandNames } from 'papi-shared-types'; import { SerializedRequestType } from '@shared/utils/papi-util'; -import { getProjectDataProvider } from '@shared/services/project-data-provider.service'; -import { VerseRef } from '@sillsdev/scripture'; const PROCESS_CLOSE_TIME_OUT = 2000; @@ -320,7 +318,19 @@ async function main() { // #endregion - // Test a .NET data provider + // #region Test a .NET data provider + // TODO: Uncomment this or similar sample code once https://github.com/paranext/paranext-core/issues/440 is resolved + // In the meantime, if you want to try this, copy an existing project into + // /.platform.bible/_/project/paratext + // For example: "~/.platform.bible/projects/TPKJ_b4c501ad2538989d6fb723518e92408406e232d3/project/paratext" + // Then create a file named "meta.json" in the "_" directory with this JSON: + // { + // "id": "REPLACE_THIS_WITH_PROJECT_ID_FROM_SETTINGS_XML", + // "name": "REPLACE_THIS_WITH_PROJECT_SHORT_NAME", + // "storageType": "paratextFolders", + // "projectType": "ParatextStandard" + // } + /* setTimeout(async () => { const paratextPdp = await getProjectDataProvider( 'b4c501ad2538989d6fb723518e92408406e232d3', @@ -334,6 +344,8 @@ async function main() { 'This is the data from extension foo', ); }, 10000); + */ + // #endregion } async function restartExtensionHost() {