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
0
votes
0answers
20 views

How to authenticate sandbox to VS Code with Multi-factor required

I am trying to authenticate my VS Code to one of my sandbox and when I am entering my credential into the salesforce UI it is literally doing nothing and when I am checking login history for my user, ...
1
vote
0answers
26 views

diff on folder in visual studio code

I am using Visual Studio Code with Salesforce Extensions. I am trying to find all diffs between my local project and the sandbox. When I right click on classes folder and click on Diff Folder Against ...
0
votes
0answers
28 views

Cannot authorise a salesforce org in VS Code due to certificate error

I cannot authorise a salesforce org in VS Code. I am prompted to login, but then I get this error: ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. ...
1
vote
0answers
18 views

Vscode authorisation taking long time

In vscode I was unable to authorise a org even I set Java path and salesforce cli path as well but still taking long time and tried plug-in as well can anyone help me to authorise an org
0
votes
1answer
32 views

Blue squiggly lines when using SLDS Validator extension in VS Code

I'm new to LWC and VS Code. I've installed the recommended salesforce extension package which has SLDS Validator in it. But in my html file, it is showing blue squiggly lines under the SLDS class ...
1
vote
1answer
25 views

Updated Design Tokens with VSCode and SLDS Validator

Recently, I am getting slds validation errors in VS Code for 'presumably' updated design tokens for the aura component .cmp file. It is complaining that: slds-m-bottom_medium should be updated to ...
0
votes
1answer
46 views

can we authorize vscode using session id? because i am not able to authorize , it gives error that no event found

Hi so i am trying to authorize the my org in vscode using the below documentation https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_existing_access_token.htm but ...
1
vote
0answers
29 views

How can I get VS Code to consider dynamic styles as valid CSS?

I'm building a Lightning Web Component with dynamic styles in VS Code. Each time I do, I get warnings and errors about empty rulesets and expected braces and selectors. <html-element style={...
0
votes
2answers
39 views

Solid metadata search and backup [duplicate]

I know this question has been posted before but wanted to revisit with a fresh set of eyes. So as you know, admins need to search an ENTIRE org's metadata for various reasons. For my use case, I need ...
1
vote
1answer
28 views

Is it possible to turn on the Apex Replay Debugger permanently or for the entire day from VSCode

Every time I use the VSCode command to turn on the Apex Replay Debugger, it expires in less than an hour, and then I have to re-run the command to turn it back on again. Is there a way to turn it on ...
0
votes
0answers
23 views

SFDX Plugging Debugging in VS Code

I'm working on a DX CLI plugin using VS Code. My work machine just upgraded my VS Code install to v 1.56.2. Previous version I had wouldn't even start the remote debugger. Now the remote debugger will ...
0
votes
1answer
29 views

Visual Studio not pulling managed package components

Seems like the latest VS Code version is not pulling managed package components to the workspace. I have it connected with my dev org that contains the managed package which I have released in ...
0
votes
0answers
28 views

Formatting Visualforce Pages in VSCode on Save

can someone confirm how to get prettier working with visualforce pages on save in VSCode? I have tried in a fresh project but it never works. Steps taken: SFDX: Create Project npm install SFD: Create ...
0
votes
0answers
9 views

VS Code Authorize an Org while using remote SSH

I have a remote linux machine to which I am connecting via remote SSH in my VS Code. I use "Remote - SSH" VS code extension for the same. I could browse remote directory in my VS Code and do ...
0
votes
0answers
68 views

Connect TIMEDOUT error Salesforce CLI while trying to open org

I am trying to authorize my org but i am facing an error below any idea why the error occurs and how to resolve Starting SFDX: Open Default Org 20:13:52.519 sfdx force:org:open Error: connect ...
0
votes
1answer
41 views

How to ignore SLDS token problems(Infos) in VSCODE?

I'm developing lwc in VSCODE, and today my editor suddenly shows a bunch of SLDS problems just like this it is annoying and I do not want to fix it by update the token to a new version or make a ...
0
votes
0answers
61 views

VSCode sfdx deploy error after authorizing: Error authenticating with the refresh token due to: expired access/refresh token. Able to retrieve

I'm experiencing an issue where I can authorize an org from VSCode, but can not deploy to the org. Interestingly enough, I can retrieve from the org - when I type in the command from the terminal, not ...
0
votes
1answer
43 views

Error: 'read ECONNRESET' unable to retrieve components in vscode

In VS Code, I performed these steps: Ran the command 'SFDX: Create Project with Manifest'. Ran the command 'SFDX: Authorize an Org' and authorized the org. Right-clicked the package.xml file and ...
0
votes
0answers
23 views

Not able to create Scratch Org in VS Code

I am trying to create a scratch org from VS code but it shows me an error. It says "connect ETIMEDOUT 101.53.168.237:443" I was able to do it correctly few days back - all of a sudden its ...
0
votes
0answers
36 views

Unverified Breakpoint: Apex Replay debugger not stopping at the break points in VS Code

I am experiencing an issue with the Apex Replay Debugger on my Mac. When I am trying to replay a log file in Apex Replay Debugger in VSCode, the debugger never stops at the specified break point. When ...
0
votes
3answers
42 views

Unable to retrieve workflow rule from case comment object

I have created a new workflow rule for Case Comment object. When trying to retrieve from org browser getting this error "Cannot read property 'split' of undefined" and when i tried to ...
1
vote
1answer
138 views

Local server connection Issue with Lightning Web Component in VS Code

I was trying to connect local server with the lightning web component in Vs code.I have written the following command in terminal sfdx plugins:install @salesforce/lwc-dev-server But I am getting this ...
1
vote
1answer
115 views

No Package.xml Found In Destructive MDAPI Deployment

I've already looked at the existing questions and made sure of the following: Only package.xml & destructiveChanges.xml are in the folder I'm trying to deploy. package.xml is empty outside of the ...
1
vote
1answer
38 views

How do I prevent developers from deploying directly to Devhub and instead push the code to sandbox?

I have a production org that is the Devhub. I have a full copy sandbox. I want that the developers that are working on their respective scratch orgs, don't deploy their changes to production directly. ...
3
votes
1answer
431 views

Salesforce VScode retrieve from org “Cannot read property 'split' of undefined”

I was using the "Retrieve source in manifest from org" command for the resources in package.xml file. However when I executed the command it failed saying "Starting SFDX: Retrieve ...
0
votes
0answers
33 views

Running SFDX: Create a Default Scratch Org doesn't create a scratch org

When I run the command SFDX: Create a Default Scratch Org.. it doesn't creating the scratch org, the banner of the command is still there and the command prompt doesn't show any error. Any help would ...
1
vote
0answers
31 views

How to write a meta data for an object (Standard Object and Custom Object )?

I want to create meta data file so that I can enable field history tracking and there is no need for manual enabling in sandbox. I want this metadata file to work with Jenkins pipeline. I have to do ...
1
vote
1answer
47 views

YML scripts for deploying changes into DEV instance

I have the below bash script to deploy the changes are checked in to Azure Devops to the Salesforce instance. Script runs as soon as checkin made to DEV branch it is all working good sfdx force:...
0
votes
1answer
27 views

Where to place eslintrc.json and jsconfing.json when we use multiple package directories?

Should I have signle jsconfing.json and eslintrc.json in sfdx project that is in fact monorepo or I need separate configurations for each directory/package? What are pros and cons of mentioned ...
0
votes
0answers
27 views

How to stop the panel from opening up when you save in VS Code?

Whenever I save my code in VS Code, the bottom panel opens up, and I have to manually close it. Is there a way to suppress it, or have it 'auto close'? I checked my settings for panel and Save and ...
0
votes
1answer
17 views

error on page while displaying lwc component on record page

i want to create account records using lwc with its 6 fields. code was deployed successfully but when i deployed it on page it gives error-the page has error you might need to refresh it. here is my ...
0
votes
0answers
14 views

Turn on Replay Log Debugger fails in Visual Studio Code

I'm getting an error when trying to use the 'turn on Apex debug log for replay debugger' command in Visual Studio Code. VS-Code version 1.15.2 sfdx-cli version sfdx-cli/7.98.0 linux-x64 node-v15.14.0 ...
0
votes
0answers
23 views

show list of account record on clicking in checkbox and delete the selected account and refresh list

I want to show account record on checking a checkbox and delete the selected record and refresh list but I am getting errors. duplicate value found: duplicates value on record with id: Cannot find ...
3
votes
1answer
119 views

SFDX - LWC1001: Unexpected compilation error: did not find a shallow_cmp function for AST_Chain

Problem: After developing 4 LWC components then deploying to a scratch org via SFDX: Push Source to Default Scratch Org, the Salesforce CLI returns: LWC1001: Unexpected compilation error: did not find ...
0
votes
0answers
29 views

Several Salesforce Sandboxes/Projects Code & Metadata in ONE Workspace without causing ERROR: Error deploying or retrieving source

I'd like to have code/metadata from different Salesforce Orgs (Sandboxes and Prod) in VSC/SFDX and be able to quickly access it. For that, I have tried to use VSC's Workspaces and have added 3 folders ...
0
votes
1answer
69 views

Bring validation rule to VS Code project

I am new to Salesforce and I have a question regarding to my first real task so I don’t make nothing wrong. I have created a new validation rule in my sandbox and I want to bring this to my Visual ...
0
votes
1answer
29 views

Where should the apex tests be located in the LWC project?

I wrote an Apex test (in the Developer console) for a method that is used in my LWC project. How do I upload it to my project in VSC?
0
votes
1answer
66 views

deploy connected app from dev to test [duplicate]

I created a Connected App in a dev environment and now I need to duplicate it in a test environment. Can this be done via a changeset, VS Code, or does it need to be done manually? Thanks,
0
votes
0answers
58 views

Receiving error No base file for markup://c:DesignLwcDemo while deploying this to org

I am getting error No base file for markup://c:DesignLwcDemo while deploying this to org <template> <lightning-card title="Design Attribute" icon-name="custom:custom5">...
0
votes
2answers
37 views

Error while using custom events in lwc

I am trying to setup child to parent communication in lwc but i get error No MODULE named markup://c:customEventChild found : [markup://c:customEventParent] CustomChildEvent.html <template> <...
0
votes
0answers
41 views

Faced issue in installing sfdx plugins:install @salesforce/lwc-dev-server

i am trying to view component locally in vs code but when i run sfdx plugins:install @salesforce/lwc-dev-server this command i get error C:\HelloWorldLightningWebComponen>sfdx plugins:install @...
0
votes
2answers
37 views

VS Code shows modified file

We are working on two types of OS - Windows and Mac. I'm just retrieving code from org and VS Code shows that it is modified, but it doesn't. How to resolve that?
1
vote
1answer
30 views

How to have VS Code only create some of the component files by default?

In VS Code, when I create a an Aura Component, it creates the full Aura Component Bundle with all the files. Is there a way to limit what it creates? Ideally, limit it to the helper, controller, cmp, ...
1
vote
0answers
45 views

How to deploy code to SF instance from your branch?

Can I deploy my git branch to salesforce org? Currently, I write my code in vscode and deploy it to org using vscode. If it works, I add that code in the git branch and commit, which gets merged later....
0
votes
0answers
339 views

VSCode deploy source to org failed to run

Starting today VSCode is giving me an error "SFDX: Deploy Source to Org failed to run". This only happens with 1 org. with every other org I do not have any issues. I don't get any error ...
0
votes
1answer
40 views

VS Code drops leading zero in picklist metadata values

I'm having picklist metadata problems with VS code and a regular sandbox (not a scratch org). I'm using source format with the sandbox. I have a picklist where some values have leading zeros, e.g. &...
0
votes
0answers
42 views

Unexpected file found in package directory:

I am trying to deploy some components from github branch to dev sandbox with VS Code I am on the branch, where I have a code, and connected to the sandbox. I tried: sfdx force:source:deploy -c -p ...
1
vote
0answers
74 views

How to correctly enable Type checking in VSCode for LWC?

I wonder how to sucessfully configure type checking in VSCode for LWC. VSCode has JS/TS compiler that support type checking when we set jsconfig.json with compilerOptions like below: "...
1
vote
1answer
29 views

VScode doesn't highlight/autocomplete code (salesforce extension pack)

This is what I see in VScode: I have the Salesforce extension packed installed, but I'm not sure everything's working correctly here. Keywords "with" and "sharing" are not ...
1
vote
2answers
132 views

Salesforce Git Repository using VS Code

I am trying to set up the Git Repo for our Salesforce instance, we are trying to use VS Code. This is my first time setting up and never used the ANT migration tool. We do manual Change set deployment ...

1
2 3 4 5
8