Skip to main content

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
1 answer
66 views

Error after installing Salesforce CLI

Something is not working after I have installed the Salesforce CLI. When I query sfdx update in PowerShell I get this error: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Program Files\sf\client\...
Heather's user avatar
  • 63
0 votes
1 answer
42 views

How to set rules in vscode salesforce security scanner

I'd like to be able to set what rules run when running the Salesforce Security Scanner from within VSCode. There are times when I'm solely interested in security issues and I want to filter out noise,...
Ken's user avatar
  • 430
-1 votes
1 answer
33 views

Create metadata Container with sfdx command

Is it possible to create a Metadata Container using sfdx command ? then to create an apex class and deploy the metadataContainer to my Salesforce Org I want to update an apex class that i have in my ...
TheHmad Al's user avatar
0 votes
1 answer
45 views

Unable to deploy due to Payload Error Invalid version specified on package.xml

I'm unable to deploy a simple LWC from a trailhead. (I'm copy/pasting the example code, couldn't get to the hands-on challenge) A list of things that I already tried: Changed the version on the ...
Juan Ignacio Carreño's user avatar
0 votes
1 answer
30 views

Execute Anonymous code stopped working in VS Code

Around a week ago I was executing random code from VS Code and checked the output (to debug stuff that I then put in an Apex class). But today when I hit key combination or select "SFDX: Execute ...
Andrii Muzychuk's user avatar
0 votes
0 answers
49 views

Salesforce for Vlocode not connecting to a Salesforce Org in VS Code

I am trying to connect a Salesforce org to Vlocode to work/deploy Vlocity components via vs code. But whenever I try to connect to a Salesforce Org, it shows up the below error [SalesforceConnection] [...
C. Praveenkumar's user avatar
2 votes
1 answer
34 views

How to remove locationX and locationY from flow files?

When retrieving a flow file using vscode, is there a way to remove the <locationX> and <locationY> nodes? These are really annoying, and make the process of identifying differences between ...
Nick C's user avatar
  • 6,790
2 votes
2 answers
153 views

Salesforce Org Browser in VS Code: ctrl+f stopped working

I used to be able to click on a metadata category (e.g., Apex Classes) in the org browser within VS Code. I could then use ctrl+f to bring up a search box where I could type in the first few ...
SF Dev Man's user avatar
0 votes
1 answer
49 views

Where is CurrencyType Metadata for Multicurrency stored in VSCode?

tl;dr - Is CurrencyType metadata available for tracking in VSCode, and if so where is it stored? I'm working on a project that involves activating multiple currencies in my org. I've been able to ...
Jwok's user avatar
  • 789
1 vote
1 answer
127 views

VS Code - Unable to activate the Apex Language Server - spawn ENOTDIR

I'm trying to resolve Apex Language Server error in VS Code: Unable to activate the Apex Language Server - spawn ENOTDIR Supported Java version has been installed and is already set in VS Code ...
Harout Tatarian's user avatar
-1 votes
1 answer
49 views

How to access existing code in Salesforce

I am an admin but not familiar with apex coding. How do I access existing code? Is it through Developer Console? As I am looking through the related questions, I came across Visual Studio Code ...
DigitalCS's user avatar
0 votes
0 answers
19 views

VSCode SFDX Deploy Source to Org -- Seems to be attempting to validate against multiple environments?

I have a LWC which is currently being used in an Experience Cloud site. I have VSCode authenticated with a sandbox org, and I attempted to make one change (removing a particular design attribute from ...
user148666's user avatar
0 votes
0 answers
45 views

VS Code Apex Debug Replayer : "Running Java Command .... failed"

I am trying to run the Apex Replay Debugger and keeps getting the following VS Code Apex Debug Replayer : "Running Java Command .... failed" error. It used to work on my computer (windows) ...
jojopogi's user avatar
  • 512
3 votes
1 answer
53 views

Reduce coverage noise in results when running Apex tests in VS Code

It used to be that when I ran Apex tests on a test class in VS Code, I would see one result per @isTest method. More recently (I'm not sure for how long), I started getting multiple results per @...
Matthew Souther's user avatar
0 votes
0 answers
57 views

Unable to authorise an ORG in VS Code

Getting an error as below when trying to authorise an org. In VS Code - Error (1): Invalid client credentials. Verify the OAuth client secret and ID. Error authenticating with auth code due to: retry ...
HG_'s user avatar
  • 117
0 votes
0 answers
30 views

While Retriving the Resource from the Org in VS Code Facing SFDX command Error regarding sfdx.retrive.component

I am trying to retrive the resource from the connected Org in VS Code. While clicking on the retrive button vscode is showing me the error like this: Error running command sfdx.retrieve.component: ...
Bhavesh Tilvani's user avatar
0 votes
1 answer
43 views

VS Code language mode defaulting to Java not Apex

Every time I open an Apex class file (.cls) I have to manually change the language mode from Java to Apex. In VS Code settings I already have Language Detection enabled. Why does it not go by the ...
Joshua Soderlund's user avatar
1 vote
1 answer
45 views

How can I customize the template used to create lightning web components?

Using VS Code's command palette, I can create a LWC by being prompted for a name. If I enter a name of myComponent, I get the requisite files with the JS file having the following: import { ...
Chuck's user avatar
  • 977
2 votes
3 answers
916 views

Issue while Authorize an salesforce org in VS Code failed, due to Invalid request method: OPTION

I have installed VS code, Salesforce CLI with extensions, and Java. I have created the project. After that, I tried to authorize an org in vs code. But I faced the issue as Starting SFDX: Authorize ...
Madhavan p's user avatar
0 votes
1 answer
166 views

Install Modeler Salesforce CLI Plugin (Vs Code)

we are working on Visual Studio Code Based Modeler for Consumer Goods Cloud and an update was made in the plugins for salesforce modeler, and it did not work correctly. I reinstalled the plugin as ...
Francisco Becerra's user avatar
0 votes
0 answers
24 views

How to retrieve Gmail integration changes in VS Code

I am making a change in the "Publisher Layout Assignment" in the "Gmail Integration and Sync". How do I retrieve this change in my VS code ? What should I include in the package ...
Preethi's user avatar
  • 17
1 vote
2 answers
147 views

Get All the Reports Metadata Backup

Want to get all reports metadata from Salesforce, tried with VS code Org Browser, but it doesn't get me all the Reports. SELECT Count() FROM Report fetches 10000+ Reports Appreciate any help/...
RKM's user avatar
  • 517
0 votes
0 answers
322 views

Cannot install @salesforce/lwc-dev-server

When running sfdx plugins:install @salesforce/lwc-dev-server on Sonoma 14 OSX, it returns either: Warning: @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead Error: /usr/...
number41's user avatar
  • 980
0 votes
1 answer
42 views

Vscode extension code error "transport target for "..\..\lib\logger\transformStream"

I'm trying to create a new VsCode extension that connects to the default salesforce org using the npm package @salesforce/core with typescript. the code is the following: // The module 'vscode' ...
faouzi Ch's user avatar
1 vote
1 answer
229 views

Is it possible to maintain a subfolder structure for apex files outside of the local dev IDE environment?

I am aware that I can create subfolders in my classes folder under force-app folder in VS code. However, once I deploy these classes to my org and if they are pulled by another dev, is there a way to ...
magdalena's user avatar
0 votes
1 answer
562 views

Error while running 'Authorize an org'- command VS code (mac)

installed Vs code in mac installed java 11 installed salesforce cli installed salesforce extension pack ran the command "create project with Manifest' -- successfully ran. ran the command '...
Praneeth's user avatar
0 votes
0 answers
202 views

Debug Test for Apex in VS Code failing with error about wrong debug levels

I have created a very simple Apex class and a Test class to test it. When I run the test with 'Run Test' it executes as expected. When I run the test with 'Debug Test', VS Code shows an error dialog ...
btlog's user avatar
  • 101
0 votes
1 answer
137 views

How can I get `prettier` to properly format perm set XML files with `flowAccess`?

Our team is working with mock permission sets in our project for testing features. We have triggers to apply prettier when saving or committing files, and it's been breaking our perm set metadata ...
Chuck's user avatar
  • 977
0 votes
0 answers
61 views

unable to see object from installed package in profile in visual studio code salesforce once retrieved

I have a small issue I can't seem to figure out a solution for. I am unable to see objects from managed packages in VSC in Profiles, they are not showing when I try to check the permissions for them. ...
Simona Croitoru's user avatar
0 votes
2 answers
1k views

VS Code - installing and using SF CLI

Quick Background: I am fairly new to VS Code and LWCs. I've been working on a LWC and deploying to a sandbox (we'll call it GSB), then using change sets to push to prod. I recently refreshed the ...
Miguel Diaz's user avatar
1 vote
1 answer
326 views

How to Diff Entire Org (list of changed files) in VSCode?

When right clicking on the force-app\main\default folder and clicking SFDX: Diff Folder Against Org it doesn't list all the files changed in all the subfolders, but some changed files are not listed. ...
Z0q's user avatar
  • 91
3 votes
2 answers
581 views

How to Authorize VS Code to Dev Org with SSO/Okta

I am looking to authorize my VS Code to an org that utilizes SSO/Okta. How can this be done?
magdalena's user avatar
0 votes
0 answers
81 views

Error: Invalid Alias or Id for SFDX Package Install

Getting error when using package alias name sf package install [email protected] vs 04t Id. Using the Id works fine. My packages are namespaced. Error (1): Invalid alias or ID: provutil@1....
ddeve's user avatar
  • 1,606
1 vote
1 answer
971 views

sf v2 CLI does not work with VSCode Salesforce Extensions

I have upgraded to sf (v2) from sfdx (v7) As per documentation: Move from sfdx (v7) to sf (v2) Which involved uninstalling sfdx (v7) But now when using VSCode the commands it generates no longer ...
Robs's user avatar
  • 9,396
0 votes
0 answers
246 views

Deploying tracked Activity field through VS Code

I'm having some issues figuring out how to deploy field tracking for an Activity field. I'm sure it's something to do with the weird Activity/Task/Event web that Salesforce has weaved. I tried adding ...
LFelts's user avatar
  • 1
1 vote
1 answer
1k views

VS Code CLI Retrieve taking too long to respond/complete

For several years I have been using the SF CLI retrieve commands in VS Code to retrieve data from my Partial Copy Sandboxes to my local git repo. About a month ago I moved from using the force:source:...
Jeff Callahan's user avatar
0 votes
1 answer
660 views

Issue while Authorizing Org to VS Code though two of my org are already connected to VS Code

Can anyone please help?! I am unable to do Authorize org with VS Code. I have two orgs that are already authorized with VS Code, but I am not able to authorize a new org. It's throwing an error though ...
Puja's user avatar
  • 13
2 votes
1 answer
146 views

Apex VS Code Type Intellisense

I am wondering if anyone knows a way to make "type" intellisense work better when instantiating things like Lists and Maps in VS code for Apex. I've put a few examples in the images below, ...
user3643040's user avatar
1 vote
0 answers
969 views

VS Code Salesforce extensions not activating

I've been using VS Code for a few years now, and in different computers and even in a couple of companies but a several weeks ago I have been having this issue. When opening or running any command in ...
Marco Galvão's user avatar
0 votes
1 answer
4k views

How to retrieve List View buttons using SFDX?

I am trying to retrieve the list view buttons settings from my Lead object but am unsure of how to capture this using VSCode Org or SFDX. It is under Custom Objects > Leads > List View Button ...
Deployment Failure's user avatar
0 votes
0 answers
275 views

Retrieve the folders of dashboards/reports with vscode package.xml

I want to register a report folder using the package.xml in VScode and transfer the folders. I entered the following source code in the package.xml, and when I performed a retrieve in the terminal, an ...
Mitsunori's user avatar
0 votes
0 answers
467 views

VS Code Retrieve and Deploy Commands are not working from command palette/right click menu while working great from Terminal commands

Getting below error when I Retrieve or Deploy any component in my VS Code - Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package ...
sunil gupta's user avatar
0 votes
0 answers
280 views

Trying to retrieve all the Metadata components in VSCode

I have tried to retrieve all the Metadata components from a Production org in VS Code successfully in the past by using the below command. sf project generate manifest --from-org --name=allMetadata -...
Soham Banerjee's user avatar
0 votes
0 answers
43 views

Org Status=requested resource does not exist

Yesterday, the all of the connected orgs that I had been using without issue had their statuses change to "The requested resource does not exist" in vs code. I have tried uninstalling and ...
Lauren Sweet's user avatar
1 vote
0 answers
906 views

VS Code - Authorize An Org - Failing on SFDX command

I recently started getting an error when trying to authorize an org using the Salesforce extension in VS Code. This is the error I am getting: sfdx org:login:web --alias PackagingOrg --instance-url ...
James's user avatar
  • 337
-3 votes
1 answer
71 views

Authorizing Salesforce Dev Org From VS Code

When I am trying to authorize my dev org in VSCode, I am getting the below error? Is anyone facing the same issue?
Sudipta Deb's user avatar
  • 1,263
-1 votes
2 answers
886 views

how to overcome salesforce CLI slowness?

Salesforce extensions are taking ages to load in VS-Code. CLI team is releasing updates 5 times in a month, Not sure each release has went through performance testing before release ? After update I ...
Ragul's user avatar
  • 541
0 votes
1 answer
348 views

Unable to install lwc local server VS code

from yesterday I'm trying to install LWC local development server using 'sfdx plugins:install @Salesforce/lwc-dev-server' but i'm getting an error a weird error like this. Polling for new version(s) ...
Mohammad Danish's user avatar
1 vote
0 answers
113 views

Manually loading apex test code coverage from sfdx command into vsCode

Whenever I run tests through vsCode, the tests take very long time to complete (a single test could take up >10 min or they time out with the "Your request exceeded the time limit for ...
Luis M Valenzuela's user avatar
-2 votes
1 answer
516 views

Not authorizing sandbox in VS code

I am getting error while authorizing sandbox in VS code. Earlier I was successfully authorized old sandbox but now it is giving error. After Users\PJ20912 I am not able to see path in my computer. Can ...
Varsha Yadav's user avatar

1
2 3 4 5
12