nhedger / vscode-inertia

Visual Studio Code extension for Inertia.js
https://marketplace.visualstudio.com/items?itemName=nhedger.inertia
MIT License
19 stars 1 forks source link

Extension suggests only absolute path to file #30

Open buczekmatthias opened 6 months ago

buczekmatthias commented 6 months ago

Hello,

for a while I have this problem that extension only suggests absolute path to file instead of File or Folder/File way as it was intended to do.

I didn't change any default settings of extension.

ext

nhedger commented 5 months ago

Hey @buczekmatthias,

Would you be able to provide a reproduction repository?

If you have changed the default settings in the meantime, please also include a copy of those

buczekmatthias commented 5 months ago

Thanks for response @nhedger,

problem appears in all repositories, even fresh ones, here is fresh repo as example.

I didn't make any changes in settings.

nhedger commented 5 months ago

Weird, I can't seem to reproduce.

https://github.com/nhedger/vscode-inertia/assets/649677/eb6af6ab-731e-481e-8d47-0aa6008fd547

Seems to work on macOS at least, looks like you're using Windows, I'll try to reproduce on a windows machine when I have a minute.

nhedger commented 5 months ago

Can you confirm that your inertia.pages setting is set to resources/js/Pages/**/*.vue ?

buczekmatthias commented 5 months ago

Yes it is. I just tested setting this setting to that value. Also made tests with no extensions and default settings of VSCode and other extensions, it gave same result.

Edit: And yes I use Windows

nhedger commented 5 months ago

Alrighty, thanks for the info, I'll let you know asap.

nhedger commented 4 months ago

Ok so it looks like you'll want to change resources/js/Pages/**/*.vue to resources\js\Pages\**\*.vue on windows. Could you try and let me know how it goes ?

buczekmatthias commented 4 months ago

Unfortunately, it didn't work for me, suggestion is still absolute path. Tried once again with clean VSC profile to ensure it's not messed by some setting or extension.

nhedger commented 4 months ago

Kinda hard to reproduce. I'll leave this open just in case someone encounters a similar issue and has more insight. If you happen to find out what is happening, please let me know.