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 votes
1 answer
30 views

how to validate changes with vscode for deployment

We have been storing all of our code in a github. I am able to push it against sandboxes and it deploys. How would you go about validating the force-app against production to see if the whole thing ...
user avatar
0 votes
0 answers
31 views

VS Code Salesforce Error : The encrypted data is not properly formatted

I have a VS Code Salesforce project setup to connect to a sandbox. This is a non-SFDX project. When i retrieve the components using a manifest file, I am running into this error. Starting SFDX: ...
user avatar
  • 1,295
0 votes
0 answers
44 views

Custom Metadata VS custom object - 10K records & integration

I have custom metadata created to store some rules that will be used to validate whether the data add on record is valid or not. For example, CMD has 2 fields in it. Job Code and Work Code. When ...
user avatar
  • 4,591
0 votes
0 answers
14 views

vscode flags actiontype as invalid element name when enabling LWC for Quick Action

I am following the example exactly as written in the doc here for "Define Component Metadata in the Configuration File" VSCODE flags the actiontype parameter in this section as an invalid ...
user avatar
  • 4,255
0 votes
1 answer
19 views

Retrieving all groups using SFDX

I'm just wondering if there are any considerations when retrieving groups / queues using SFDX. The problem which I'm currently facing is that I'm unable to retrieve all queues using SFDX. There are ...
user avatar
  • 340
0 votes
1 answer
30 views

Why just right after connecting with the organization (via Illuminated Cloud plugin), my metadata is a little different in my IDE than in my org?

I just connected with my organization (via the Illuminated Cloud plugin) and did "Compare metadata with the server" Although Apex code and Visualforce are the same, many profiles are a ...
user avatar
  • 35
0 votes
1 answer
31 views

Interactive Debugger Not Starting

I'm trying to get started with the interactive debugger. I have a sandbox org with my user assigned to a permission set that has the Apex Debug permission. I try to start debugging from VS Code but it ...
user avatar
  • 235
0 votes
2 answers
115 views

Unable to deploy code using VSCode

I am getting following error while deploying code from VSCode. Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's ...
user avatar
  • 12k
0 votes
1 answer
299 views

Error deploying or retrieving source

I have newly created a project then created a random LWC page and right click on it and deploy and it is giving me below error The file or directory that you tried to deploy or retrieve isn't in a ...
user avatar
  • 2,270
1 vote
1 answer
21 views

UNKNOWN_ERROR occurred on UPDATE of LWC Component VSCode

I am attempting to update an LWC component using VSCode. I am able to successfully create the LWC if it currently does not exist in the sandbox - but any effort to update it fails with the following ...
user avatar
  • 11
1 vote
0 answers
69 views

Run Checkmarx on code not in packaging org (too big for Community scanner)

I am consulting an ISV partner with their resubmission of the Salesforce Security Review. They ran the initial Checkmarx scan using the Partner Scanner on the code in their Packaging org, then fixed ...
user avatar
0 votes
0 answers
48 views

VSCode .gitgnore not ignoring .sfdx folder

As in the title, I've encountered a problem with the .sfdx/ folder in my repo. After cloning the project it sees some local changes in the typings/lwc and typings/tools folder. .sfdx/ folder is ofc in ...
user avatar
-1 votes
3 answers
74 views

How to retrieve the one particular lwc component (only one) from org to vs code?

We all know that it is possible to retrieve all the lwc components from org to vs code using the manifest file but I need to just get only one lwc component from org. Is there any way to do so please ...
user avatar
0 votes
0 answers
42 views

Not able to retrieve source from org using vs code

I am trying to retrieve all the metadata from my developer org through vs code but I am facing this issue : sfdx-project.json file. Add this location to your "packageDirectories" value, or ...
user avatar
  • 53
0 votes
0 answers
56 views

Prettier not working in VS code

I am not able to configure "Prettier" into my VS Code. Followed the following steps: Installed Prettier and selected Prettier as the 'Default Formatter' for both User and Workspace. ...
user avatar
0 votes
0 answers
31 views

VSCode - Missing Plug Icon from CLI Extension

A coworker of mine is missing his plug icon that's made available through the Salesforce CLI Integration (installed via salesforce extension pack). After going through the status bar options, trying a ...
user avatar
1 vote
0 answers
27 views

In Mac, force:org:open: policy denied

I jus upgraded my Mac and now I cant connect to the org via vscode due to the error. I set node_tls_reject_unauthorized =0 sfdx_disable_dns_check=true but no luck. Error running force:org:open: policy ...
user avatar
3 votes
1 answer
65 views

Strange Behaviour: Knowledge__kav gets renamed to Knowledge__c

import KNOWLEDGE_ARTICLE_NAME from '@salesforce/schema/Knowledge__kav.Title'; I have this simple piece of LWC code which when pushed to the org strangely resets Knowledge__kav to Knowledge__c EVERY ...
user avatar
0 votes
1 answer
59 views

Creating Scratch Org results in error

Created a scratch org in VSCode. Trying to push source to default scratch org results in the following errors: The global picklist cannot be resolved Global value set cannot be resolved In field: ...
user avatar
  • 15
1 vote
1 answer
131 views

Problem's are returning errors linking to incorrect file locations giving "The editor could not be opened because the file was not found"

I recently did a new install of VSCode and SFDX CLI on a new Macbook. So versions are recent. I have updated SFDX since this error but it still exists. sfdx-cli/7.152.0 darwin-x64 node-v16.15.0 What ...
user avatar
0 votes
0 answers
63 views

Is there a VS Code setting to prevent the SFDX Problem Matcher from returning absolute path?

When I have a compile problem, the problem matcher does not open the source code file in my project. Instead, it tries to find the file in an absolute path at the root of my C drive (windows 11) and ...
user avatar
1 vote
0 answers
148 views

Invalid Session ID found in SessionHeader: Illegal Session in VS Code

I am facing this error in Visual Studio Code after authorizing an org with session id: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing ...
user avatar
0 votes
1 answer
137 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 ...
user avatar
0 votes
1 answer
57 views

Is anybody using Metarocket.io as a SFDC GUI?

Was trying to find a way to Find & Replace Visualforce page names in an org and this community answer lead me to MavensMate which is not supported anymore. Then this question looking for an ...
user avatar
-1 votes
1 answer
69 views

Visual Studio Code choosing a default Org

How do I choose a default org to connect to? I see a few but no option to choose which one? Thank you
user avatar
0 votes
0 answers
37 views

How should I resolve this error which I am facing while pushing source to salesforce?

So, I been trying to push the source code to the default scratch org which i have created using VS Code but I keep getting this error. 00:14:34.116 sfdx force:source:push --json --loglevel fatal 00:...
user avatar
  • 1
0 votes
1 answer
490 views

How to exclude Test files From Searches in VS Code?

Is it possible to exclude test files when doing a grep search in VS Code? I would have thought one of these regexes would have worked ^/(?!Test$)[a-z0-9]+$ Or ^/(?!Test)([a-z0-9]+)$
user avatar
2 votes
2 answers
416 views

Changes are not visible after deployment of LWC

I'm new to LWC, I'm trying to deploy code after changes but changes are not visible in the LWC Component. I also clear the cache many times but didn't see any changes in the browser. I also Disabled ...
user avatar
  • 21
1 vote
1 answer
172 views

Salesforce DX nested LWC folder structure and different deployment methods result in different behaviour in sandbox [duplicate]

I have this nested lwc folder structure --force-app -- main -- default -- lwc -- parent -- lwc -- child When trying to deploy into my sandbox: in vscode if I ...
user avatar
1 vote
1 answer
121 views

VS Code no longer recognizing CLI Extensions

In the past week, VS Code no longer recognizes the CLI/SFDX. I have verified that I can create projects with sfdx force:project:create and the correct folder structure is created. However, when ...
user avatar
  • 77
3 votes
2 answers
284 views

How do I disable whatever Intelisense is showing me components when I start an open brace in JavaScript?

When I type @api showModal() { in VS Code, I get this from Intelisense: If I press the return key, as I normally will to create a new line, the first item gets selected instead of a carriage return. ...
user avatar
  • 683
0 votes
0 answers
73 views

Git Commit adds line breaks that wasn't commited

I've been working fine deploying profile permissions on git via VSC. Recently I started to have some issues where I check the changes stage those, check again and see like 10 lines modified. Then when ...
user avatar
0 votes
0 answers
55 views

Apex replay debugger cannot replay debug log from Browser application

I try using Apex Replay Debugger. I have successfully setup them all. With a log that's generated from Apex unit test, I can debug it in VS code. I can use breakpoints to pause the replaying. However, ...
user avatar
0 votes
0 answers
200 views

Org Browser only lists fields on Custom Object

The Org Browser on my system used to have the SFDX format for Custom Objects. It would list the fields, listview, compact layouts etc. in tree format so I was able to retrieve the exact component(s) I ...
user avatar
0 votes
1 answer
113 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 ...
user avatar
2 votes
1 answer
172 views

Code Snippets for Aura components and LWC

I am trying to create some vs code snippets for aura and LWC so I created one snippet file for javascript now it works in both the languages but is there a way I can restrict JS and html snippets to ...
user avatar
  • 2,270
0 votes
1 answer
56 views

Visual Studio Error code for required field

I am new to VS code and I am trying to make a field required, I have basically made it required on the object and created the branch in Soruce Tree but I am getting this error when I try to push it. ...
user avatar
  • 11
1 vote
1 answer
116 views

VS Code: Commands run through Command Palette (CMD+Shift+P) won't show in Output

I could be mistaken here, but earlier when I used to use VS Code and the SFDX CLI plugins through the Command Palette (i.e. Command + Shift + P) to kick off a process (deploying code, retrieving code ...
user avatar
  • 13
4 votes
1 answer
189 views

How to integrate Apex PMD with husky and lint-staged?

I am currently working on the IDE setup for a SFDX project. In my opinion the process for ensuring good code quality already starts in the developer's IDE. Therefore, for UI components, I already have ...
user avatar
1 vote
1 answer
256 views

Visual Studio Code [Content] Command 'SFDX: Authorize an Org' resulted in an error (command 'sfdx.force.auth.web.login' not found) [OK]

my vs code was working fine including Authorise an Org. However, after I deleted authorised org details file in the .sfdx folder and deleted an alias in alias.json file. I started getting this error ...
user avatar
1 vote
0 answers
48 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
user avatar
2 votes
0 answers
88 views

Failure performing sObject describe connect ETIMEDOUT

I have started using VScode for my salesforce development , while i could setup my application in the IDE and retrieve all the necessary code. I find i'am unable to refresh standard object. but i can ...
user avatar
1 vote
1 answer
285 views

SFDX: Execute SOQL Query failed to run

Unable to run SOQL queries on VSCode. I'm getting the following error. Starting SFDX: Execute SOQL Query... 19:33:27.886 sfdx force:data:soql:query --query SELECT Id, Name FROM Account 19:33:27.888 ...
user avatar
0 votes
1 answer
557 views

Unable to Authorize an Org in VSCode

I'm unable to Authorize an Org from VSCode. I'm getting the following error. Starting SFDX: Authorize an Org 16:39:55.121 sfdx force:auth:web:login --setalias <org-name> --instanceurl https://...
user avatar
0 votes
1 answer
103 views

How can I connect vs code to my subdomain

I am new in learning lwr & lwc. I have installed VS Code, salesforce extension pack inside VS code, & Salesforce CLI . On salesforce side I created a new site/subdomain in my sandbox by >...
user avatar
  • 13
0 votes
1 answer
833 views

lightning web component specialist

Not able to complete the challenge. Can anyone help me Build the component boatSearch Challenge Not yet complete... here's what's wrong: We can't find the right settings for the lightning-button in ...
user avatar
  • 1
0 votes
0 answers
77 views

Connecting Salesforce Org to Visual Studio Code

I am new to Salesforce and I am currently learning Lightning Web Components. I connected my Org with Salesforce with no problem. But when I try to deploy a component to my Org the output console of VS ...
user avatar
0 votes
0 answers
52 views

error message SFDX: Create a Default Scratch Org... failed to run

I'm trying to create a scratch org but get the error message "SFDX: Create a Default Scratch Org... failed to run" I have connected my vscode to my org. what am i doing wrong? I also saw ...
user avatar
  • 1
0 votes
0 answers
86 views

VSCode, Change Namespace of Report TYpes and Reports

My company makes an AppExchange App and we are changing the namespace for some customers. In VS Code I have been successful with Flows, and Classes. I am now having trouble with Report Types. I am ...
user avatar
0 votes
0 answers
45 views

Retrieve source from org not grabbing files - VS Code

I have a Sandbox that I working with. I have created a new folder on the desktop 'Working_San', I create a project 'Standard Project Template', and then I authorize the org. I am able to sign in ...
user avatar
  • 39

1
2 3 4 5
9