1

I am not able to go to the function definition while working with SFRA in vs code by any means (i.e Ctrl+Click, F12, Right Click --> Go to Definition ), In spite of having a definition it is showing as 'No definition found'.

Can anyone please help me here, I have also noticed that the suggestion coming from vs code is not having the functions or variable I created, I am working on demandware( SFRA ).

Faizen
  • 21
  • 1

2 Answers2

1

This is possible if you install prophet debugger. Once you set it up, add your cartridge path to your dw.json file. This will do the trick.

  • Thank you. For easier future reference, it should look like this: `"cartridgesPath": "cartridgeA:cartridgeB"`. – Slavi Jun 23 '22 at 14:12
0

There is one setting in VS code, Go to Setting and search for "Definition Link Opens In Peek" and tikmark the checkbox. See this screenshot.

Tyler2P
  • 2,324
  • 26
  • 22
  • 31
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/33077818) – Meet Bhalodiya Nov 05 '22 at 06:12