sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code
https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode
MIT License
23 stars 4 forks source link

Alternative Contexts not recognised when serverType=SASVIYA #374

Closed allanbowe closed 1 year ago

allanbowe commented 1 year ago

When creating a projectTarget in the VS Code extension, we supply a default compute context

When this context is changed, it is not possible to deploy (403 error)

"good" target:

    {
      "name": "v7",
      "serverUrl": "https://sas.com",
      "serverType": "SASVIYA",
      "appLoc": "/Public/app/v7",
      "contextName": "SAS Job Execution compute context"
    }

"bad" target:

    {
      "name": "v7",
      "serverUrl": "https://sas.com",
      "serverType": "SASVIYA",
      "appLoc": "/Public/app/v7",
      "contextName": "Reusable-Compute-Context"
    }

Expected behaviour: Valid contexts should be picked up and used when connecting to Viya