You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When Prophet is enabled in Visual Studio Code, Intellisense no longer works normally.
To Reproduce
Steps to reproduce the behavior:
Disable all VS Code extensions.
Create a simple JavaScript function containing an object declaration. Example: function logInfo(profile) { var logObject = { action: 'deleteCustomer', customerNumber: profile.customerNo }; }
Within the function, enter the object name followed by a period. Intellisense does show the members of the object.
Enable the Prophet extension.
Within the function, enter the object name followed by a period. Intellisense does not show the members of the object.
Expected behavior
Intellisense continues to work when Prophet is enabled. In the example, entering period after the object name should show the available properties (action, customerNumber).
Screenshots
See above.
Desktop (please complete the following information):
OS: Windows 10 Enterprise - Version: 22H@
VSCode version: 1.85.1
The extension version [e.g. 22]: 1.4.40
Additional context
No other extensions enabled besides Prophet.
If Prophet is extending VS Code intellisense, it would probably be good to have a setting for enabling/disabling that feature.
The text was updated successfully, but these errors were encountered:
Yes, your assumption is correct. Prophet contains it's own language server for JS files for cartridges and this language server is desired to work better in SFCC context (ie resolves paths in SFCC manner, extends types with SFCC types etc). And yes, it's disables internal language server to avoid collisions.
But seems in your case seems language server in not running. Potential reason for it lack of knowledge of SFCC site context. In order to run language server requires to have info about cartridges and cartridges paths to be able to resolve paths like */cartridge_name/some_file or module.superModule
cartridges path may be extracted by extension from site.xml files if present in workspace or from dw.json (via cartridgesPath property). Additionaly current context must be selected via menu in right bottom corner
in case Prophet is not eble determinate a path it's shows warning during startup
Would you confirm you have proper context selected and issue still persist?
Hi @SqrTT, it would be really nice to be able to turn the extension's language server off as suggested by @poebrand.
For my projects I usually don't use context feature and I would expect standard InteliSense to be still working.
I tried to play with context, but in my case only downgrading to v1.3.33 helped.
Describe the bug
When Prophet is enabled in Visual Studio Code, Intellisense no longer works normally.
To Reproduce
Steps to reproduce the behavior:
function logInfo(profile) { var logObject = { action: 'deleteCustomer', customerNumber: profile.customerNo }; }
Expected behavior
Intellisense continues to work when Prophet is enabled. In the example, entering period after the object name should show the available properties (action, customerNumber).
Screenshots
See above.
Desktop (please complete the following information):
Additional context
No other extensions enabled besides Prophet.
If Prophet is extending VS Code intellisense, it would probably be good to have a setting for enabling/disabling that feature.
The text was updated successfully, but these errors were encountered: