Questions tagged [vs-code]

Visual Studio Code is a free source code editor developed by Microsoft for Windows, Linux and macOS. When the "Salesforce Extensions for VS Code" are added it: supports syntax highlighting and intelligent code completion for Apex, Visualforce and Lightning Components; works well with SFDX including with scratch orgs; supports debugging. Git UI is built in. Many other extensions are available.

41 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
18 views

Automatically close Output window in vsc running salesforce CLI

I have switched from Sublime to VSCode. I have found ways to make most of VSCode work the way I want. The main thing I wish I could do is when I deploy to the org if it is successful I would like ...
3
votes
0answers
723 views

command 'sfdx.force.project.with.manifest.create' not found

I've installed the latest versions of VScode, the Salesforce CLI, and the VS code Salesforce CLI Extension but when I go to run SFDX: Create Project with Manifest or any SFDX command, I receive an ...
2
votes
0answers
83 views

How to setup ESLint in VSCode to work with every project?

Below is the process I am doing in VSCode to setup for every project I create: run command npm init from project folder and this is creating package.json file. Run the command eslint --init and it ...
2
votes
1answer
51 views

Update sObjects in .sfdx/typings

I have a VSCode SFDX Project that we use to develop LWCs, and we recently changed some object names in the Org and now I can't upload anything to our Org. I found that there is a command to refresh ...
2
votes
1answer
175 views

ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data

Background I get this error message: ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data. In the VSCode output panel, when I try and run a unit test: Starting Run ...
2
votes
0answers
54 views

How to get Twilio for Salesforce Apex API intellisense in VSCode

I have this Twilio package installed (in both environments): Twilio for Salesforce: Production / Sandbox I am using VSCode to build against the Apex Query Library: Example Apex TwilioSF....
1
vote
0answers
18 views

How do I get VSCode working with the Remote Development Extension Pack (WSL) and Salesforce Extension Pack?

I installed the Windows Subsystem for Linux on my Windows 10 machine. I am trying to do all my salesforce development in WSL so I can rely on the Linux CLI in my integrated terminal in VSCode. To do ...
1
vote
1answer
33 views

How to turn off the auto pop-up of Salesforce-CLI window everytime I save (deploy source to Org) in VSCode DX

I'm using VSCode for my salesforce development and I installed the Salesforce CLI integration plugin and Salesforce extension pack. Every time I save a source code which gets deployed to Org ...
1
vote
1answer
39 views

How do I retrieve a flow and associated metadata from an org?

I usually use SFDX to retrieve all of the metadata from my sandbox. I usually work on this in VSCode. Right now I'm trying to use SFDX in VSCode to retrieve a flow so I can test that flow in another ...
1
vote
0answers
40 views

VSCode for Salesforce

I am trying to connect VSCode with my SF org(a trailhead org) and I get to the SF login page and then when I try to login, I get the following error: I am not sure why this is happening but I believe ...
1
vote
0answers
48 views

VSCode is checking my static resource JS files as if they are LWC

I have some JS files in a static resource. I pulled code from a Production org and converted to DX format for convenience. I am noticing when I open them in VSCode I get errors like "LWC1007: c:\foo\...
1
vote
0answers
128 views

Im not able to see “Authorize an Org” in my command palette

I have installed the Cli and Salesforce Extension pack. Why can I not see "Authorize an org" in my command pallet?
1
vote
0answers
105 views

Use Semantic Completion with Tabnine in VsCode

Have any of you tried to use TabNine Semantic Completion with VsCode? I tried to use the configuration below but it always crashes. Just want to make those three great tools to work smooth (VsCode, ...
1
vote
0answers
195 views

'ENOENT': spawn cmd ENOENT error while authorizing sandbox org in VSCode

Hi I have installed VS Code and salesfoce CLI, extensions also. I have created my first project. When i am tryin to authorize org in it i am getting below error: Starting SFDX: Authorize an Org 14:...
1
vote
1answer
290 views

VSCode Debug Add Configuration error Cannot read property 'openConfigFile' of undefined

I created a Salesforce project in VSCode and when I try to debug Apex Classes adding a Debug Configuration I get the following error: Cannot read property 'openConfigFile' of undefined I'm using the ...
1
vote
1answer
155 views

SFDX: retrieve Source from Org failing

In order to connect my VSC to my org and pull my org's datas to VSC, I followed the steps this great video shows ; In Visual Studio Code I : - SFDX: created project with Manifest - in the manifest -> ...
1
vote
0answers
435 views

Deploy Source in Manifest to Org - ended with exit code 1 and no response in problem tab

I have a local Salesforce DX project with a package.xml manifest file. The project has been authorised against a fresh developer org. I want to deploy all my local code in one go, so I am using the ...
1
vote
1answer
325 views

Setup Salesforce(Sandbox) project in Visual Studio Code and integrate source control with Bitbucket

I am new to VS Code, things I was able to do separately are Create a Salesforce Manifest project and authorize the org, Retrieve/Deploy are good. Have a repository on Bitbucket, cloned it on the VS ...
1
vote
0answers
298 views

How can I deploy a single metadata element with ForceCode

I'm pretty new to the world of Visual Studio Code and the ForceCode plugin. I can't seem to find an easy way to manage multiple environments or deploy from one environment to another without changing ...
1
vote
0answers
120 views

Salesforce DX using Visual Studio Code Debugging Scratch Orgs

Learning more about using Visual Studio Code and Salesforce DX Latest video from salesforce.org apps team https://www.youtube.com/watch?v=CgvYKDqb6Ng Anyone have any luck using the Apex Debug ...
0
votes
1answer
12 views

Creating A Default Scratch Org in Visual Studio Code for Salesforce.. Getting Error with Exit Code 1

I am new to Salesforce Development. I just installed Visual Studio Code. I did successfully auhorize my Dev Org. But I am having issues when creating a Default Scratch Org. THe following the error ...
0
votes
0answers
11 views

how can I see the (Deployed)package thrown trigger

Firstly I was write Trigger for my one a object its working And after i wanted to write for production but i learn its imposible i need the deploy Thats why I install ForceCode in Visual Studio Code ...
0
votes
0answers
34 views

VSCode overwrites changes without any warning

I am new to VSCode. I used the following to get all classes updated as per Org: sfdx force:source:retrieve -x src/package.xml After that I made some changes in a class in the deveoper console and ...
0
votes
1answer
30 views

LWC without APEX: sfdx force:source:deploy into Production

I have a simple LWC component that is only made up of html, javascript, and css (no APEX). When deploying to production via vscode, I am confused on what I am suppose to be testing as I receive the "...
0
votes
1answer
75 views

ERROR running force:auth:web:login: unable to get local issuer certificate - When Authorizing an Org in VS code

I have installed VS code and Salesforce CLI in my system.Now when I try to Authorize an Org using SFDC:Authorize an Org, It take me to the login page and also logs in and redirects to localhost:1717. ...
0
votes
0answers
12 views

Visual Studio Code unable to retrieve salesforce installed package smaple gallery project 'Recipe'

Installed salesforce sample gallery project 'Recipe' in my development org directly from GitHub using the 2nd option "Installing Recipes using an Unlocked Package". I created the project in VS using "...
0
votes
1answer
22 views

How to create a lightning app in Visual Studio Code?

I'm pretty new to Salesforce development and I'm trying to wrap my head around Lightning App development. Essentially I'm looking to setup a base application which will have a tab(ex:Admin) So far I ...
0
votes
1answer
28 views

VS Code lightning Explorer not rendering anymore

This used to work for me. I tried re-installing the extension pack and nothing. Maybe somebody else is having the same issue.
0
votes
0answers
80 views

VS code : Authorize Org failed

I am new to lightning web component. I have installed VS Code, salesforce extension pack inside VS code, Salesforce CLI and set environment variable C:\Program Files\Salesforce CLI in my system. When ...
0
votes
1answer
35 views

Unable to authorize sandbox using vs code in salesforce

Try this: Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file. 20:57:24.539 sfdx force:auth:web:login --setalias vscodeOrg --...
0
votes
0answers
36 views

Error trying to authorize dev org for trailheads and vscode

Not sure what's going on here but I'm following the following trailhead and trying to authorize my dev org for use with vs code: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-...
0
votes
1answer
35 views

Error while creating Heroku pipeline from VSCode

So, I am trying to create Heroku pipeline from VSCode. I ran the command ./setup.sh In my setup.sh file I've set HEROKU_APP_NAME and verified "Usernames or aliases of the orgs you're using" and also ...
0
votes
0answers
111 views

Cannot create a scratch org, getting “ERROR: Cannot read property 'HANDSHAKE' of undefined.”

I followed steps in https://trailhead.salesforce.com/content/learn/projects/set-up-your-lightning-web-components-developer-tools/create-a-lightning-web-component : installed CLI, updated VS Code, ...
0
votes
0answers
74 views

sfdx.force.test.view.refresh not found

Summary When trying to use the integrated test side bar, no tests are being displayed. When clicking on "refresh" an error message is displayed saying "command 'sfdx.force.test.view.refresh' not ...
0
votes
1answer
218 views

Salesforce CLI Authorization timeout

I am attempting to setup VS Code with Salesforce CLI. I am experiencing issues when attempting to authorize my Sandbox. When I attempt to authorize, I enter the MyDomain login page address and set ...
0
votes
0answers
233 views

SFDX VSCode Workspace with Multiple Orgs

I'm working on combining several orgs into a single org. As part of my requirements, until the process is complete, I created some code that syncs up data from the "primary" org back into 3 "legacy" ...
0
votes
0answers
37 views

Load report-meta directly in production (testLevel problem)

Since in my org we made some (heavy) changes to the custom objects, we also had the need of redoing all the reports (yeey, such luck!) So what I did, was simply to download all the reports locally, ...
0
votes
1answer
536 views

Salesforce Extension Pack Not Working in VS Code

I have a co-worker that installed the Salesforce Extension Pack for VS Code. There is no go to definition for apex code and it is not possible to run tests. We have tried uninstalling all extensions ...
0
votes
0answers
514 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
0answers
118 views

DX extensions not found in VS Code not recognised - ubuntu setup

i'm working with VS Code 1.29.1 and have installed SFDX 44.7.0. When I am trying to [CTRL]+[SHIFT]+P and use the shortcut commands, i'm getting the error command 'sfdx.force.apex.class.create' not ...
0
votes
1answer
637 views

Installing SFDX

I am trying to install sfdx on my windows 64 to create lwc, I have VS code with salesforce extension and lwc extension. I downloaded sfdx cli from here. https://developer.salesforce.com/tools/sfdxcli ...