Skip to content

Commit db301ba

Browse files
fix. "Run TestConnection function" not rebuilding extension package file (#196)
1 parent 57334a4 commit db301ba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pqTestConnector/PqServiceHostClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,11 @@ export class PqServiceHostClient implements IPQTestService, IDisposable {
794794
}
795795
}
796796

797-
TestConnection(): Promise<GenericResult> {
797+
async TestConnection(): Promise<GenericResult> {
798798
if (this.serverTransportTuple) {
799+
// maybe we need to execute the build task before evaluating.
800+
await this.ExecuteBuildTaskAndAwaitIfNeeded();
801+
799802
const theRequestMessage: PqServiceHostRequest = {
800803
jsonrpc: JSON_RPC_VERSION,
801804
id: this.nextSequenceId,

src/pqTestConnector/PqTestExecutableTaskQueue.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,10 @@ export class PqTestExecutableTaskQueue implements IPQTestService, IDisposable {
613613
});
614614
}
615615

616-
public TestConnection(): Promise<GenericResult> {
616+
public async TestConnection(): Promise<GenericResult> {
617+
// maybe we need to execute the build task before evaluating.
618+
await this.ExecuteBuildTaskAndAwaitIfNeeded();
619+
617620
return this.doEnqueueOneTask<GenericResult>({
618621
operation: "test-connection",
619622
pathToConnector: resolveSubstitutedValues(ExtensionConfigurations.DefaultExtensionLocation),

0 commit comments

Comments
 (0)