Skip to content

Commit

Permalink
Comment out PDP test until we make it easier to provide test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lyonsil committed Sep 25, 2023
1 parent 49ab52c commit d154914
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
// <home_dir>/.platform.bible/<project_short_name>_<project_ID_from_settings.xml>/project/paratext
// For example: "~/.platform.bible/projects/TPKJ_b4c501ad2538989d6fb723518e92408406e232d3/project/paratext"
// Then create a file named "meta.json" in the "<short_name>_<project_ID>" 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',
Expand All @@ -334,6 +344,8 @@ async function main() {
'This is the data from extension foo',
);
}, 10000);
*/
// #endregion
}

async function restartExtensionHost() {
Expand Down

0 comments on commit d154914

Please sign in to comment.