microsoft / vscode-powerquery-sdk

Power Query Connector Development SDK for VS Code
MIT License
72 stars 12 forks source link

dataSourcePath not available for StartLogin when Setting Credentials #176

Closed waldyd closed 2 years ago

waldyd commented 2 years ago

Preflight Checklist

Power Query SDK

0.1.7

Regression From

No response

Platform

Windows

Architecture

x64

OS Version

Windows 10

VSCode version

1.72.2

PQSdkTool Path

c:\Users*****.vscode\extensions\powerquery.vscode-powerquery-sdk-0.1.7-win32-x64.nuget\Microsoft.PowerQuery.SdkTools.2.110.3\

Bug Description

While setting the credentials for my custom connector, the dataSourcePath value seems not reaching the StartLogin method:

image

You may notice that the AuthorizeUrl is taking the "else" value.

Steps to Reproduce

  1. Modify the dataSourcePath value in the query.pq file
  2. Issue the Set Credentials command
  3. dataSourcePath variable not reaching the StartLogin method

Actual Experience

The dataSourcePath value seems not reaching the StartLogin method:

image

After issuing the Set Credentials command, always the same Authorize site: image

You may notice that the AuthorizeUrl is always taking the "else" value.

Expected Experience

dataSourcePath json value being available for the StartLogin method.

Additional Context

No response

mattmasson commented 2 years ago

I'm not sure what could be happening here. I'm unable to reproduce locally.

Out of curiosity, does the connector behave as expected when you test it out in Power BI Desktop?

Could you also share the pqtest.exe command line that gets emitted for this command? It should show up in the Output | Power Query SDK channel.