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.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

How to update the features setting to existing scratch org?

I'm trying to develop in a scratch org. When creating a scratch organization, specify the configuration file with a command to create a scratch org. After creating the scratch org, I noticed I forgot ...
0
votes
0answers
12 views

VS Code / Apex Code Completion: How to hint at multiple projects?

I'm using VS Code with the Salesforce extensions in a DX project. All works well and fine, except for one thing. My "main" project resides in .\force-app\main\.... I also have some "...
0
votes
1answer
21 views

How to edit static resource (css) in vs code that is connected to bitbucket code base [closed]

How to edit static resource (css) in vs code that is connected to bitbucket code base. I can see the static resource in vs code that is connected to a dev org. whereas with bitbucket code base, ...
0
votes
1answer
17 views

To run all tests in Visual studio Code Sandbox:

I'm not able to see the Invoke apex tests option in ctrl+shift+P, do I need to download any additional extension for that?
1
vote
1answer
31 views

How to set up VS code so I can switch smoothly between different sandboxes?

I followed this really helpful guide to set up my VS Code environment and was able to get my Dev sandbox connected. Now I want to connect another sandbox (e.g. QA) to my VS Code because my goal is to ...
0
votes
0answers
26 views

Running Unit Test from VS Code Got: ERROR running force:apex:test:run: Cannot read property 'message' of undefined

I am facing the following issue when I run a UnitTest using VS Code. For instance: sfdx force:apex:test:run --tests ServiceTest --resultformat human --outputdir /salesforce/.sfdx/tools/testresults/...
2
votes
0answers
17 views

Where did the type ahead menu for CSS SLDS classes go?

In VSCode, there used to be a type ahead window with suggestions of SLDS classes when you start to create one. This menu no longer appears for me. For example when I would type <span class="...
0
votes
0answers
13 views

How to add EmailFolder to 2GP Managed Package (same problem with ReportFolder)

Can someone clarify how exactly to do this? I don't see "email folder" as an option to download from the org in Vs Code. I only see "email template" (see screenshot), then when I ...
0
votes
0answers
16 views

ERROR running force:data:soql:query: unable to verify the first certificate

After authorizing the org successfully while executing SOQL query I am getting the above error in VsCode and also in cmd while executing sfdx force:org:list the connected status is showing unable to ...
0
votes
1answer
20 views

My SFDX Project in VS Code doesn't pickup any test classes

Even though I have test classes and test methods in my SFDX project in VS Code none of the test methods gets picked up in the test panel. I have configured a JDK in my VSCode here and enabled What ...
0
votes
1answer
34 views

Can we Change Classic Email Template type in Salesforce?

I want to change HTML type classic email template to either Custom or Visualforce. I tried manually overriding the meta file but it yielded nothing. Is there any other workaound?
0
votes
0answers
21 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
-1
votes
2answers
57 views

Warning: deploy:lwc is not a sfdx command

My Vs code is not deploying the changes to the org. I have done all the changes multiple times Uninstall VS code Uninstall Salesforce cli Install java version 11 (Recommended) Install Salesforce CLi ...
0
votes
2answers
37 views

How better is VSCode for SF development than other paid tools? - need your objective opinion [closed]

This question is aimed to get help to decide whether to migrate to VS Code or stay with IntelliJ+IlluminatedCloud. I know this is a personal choice, but I feel like I'm being driven more and more to ...
1
vote
0answers
36 views

Unable to deploy LWC from VSCode

Apex is getting deployed but on coming to LWC VSCode is throwing error: force-app\main\default\lwc\#######\#####.js-meta.xml Failed to save Lightning Component Resource [lwc/#######\#####.js] of ...
0
votes
0answers
28 views

Authorize an Org issue

Once I click on "Authorize an org" and then inserted name. The default browser opens. Org is authorized but still it displays continuous authorization till i cancel it. User-added imageAnd ...
1
vote
1answer
37 views

SFDX source:retrieve Custom Settings from Org?

From within a vscode SFDX project, I'd like to retrieve and eventually manage / set custom settings from within my project. Command that I'm using for this is a standard CLI call of source:retrieve - ...
1
vote
1answer
60 views

SF DX, cannot deploy package.xml with custom labels

I have a VS Code project with LWC and Apex referencing custom labels. When I attempt to deploy the meta using: sfdx force:source:deploy -x manifest/package.xml -u testsdo-20201006 It fails with a ...
0
votes
1answer
28 views

VSCode Salesforce API/sfdx mass create custom formula fields

I'm looking for a way to custom create a placeholder formula field. SOAP doesn't allow formula field. I see a few ways online using force.com IDE, but now I'm trying it out on VSCode and I'm kind of ...
7
votes
8answers
1k views

Error deploying to org: “Cannot read property 'success' of undefined”

When Deploying anything from VSCode I get the same error everytime. I have created a new project in VSCode using SFDX. I am able to authorize and retrieve from org, but anytime I deploy I get the same ...
1
vote
1answer
62 views

VSCODE for Salesforce Authorize org using session Id

I'm trying to Authorize my salesforce org to VSCODE using session Id as mentioned in the documentation. But it is not working. Can you please let me know what mistake I'm doing here. sfdx force:...
0
votes
1answer
21 views

.gitignore for various IDEs

So I searched almost everywhere for a reasonable .gitignore that also covers multiple IDEs while also making it clear which is which. The examples I found so far a poorly structured and do not ...
0
votes
0answers
48 views

VsCode Running SFDX: Authorize an Org did not open a browser window

Recently, I discovered that I can not Authorize existing Projects or new Projects to my Salesfoce Sandboxes. I did a lot of research, and it looks like this could be an issue with setting a default ...
0
votes
1answer
41 views

Flexipage deployment error

Error while deploying the flexipage in 21 sandbox ,, it is working fine by retrieving from the VS code Kindly help error: Property 'itemInstances' not valid in version 46.0
1
vote
1answer
27 views

Use Prettier in VS Code to format Visualforce

I'm struggling to get the Prettier for Apex (installed as per instructions here enter link description here) to format Visualforce Pages and Components. I have a vague memory of this working for me in ...
0
votes
1answer
46 views

Retrieve Source in Manifest Not pulling in from Trailhead Org

I have a new trailhead org. I have used the SFDX to Create Project with Manifest option. This generated the following XML. I have set the trailhead as the Default org and authorized it. When I right ...
3
votes
1answer
208 views

You can’t remove the following public properties because the component is part of a managed package

I am trying to push a JS file in a LWC Component and am unable to do so with this error lwc/boatMap/boatMap.js-meta.xml: You can’t remove the following public properties: boatId, because the component ...
0
votes
0answers
110 views

How long can sfdx refresh sobject definitions run?

I have a dev sandbox against which I am pulling a SFDX: Refresh SObject Definitions. It has been almost 24 hours since I have initiated this and it is still running. The sandbox has a lot of objects ...
4
votes
0answers
99 views

SFDX: Get Apex Debug Logs returns “undefined”

This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
1
vote
1answer
208 views

VS Code autocomplete for LWC only shows up when using ctrl+space and not as I type

I am setting up my LWC dev environment with vscode but for some reason the intellisense for LWC only works if I hit ctrl + space, instead of showing up as I type. Here's what it look likes as I type: ...
0
votes
2answers
106 views

How to fix the error on deploying the apex classes using VS code

Help me to fix this error 'SFDX: Deploy This Source to Org' resulted in an error (c:\force-\main\default\classes\ChangePasswordController.cls: Metadata xml file missing for 'LightningComponentBundle')
0
votes
0answers
27 views

Help deploying lightning component from git clone

I'm new to git and trying to deploy some lightning components to my developer sandbox for testing. The git page is: https://github.com/CharlesHGong/lightningRelatedListWithFilter In vscode, I believe ...
0
votes
0answers
33 views

Why am I getting errors when trying to push code to scratch org?

I'm trying to push my code into a scratch org using SFDX. I keep getting errors which don't make sense -- many of them are saying how a variable doesn't exist and I scan the class to see the variable ...
0
votes
0answers
45 views

VS Code: disable the Refresh SObject Definitions prompt

In VS Code, how do I disable the "You don't have any sObjects cached locally" prompt? I don't want to use this feature in my projects.
0
votes
0answers
47 views

Deploying lightning web component from VScode to sandbox takes more time

I am trying to deploy lightning web component from VScode to the sandbox using the command SFDX:Deploy Source to Org. It was working fine previously but for the past 2 days, deploying is taking more ...
1
vote
1answer
114 views

Issue with setting default org in VSCode

I am trying to set a default org in VScode but it is not working. I get a Cannot read property 'getInstance' of undefined error. ERROR running force:auth:web:login: Cannot read property 'getInstance' ...
0
votes
0answers
34 views

Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined)

Facing below error when I am trying to deploy LWC from VS Code Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined) Steps to generate error: ...
6
votes
1answer
374 views

Deprecated or invalid utility class SLDS

I have been trying to use SLDS in LWC. However, I am noticing these issues recently. The same style classes were working before without any issues. Does anything worng with my VS code or is really ...
2
votes
3answers
781 views

Cannot read property 'getInstance' of undefined

When trying to authorize an org/ trying to deploying source to org / retrieve the source from an org i'm getting below error. kindly help me to resolve this issue.
2
votes
0answers
86 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
0
votes
0answers
144 views

Apex extension High CPU - Zulu Platform x64 Architecture [duplicate]

I experience problem with high CPU usage after every start of visual studio code. It is strictly related to apex extension. It started happening when some pop up appeared in bottom right corner. I ...
3
votes
0answers
31 views

How do I apply formatting to method descriptions in Apex / VSCode?

VSCode, when showing a tool-tip for an Apex method, will show the description of that method as defined in the fairly standard format: /** * States that the next method definition is expected to be ...
0
votes
0answers
102 views

HI All is there any way to update API version for apex classes in bulk

Is there a way to upgrade api versions of all apex classes without manually updating each of them? I have read this link and try to achieve but not able to deploy in the sandbox using the VS code. Is ...
0
votes
1answer
68 views

How delete class from Production that doesn't have code coverage

I have two classes on production org that is like a default class (supersort and TrialCustomerPortalHomePageController), but does not have code coverage at all. So because of that I'm not able to even ...
0
votes
0answers
17 views

Regarding deploying code from one production org to another org

I tried creating a project with manifest.using the package.xml i've pulled all the data from the org1.then i authorized org2 and deployed the source into that org.my code is successfully deployed but ...
3
votes
3answers
491 views

How to see anonymous code debug logs in visual studio code?

I installed the Salesforce CLI and the Salesforce Salesforce Extension Pack on Visual Studio Code because it's easier to write code than the Developer Console but I got a problem. I want to get the ...
0
votes
0answers
48 views

VS code Package.xml not retrieving new components

I am trying to retrieve new components such as ApexClass through "sfdx retrieve source in manifest from org" on the package.xml (sample below), and it doesn't retrieve any new components ...
0
votes
1answer
51 views

Error Configure VS codespace

I am currently facing an error while configuring salesforce with VS code online We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: refresh_token ...
1
vote
1answer
103 views

SFDX CLI is not working for any commands

SFDX suddenly stopped working for any commands. I updated sfdx and its plugins, still its giving same error. I am using same from VS Code, I created scratch org and performed few activities, and after ...
1
vote
1answer
75 views

Lightning Web Component is not available in App Builder when deploying from VS code

I am used to of 'The Welkin Suite' editor for official development. I am not frequent user of VS code. Only using VS code for personal use. Yesterday I observed weird issue while deploying LWC ...

1
2 3 4 5 6