Skip to main content

Questions tagged [visualstudiocode]

Visual Studio Code is a cross-platform source code editor developed by Microsoft. This tag is for questions regarding the numerous Salesforce plugins that exist for it such as VsForce, ForceCode and MavensMate.

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

Where to see triggers in Visual Studio Code

I have a few triggers that I can see in the Developer's Console. I cannot find them in Visual Studio Code. I am looking for guidance as to where I should see them. I am in the Org Browser feature ...
Michele Kleinhomer's user avatar
0 votes
0 answers
54 views

Prettier, in VS Code, failing to format SOME VF Pages

I'm using Prettier, along with the plugin prettier-plugin-apex in VS Code, to format Salesforce classes and Visual Force pages etc. It works (formats my docs on Save) most of the time, but now some, ...
cyberspy's user avatar
  • 210
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
1k views

How do I get Apex Code Coverage in Visual Studio Code to show color highlighting and percentage after running a TestSuite?

I am using the most updated SF plugin, Visual Studio Code and sf-cli against our internal sandbox environment. I have an Apex class that has tests in multiple files. I would like to run a test suite ...
Shaun's user avatar
  • 161
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
0 votes
1 answer
60 views

Is there a correct syntax highlighting for Aura Components in VSCode?

When editing Aura Components (.cmp files) in VSCode it shows an error, even with the Aura Components extension installed. How do I have syntax highlighting enabled without showing errors for Aura code ...
Z0q's user avatar
  • 91
0 votes
1 answer
686 views

How to disable all Apex PMD warnings in VSCode?

I have set the Priority Warn Threshold to 0, but it will still show warnings as hints. Is it possible to not show any warnings? And I have also created a pmd-ruleset.xml file, but how do I configure ...
Z0q's user avatar
  • 91
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
90 views

compactLayout removed from .object-meta.xml after "sf project retrieve start" or right click "SFDX: Retrieve source from org" 2GP

I'm building a package to eventually put on the app exchange. I've set up a dev hub, created a developer site with a namespace and configured visual studio code. I created my components in visual ...
Andy's user avatar
  • 23
0 votes
0 answers
343 views

Unable to Deploy or Retrieve source from any ORG

I'm facing an issue while trying to retrieve source code from a package.xml file within our organization. This problem has persisted since last year, despite my attempts to resolve it by both ...
GraNeMM's user avatar
  • 11
0 votes
0 answers
229 views

VS Code sfdx-scanner installation error related to SSL

I am trying to install Salesforce sfdx-scanner for VS code on my office laptop as per the below guideline Install and Update Salesforce Code Analyzer. I checked some of the issues related to sfdx-...
Rachit's user avatar
  • 187
0 votes
1 answer
399 views

Connect VSCode to existing Scratch Org

I have two scratch orgs and one non scratch org. I restarted my Visual Studio Code and lost my connection to the scratch org. Can someone please tell me how to connect VS code to existing scratch orgs....
nikhila reddy's user avatar
0 votes
0 answers
191 views

VSCode Quickfix / Code Actions for Apex files not working

TL;DR How can I enable (or customize) quick fixes/code actions for Apex classes in VS code? Problem Quick fix actions like extraction via ctrl + . or F2 for file-wide renaming aren't working. Below is ...
Jwok's user avatar
  • 789
0 votes
2 answers
142 views

Is there a way to commit custom object records via VS Code to a repo?

I could notice we can commit Custom object fields and layouts and such, but can we commit the custom object records which we created in org?
SF Learner's user avatar
0 votes
1 answer
702 views

Cant retrieve EventRelayConfig metadata in VSCode

im playing around with the rather new event relay feature that integrates salesforce into AWS. The feature itself works fine but I stumbled upon the metadata page in the salesforce docs ( https://...
Outcast1104's user avatar
0 votes
1 answer
233 views

ForceCode takes very long to load

I have VS code v1.77.2 and ForceCode v4.0.5 installed on a Windows machine. ForceCode takes more than 15 mins to load. It was suggested to re-install it, but that did not work. Any insight of why ...
Isabel Martinez's user avatar
1 vote
1 answer
193 views

Why is chevron showing on child Data? Tree grid lwc salesforce

JS file import { LightningElement, wire , track} from "lwc"; import { NavigationMixin } from 'lightning/navigation'; import { refreshApex } from '@salesforce/apex'; // Import the schema ...
Noha's user avatar
  • 13
0 votes
1 answer
1k views

Visual Studio Code - can we compare Metadata in two orgs

A client is moving away from change sets to Azure Devs Ops. However, for now deployments are done using change sets, The org size is small, and currently no custom code, only config - custom fields, ...
GroundToCloud's user avatar
-2 votes
1 answer
2k views

'The org cannot be found' error in VS Code

Anyone experienced "The org cannot be found" issue in VS Code. I'm facing this issue from past 2 weeks. Tried with multiple orgs. Un-installed and re-installed VS Code. Tried with different ...
Chinni Vishnu Kalyan's user avatar
0 votes
1 answer
822 views

Retrieve ReportType in Visual Studio Code

I am able to retrieve Email Templates in VIsual Studio Code as follows sfdx force:source:retrieve -m EmailTemplate:"[FolderName]/[EmailTemplateDeveloperName" I have tried searching, but ...
GroundToCloud's user avatar
0 votes
1 answer
797 views

Salesforce Marketing Cloud - Object Names

I need to extract data from Salesforce Marketing Cloud. I'm using KingswaySoft SSIS Integration Toolkit to do the ETL, but I don't know the tables that retrieve the columns I need. I've searched on ...
TiagoD's user avatar
  • 1
1 vote
1 answer
681 views

Setting up debugger with Apex Salesforce in Visual Studio Error "Either your org or user doesn't have the permission to debug Apex"

I am trying to set up breakpoint and debug my code in Apex, but for some reason I get the following error when running the debugger: My lunch.json is as following: I am using Scratch ORG and my user ...
Lyubomir Tsvetkov's user avatar
8 votes
2 answers
15k views

VS Code: "Unexpected end of JSON input" error when changing the default org

When clicking the "Change Default Org" button in the VS Code status bar, rather than seeing a list of the orgs I was authorised against, I was seeing an error: Unexpected end of JSON input
Will's user avatar
  • 509
1 vote
1 answer
48k views

Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'

I hope you have a nice day, for about a month now, every time I connect to an instance through Visual Studio, I get this message: Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable ...
Felipe Peña's user avatar
1 vote
1 answer
769 views

Retrieve Enhanced Letterhead via Metadata API

Can someone please point me to a blog or walk me through steps for retrieving Lightning Enhanced Letterheads in VSC. I can see the classic letter head in VSC but not lightning Enhanced Letterhead, and ...
GroundToCloud's user avatar
0 votes
0 answers
621 views

`sfdx force:apex:log:tail` to only show [USER_DEBUG] logs not working

I'm connected to a Playground org in VS Code. I have made and deployed a class to this org and would like to run some anonymous code in VS Code to test a method of the class. I was able to do this by ...
user135792's user avatar
0 votes
0 answers
1k views

How could i retrieve all email templates to VSC using sfdx or manifest?

I need to retrieve all email templates to my visual studio code to apply a general replacement on the text of those templates. I give a try to the solutions provided at those links retrieve all email ...
HAK's user avatar
  • 1
1 vote
0 answers
125 views

Using Salesforce Extension Pack in Visual studio professional

We purchased Visual studio Professional edition recently, for another project. Before this we have been using visual studio code and the Salesforce Extension Pack to code in Salesforce. Now we want to ...
Theqcue's user avatar
  • 11
0 votes
0 answers
1k views

Unable to retreive org to VSCode

I am having problem with retrieving org to my VS Code. I usually work with IntelliJ, but I need to do some quick testing on my other laptop, so I tried using VS Code. Here are steps that I did so far: ...
Skylore's user avatar
0 votes
1 answer
173 views

Error retrieve from manifest in Visual Studio

I am trying to Retrieve Source from Org and I get this error: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL In package.xml, it shows me: <version>54.0</version> With this ...
Willy Kelly's user avatar
0 votes
1 answer
92 views

Can I have more than 15 active connections in my IntelliJ IDE?

I noticed that every time when I have above 15 active connections to Salesforce orgs, I can't do the new connection (in my IntelliJ IDE). I use Illuminated Cloud 2 plugin to connect this Is there a ...
Fgh999's user avatar
  • 35
3 votes
2 answers
5k views

Go to definition not always working in VS Code

When I'm developing Java code, I frequently Cmd-Click on Mac or Ctrl-Click on Windows to go to the definition of a method, class, constructor, etc. however when I'm developing Salesforce APEX code it ...
mjaggard's user avatar
  • 163
-2 votes
1 answer
223 views

Can you delete an opportunity record type in Visual Studio code? [closed]

I am reading mixed information. Can an opportunity type be deleted?
user115088's user avatar
0 votes
0 answers
653 views

invalid element error for <runtimeNamespace>

I am getting an error in xml file while building LWC (want to use with vlocity component) in VS Code. Please help me to resolve this error. Here is the xml: <?xml version="1.0" encoding=&...
SPH's user avatar
  • 1
1 vote
0 answers
3k views

VS Code and SFDX (salesforce) error: self signed certificate in certificate chain

I'm using Windows 10 + VS Code + Salesforce. From some point when I need to connect to Salesforce org. (make a push or just open it) I get the error "Error: self signed certificate in certificate ...
Pavel Kravets's user avatar
0 votes
1 answer
1k views

Method does not exist or incorrect signature: void keyset() from the type Id

I think is something very small, but i dont what can be, i am new in apex class List<Deal_Registration__c> deal = new List<Deal_Registration__c>(); if (Deal_Registration__c....
Moon's user avatar
  • 13
0 votes
1 answer
1k views

VSCode Outline not loading for apex file

I use VSCode for Salesforce development and the outline section just keeps loading but never loads. It works well for JS files but doesn't show at all for apex files. And due to the same reason, I am ...
love gupta's user avatar
2 votes
2 answers
6k views

Updating Permissions and Profiles through Visual Studio Code

I am new to VS Code and trying to copy Permission Set permissions into a Profile so that we don't have too many permission sets. I thought rather than checking in SF and clicking back and forth I can ...
Hulk Buster's user avatar
0 votes
2 answers
382 views

Is there a way to see who the permission set is assigned to in Visual Studio Code?

Is it possible to see who the permission set is assigned to on the one screen? I know I can do this within Salesforce but its a lot of clicking and slower so if there is a faster way where I can see ...
Hulk Buster's user avatar
0 votes
1 answer
98 views

Cannot connect Salesforce Visual Studio Editor

I'm trying to connect one of my Sandboxes to VS however I keep getting the type error found below. TypeError: Cannot destructure property 'underline' of 'chalk_1.default' as it is undefined. at ...
Noah Brammer's user avatar
0 votes
1 answer
598 views

How to over come the error :- The `innerHTML` property is available only on elements that use the `lwc:dom="manual"` directive?

On click of a div i am trying clear the content and I am making it editable. so when i try to get the innerHTML it has no issues but when i try to modify the innerHTML , i get a console error as below ...
JalilIrfan's user avatar
0 votes
1 answer
2k views

Lightning Web Component not getting deployed

I have been trying to deploy a lightning web component and an apex class to a developer org, but I receive the error "SFDX: Deploy Source to Org failed to run" in VS Code. Did I miss ...
Night Guy's user avatar
  • 214
0 votes
1 answer
278 views

Resource Not Found Using sfdx force:org:create

I am attempting to use a sandbox of my production org as a DevHub for scratch orgs. In VSCode, I am using the built-in sfdx application to do this, first creating an sfdx project, then authorizing my ...
Craig Carpenter II's user avatar
1 vote
0 answers
759 views

VisualStudioCode. SFDX: Authorize an Org. error

In Visual Studio Code. SFDX: Authorize an Org. This error displayed. "ERROR: We can’t query your org. Make sure that you’re connected to this org and have permissions to view the object and ...
ymd's user avatar
  • 11
0 votes
1 answer
888 views

How retrieve Default Org Values from Custom Settings to Visual Studio?

We want to change our 'Default Org Values' in our repo, but we don't find the option in Visual Studio. We are using Visual to upload the code to AWS and need to change this. We tried to include the ...
dibanepa's user avatar
0 votes
1 answer
803 views

Where to find navigation bar metadata in experienceBundle

I created a community using the Partner Central Template, added a few tabs besides home in the navigation Bar clicking on which opens up the salesforce object pages. Now I can see those object pages ...
Sam's user avatar
  • 101
2 votes
4 answers
12k views

Trailhead Dreamhouse: ERROR running force:source:deploy: No source backed components present in the package

I'm new to Salesforce and am stuck on amending the price filter in the DreamHouse trailhead project. The label for the price filter needs to be updated and deployed, but when I try to deploy the ...
CMoney's user avatar
  • 21
1 vote
1 answer
991 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
Olavo Alexandrino's user avatar
0 votes
1 answer
129 views

Do SFDX projects really need multiple jsconfig.json files? [closed]

I have a project with folders breaking up web components into groups, generally by the role of the user who will be using them, along with a folder for components shared across the app. So my projects ...
Chuck's user avatar
  • 977
2 votes
3 answers
9k views

Not seeing SFDX Commands in VS Code

I cant see the SFDX Commands like deploy to server, retrieve from server. Authorization to the sandbox was successful yesterday. When I try to deploy my code from the same workspace in vs code today, ...
sfMon's user avatar
  • 49