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
34 views

How to download all Apex classes from Prod using VS code

Now that Force.com IDE plugin for eclipse is unsupportive, is there any way to connect to Prod org using VS code and download all Apex classes. I can see all extensions for SFDX but I do not know how ...
1
vote
0answers
18 views

LWC eslint rule [closed]

I am in VSCODE and trying to set eslint rule for LWC using https://github.com/salesforce/eslint-plugin-lwc I am unable to set it up properly and lint rules are not firing. Can anybody help me here who ...
0
votes
0answers
31 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the bottom right of the "...
5
votes
1answer
281 views

Retrieving Metadata from Org using VS Code and CLI results:- MaxListenersExceededWarning: Possible EventEmitter memory leak detected

I am seeing a new warning message when retrieving metadata from VS Code. The metadata retrieval is successful but also getting below message. Steps to reproduce:- I have created a Lightning Web ...
1
vote
2answers
35 views

Unable to authorize the org in vscode

When i tried to authorize the org via vscode this issue is showing.After killing process id 1717,another issue is showing.Here is the issue { Error: spawn cmd ENOENT at Process.ChildProcess....
0
votes
1answer
53 views

Unable to create scratch org successfully in Visual Studio Code

I have authorized dev hub org successfully and now trying to create default scratch org using visual studio code but getting following error: sfdx force:org:create -f config\project-scratch-def.json -...
3
votes
0answers
63 views

VS Code deploy: Maximum call stack size exceeded

I'm trying to deploy code in VS Code to an org. I'm getting the following error. The package.xml is valid, as far as I can tell. Starting SFDX: Deploy Source to Org 14:57:24.268 sfdx force:source:...
1
vote
2answers
57 views

Download all objects and search validation rules only

I've recently setup vs code in hopes that I could easily download all validation rules and search across them for a string. We're updating our roles and role names are used in a lot of validation ...
2
votes
1answer
47 views

Storing VSCode project in google drive? 100% cpu usage

I'm following the trailhead to try and setup vs code Salesforce extensions. Trailhead link After authenticating with my playground org and trying to create an apex class, I noticed it was running ...
2
votes
2answers
65 views

Issue with SFDX: Authorize an Org

I am trying to create a Hello World Lightning Web Component as mentioned in the URL below. Hello World Lightning Web Component But in VS code I am getting below output. I did some analysis but unable ...
-1
votes
0answers
16 views

How to Merge Compared changes in VS Code

I could able to compare selected files in VS Codeas showed in screenshot but I did not find merge those changes within VS Code. Please let me know is any way to merge option. Thanks, Srinadh B
1
vote
1answer
60 views

VS code for Lightning Web Component

Suddenly started getting below error in my VS code while deploying components. Error: Parse error in file C:\Users\cccccr.sfdx\stash.json on line 1 FILE HAS NO CONTENT
-1
votes
1answer
38 views

Simplify Git bash CLI steps to commit the code to Github [closed]

I Would like simplify the below steps to commit code to Github. Please share any suggestions Step to Commit and Push code from local folder to repository through terminal. Move to Full retrieve ...
2
votes
2answers
44 views

Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml <?xml version="1.0" ...
0
votes
0answers
23 views

Source Tracking in VS Code

I would like to Track Salesforce Source Code in Visual Studio. Already Installed & Configured Coding Tracker Extension into my VS Code.But I am unable to Track Source Code and facing "Can’t reach ...
0
votes
0answers
20 views

Type name already in use - Unable to use Rename Symbol command to correct Apex class name capitalisation

I use Apex PMD, one of the rules is: Class names should begin with an uppercase character (rule: Code Style-ClassNamingConventions) See: https://pmd.github.io/latest/pmd_rules_apex_codestyle.html#...
2
votes
1answer
132 views

F2 Rename Symbol in VSCode does not work with Apex

I am unable to get the Rename Symbol F2 command to work in VSCode when editing a Apex class. When I press F2 the floating input appears, once I press enter the code is not updated, and I cannot see ...
5
votes
1answer
82 views

LWC Folder Structure

Id there a way to organize my components inside sub folders and not having them saved directly under LWC? Just a simple example, if I have 10 components related to Contacts and another 10 related to ...
1
vote
3answers
81 views

how to open lwc without vscode salesforce

I mean If I can check the code (for lwc as js and html code) in salesforce without vscode. I can not see the code in developer console
-2
votes
1answer
23 views

How I can retrieve DeployOptions with VS Code?

How i can retrieve DeployOptions metadata with VS Code and edit it? Or How I can deploy a class to Production without running any tests?
1
vote
1answer
49 views

VS Code Open code in browser

My VS Code project is already authorised with Salesforce sandbox and I am able to deploy or retrieve the files successfully. How can I launch the Salesforce org from the currently opened apex class ...
2
votes
1answer
53 views

VS Code Debugging Class

I am new to VS Code, I have read up on it. I can write APEX very well but only in the developer console. I am used to System.Debug Logs. I see that in VS Code you can put in Breakpoints versus debug ...
0
votes
1answer
28 views

Shortcut to see result of a Query in VS-Code itself rather than keep checking in Developer Console?

I wanted to know if there is any shortcut, with which we can instantly check result of SOQL query written in Apex class in VS-code itself rather than every time keep checking it in Developer Console??
2
votes
2answers
53 views

Unable to retreive All the LWC on VsCode

I tried creating projects on VScode with or without manifest and updating metadata but cant retreive the LWC of an Unmanaged Package.
3
votes
1answer
269 views

How to format Apex code more flexible than with Prettier

Note: This is a Salesforce-specific question so don't close it. Salesforce has contributed a Prettier plugin for Apex so in other forums people cannot help me. I'm new to Prettier and couldn't ...
0
votes
0answers
10 views

While deploying an Application I am getting this Error in VS Code

While deploying the Application. The page "Dataset Explorer" for Menu Item "Dataset Explorer" must be published, begin with a / character, and consists only of characters that are permitted in a URL ...
2
votes
2answers
148 views

Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server. I've run command: sfdx update So I know I am using the latest version of the CLI. And I've installed the plugin: sfdx plugins:install @...
0
votes
1answer
225 views

Error: Cannot find module '@salesforce/sfdx-lwc-jest/config' while testing my LWC from vs code

I have started my practice on LWC testing While i'm run this command:"npm run test:unit" i am getting this error:Cannot find module '@salesforce/sfdx-lwc-jest/config'. Error body is: Error: Cannot ...
4
votes
3answers
76 views

VS Code Deploying User Interface similar to MavensMate?

One of the things I loved about MavensMate was how easy it was to deploy Metadata from one SFDC Org to another. See image below - it allowed you to select which metadata types you wanted to deploy and ...
1
vote
0answers
22 views

VS Code - Compare metadata in different orgs

The one thing that Eclipse IDE seemed to do well that I've not yet worked out in VS Code is comparing metadata in different orgs. Using VS Code, I know how to compare files which are in the same ...
1
vote
1answer
75 views

How to retrieve lightning component quick action in VS code

How to retrieve lightning component quick action in VS code. When i retrieve the layout it is showing the quick action for visual force components only. Do any one know how to fix this. My package.xml ...
6
votes
0answers
156 views

Uncrustify with VS Code is overindenting SOQL Lines

I use VS Code and use Uncrustify to format the apex code As per this article. This was working fine for me until all of a sudden my SOQL lines are now automatically indented after the WHERE clause. ...
0
votes
0answers
49 views

Can't refresh sobject definitions from SFDX: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm having the same problem described here: sfdx sobject refresh That thread has this suggestion: Go to your personal setting and then to Authentication Settings for External Systems then clear ...
1
vote
1answer
30 views

Giving custom field edit access to System Administrator

I recently transferred a bunch of metadata from one Salesforce Organization Instance to another. To do this, I created a package that contained all the custom objects, web components, apex classes, ...
1
vote
1answer
17 views

Trouble Installing JDK on Mac for VSCode (SFDX)

I'm trying to do the Apex Replay Debugger trailhead, which requires JDK 8. When I install the JDK on my Mac, the installer tells me it went into /Library/Java/ directory. However, when I look in that ...
1
vote
0answers
29 views

SFDX: Get Apex Debug Logs for Site Guest User in VS Code

How do I get Debug Logs for Site Guest User in VS Code? I ran SFDX: Get Apex Debug Logs and I can see debug logs for my user. But what I want is debug logs for Site Guest User which I don't see in the ...
1
vote
1answer
182 views

Unable to install sfdx plugins:install @salesforce/lwc-dev-server

I am using 1.38.1 version of VSCode and i have done "http.proxyStrictSSL": false I am still getting error Error: unable to get local issuer certificate i tried in my personal laptop. Now ...
0
votes
1answer
94 views

Running into a “A name parameter is required to create storage” when creating Apex Class w/ VSCode

I'm attempting to create an Apex Class a part of the Convert Lightning Web Components Open Source to Salesforce trailhead module and when I try to create a class on my mac, I run into this error. ...
0
votes
1answer
232 views

Cannot connect to Salesforce Org from VS Code/Salesforce CLI: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm trying to connect to my Trailhead playground org with the Salesforce CLI on VS Code. Here's what I've done: I created the project then clicked on Authorizing a dev hub. I was prompted for a login ...
0
votes
2answers
58 views

Not able to Authorize an ORG in VS Code

I am trying to create project workspace using VS Code. I am using SFDX: Create Project with Manifest command. After executing, it is creating folder for my project with all default files in VS code. ...
0
votes
1answer
23 views

Retrieve Case Action - Send Email Metadata in VsCode

I have made changes to the pre-defined field values section of Case Action:Email in my scratch org. Upon pulling, VsCode retrieves nothing. Can someone help? How should I commit this change and under ...
1
vote
2answers
74 views

How to select “selected” project components (autogenerate custom package.xml) in VS Code?

When creating a project in Eclipse Force.com IDE, there was a step to tick project components in a checklist. That would generate package.xml accordingly. In fact, you could also later "Edit project ...
1
vote
1answer
140 views

Working with GIT and org code in VS code for a single sandbox

We have our existing code repository in GitHub. This code is in folder structure resembling eclipse IDE forlder structure(or probably they call it metadata structure), like src --> classes --> myclass....
0
votes
1answer
124 views

VS Code retrieve Profile data

I retrieved with VS code all my profile, with * Profile in package.xml. But in definition of a profile "profileName-meta.xml", i can't find userPermission with false value. ...
1
vote
1answer
34 views

Where to find connected VS Code apps in setup

I tried finding the connected VS Code apps in Connected Apps OAuth Usage and Manage Connected Apps but could not find it. I have below queries: Where to find which all VS Code apps (and which systems)...
3
votes
4answers
1k views

VS code: how to specify Aura bundle folder?

Can anyone explain this error, that I've got in VS Code recently? When I tried to deploy code to my Org, I got this: SfdxError: You must specify the Aura bundle folder, not an individual component. ...
2
votes
1answer
22 views

How do I display more characters when debugging SFDX code?

I have variable in my code defined as follows: String myString = myConfig.my_field_name__c; When debugging in the SFDX console (in VS Code), the variable's value is only displayed as: myString: '...
1
vote
0answers
202 views

SFDX Source Diff: Error: EISDIR: illegal operation on a directory, read

Background I want to use the Source Diff feature in VSCode. When I follow the instructions to install it, by running this command: sfdx plugins:install @salesforce/sfdx-diff I get this error: $ ...
6
votes
1answer
589 views

Lightning Component Indexing in VisualStudioCode hogs CPU and memory slowing my PC

I keep seeing "Indexing Lightning Components" in Visual Studio Code, which is a CPU and Memory hogging activity, slowing my PC. Is there a way to make it less CPU intensive?
0
votes
1answer
120 views

VS Code and custom Labels

I use VS Code with Salesforce extensions and connect to my sandbox as explained here: https://forcedotcom.github.io/salesforcedx-vscode/articles/user-guide/org-development-model With my package.xml ...