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
2
votes
2answers
49 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
34 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
97 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
31 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
83 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
59 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
561 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
47 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
304 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
42 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
195 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
395 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
123 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
3k 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 ...
2
votes
1answer
677 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
55 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
520 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
156 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
291 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
2answers
255 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 ...
4
votes
2answers
933 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
693 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 ...
3
votes
0answers
450 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
724 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
883 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
82 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
113 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 ...
1
vote
0answers
107 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
114 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
405 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
56 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
944 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 ...
3
votes
3answers
1k 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
266 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
351 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
55 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
432 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
197 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
18 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 ...
4
votes
3answers
2k 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
356 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
55 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 ...
2
votes
1answer
299 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
243 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 ...
0
votes
1answer
272 views

VS Code Mac not Using SFDX Commands

I'm currently trying to troubleshoot something wrong with my vscode. I'm able to us Salesforce DX CLI tools in the console, but I'm not able to do it with the Command + P + >. Whenever I do this, I ...
1
vote
1answer
38 views

Viewing Apex file names in VS Code before retrieving it without using ForceCode extension

Earlier I was using ForceCode extension in VS Code. It had a nice feature to retrieve files ( Apex ) from server. You enter characters in the search box and it will show filtered list of Apex in a ...
1
vote
0answers
152 views

Unable to retrieve source after successful authorization in VSCode

I created a project with manifest. When I right click on package.xml and click 'Retrieve source', VSCode is repeatedly giving the following error even after successful authorization of the org: ERROR ...
1
vote
3answers
125 views

How to use VS Extenstion for SOQL as Introducing of Salesforce?

Salesforce just introduced Code Builder as in the link: https://developer.salesforce.com/blogs/2020/06/introducing-code-builder.html I see in the document. They are using a pro SOQL query in VS Code ...
0
votes
1answer
3k views

How to find unused variables /methods in VS Code? [closed]

In VS Code is there a way to see if variables /methods are not referenced? There are some posts like this that reference eclipse, but I couldn't find anything that's recent.
3
votes
3answers
623 views

How to get custom object in VS Code

I would like to setup a dev environment using Visual Studio Code. I'm able to do that with the help of Salesforce Extension Pack. I want to fetch all custom object in VS Code. How Can I achieve this?

1 2
3
4 5
8