hubspot-cms-vscode icon indicating copy to clipboard operation
hubspot-cms-vscode copied to clipboard

[public bug report] Issue in path autocomplete for module blocks with parent paths

Open jsines opened this issue 1 year ago • 0 comments

Describe the bug

I also cannot get path autocompletion for module blocks path in my template to work in parent directories... If I type {% module "button" path=" I will get my current folder files as suggestions, but as soon as I type ../ to go towards my modules folder, the autocompletion stops to work.

I get a lint warning "unable to find module ../../modules/button" but the module is showing as expected in my demo page using the template.

(My starting point is a header partial, thus going up from partials -> templates -> src and then down into modules -> button.module.)

https://github.com/HubSpot/hubspot-cms-vscode/pull/146#issuecomment-1741752285

Expected behavior

Screenshots

** Environment Versions: **

  • VSCode Version: [e.g. 1.74.0] (Instructions on finding this here: https://code.visualstudio.com/docs/supporting/FAQ#_how-do-i-find-the-version)
  • HubSpot VSCode Extension version: [e.g. v1.0.0] (Instructions on finding this here: https://code.visualstudio.com/docs/editor/extension-marketplace)
  • OS: [e.g. iOS, Windows 10]

Additional context Add any other context about the problem here.

jsines avatar Oct 02 '23 15:10 jsines