function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dave CraigmileDave Craigmile 

CTL-SHIFT-B for Non-Scratch Org in VS Code

Can someone provide a task.json example file so my build shortcut pushes just the changed files to a DE org?  NOT a scratch org.

An example file would be great.  Thanks!
VinayVinay (Salesforce Developers) 
Hi Dave,

Below is the sample snippet for your task.json reference.

{
  "version": "0.2.1",
  "outDir": "\"${workspaceRoot}\\bin\"",
  "tasks": [
    {
      "taskName": "makefile-build",
      "appliesTo": "makefile",
      "type": "launch",
      "contextType": "build",
      "command": "nmake",
      "args": [ "build" ],
      "envVars": {
        "VSCMD_START_DIR": "\"${workspaceRoot}\""
      }
    },
    {
      "taskName": "makefile-clean",
      "appliesTo": "makefile",
      "type": "launch",
      "contextType": "clean",
      "command": "nmake",
      "args": [ "clean" ],
      "envVars": {
        "VSCMD_START_DIR": "\"${workspaceRoot}\""
      }
    },
    {
      "taskName": "makefile-rebuild",
      "appliesTo": "makefile",
      "type": "launch",
      "contextType": "rebuild",
      "command": "nmake",
      "args": [ "rebuild" ],
      "envVars": {
        "VSCMD_START_DIR": "\"${workspaceRoot}\""
      }
    }
  ]
}

>Open a folder with vscode and hit F1
>Select "Tasks: Configure Task Runner"
>click Enter and vscode will create a sample task.json for you

Below are few references which gives you more information on task.json in VS code.

https://code.visualstudio.com/Docs/editor/tasks
https://docs.microsoft.com/en-us/visualstudio/ide/customize-build-and-debug-tasks-in-visual-studio?view=vs-2017

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
Dave CraigmileDave Craigmile
Thanks for trying to help but this does pass validation on save -- 19 errors -- or seem to have anything to do with pushing my changes to a Salesforce org.
VinayVinay (Salesforce Developers) 
Hi Dave,

This is something with VS configuration on from salesforce.

Try to reach out to VS support and they can help you or guide on configure in task.json.

https://support.microsoft.com/en-in/allproducts

Please mark as Best Answer if above information was helpful so that it can help others in the future.

Thanks,
Vinay Kumar