Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not detect some extensions with absolute path. #209

Open
Pedromdsn opened this issue Sep 13, 2022 · 8 comments
Open

Does not detect some extensions with absolute path. #209

Pedromdsn opened this issue Sep 13, 2022 · 8 comments

Comments

@Pedromdsn
Copy link

As you can see in the print, it detects the .ts, js, tsx and jsx extensions, but it does not detect the logo.png image.

image

I'm using the default installation with no config changes.

@Belonit
Copy link

Belonit commented Sep 28, 2022

This is because this extension does not support the paths property from [tj]sconfig.json

@Pedromdsn
Copy link
Author

But it found the path of the ts, tsx, js and jsx files using da [tj]sconfig.json just didn't find the image.

@Belonit
Copy link

Belonit commented Sep 30, 2022

The search for ts, tsx, js and jsx is carried out by the built-in vs code tools. You can try adding these options to your settings.json

    "path-intellisense.extensionOnImport": true,
    "path-intellisense.mappings": {
		"@/": "${workspaceFolder}/src",
    },

@piscopancer
Copy link

But it found the path of the ts, tsx, js and jsx files using da [tj]sconfig.json just didn't find the image.

hey, I have had the same problem at the moment. Damn it images not being suggested is annoying. Have you figured out the solution? 😇🥺😏

@ChristianKohler
Copy link
Owner

Hey @piscopancer

Could you provide a minimal environment where I can reproduce it?

  • minimal file/ folder structure
  • your path intellisense configuration

@piscopancer
Copy link

Hey @piscopancer

Could you provide a minimal environment where I can reproduce it?

  • minimal file/ folder structure
  • your path intellisense configuration

Sure sir,

settings.json

{
    "workbench.colorTheme": "One Dark Pro Flat",
    "editor.fontSize": 16,
    "workbench.editor.untitled.hint": "hidden",
    "editor.linkedEditing": true,
    "git.ignoreMissingGitWarning": true,
    "liveServer.settings.donotShowInfoMsg": true,
    "editor.wordWrap": "on",
    "editor.tabSize": 2,
    "editor.minimap.renderCharacters": false,
    "editor.minimap.enabled": false,
    "tabnine.experimentalAutoImports": true,
    "javascript.preferences.quoteStyle": "single",
    "explorer.confirmDragAndDrop": false,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "[scss]": {
        "editor.defaultFormatter": "sibiraj-s.vscode-scss-formatter"
    },
    "typescript.updateImportsOnFileMove.enabled": "always",
    "files.associations": {
        "*.script": "lua"
    },
    "diffEditor.codeLens": true,
    "editor.fontFamily": "consolas",
    "path-intellisense.autoTriggerNextSuggestion": true,
    "path-intellisense.extensionOnImport": true,
    "path-intellisense.autoSlashAfterDirectory": true,
    "path-intellisense.mappings": {
        "@/": "${workspaceRoot}/src"
    },
    "path-intellisense.absolutePathToWorkspace": true,
    "vscode-color-picker.languages": [
        "python",
        "javascript",
        "typescript",
    ],
    "scss.lint.unknownAtRules": "ignore",
    "editor.suggestSelection": "first",
    "css.lint.unknownAtRules": "ignore",
    "css.lint.unknownProperties": "ignore",
    "scss.lint.duplicateProperties": "warning",
    "sass.disableUnitCompletion": false,
    "sass.format.convert": false,
    "sass.andStared": [
        "active",
        "focus",
        "hover",
        "nth-child"
    ],
    "scss.format.spaceAroundSelectorSeparator": true,
    "rest-client.excludeHostsForProxy": [],
}

link to project, up-to-date indeed. Take a look at src/components/header/index.ts/

https://github.com/piscopancer/headblaster-client

@ChristianKohler
Copy link
Owner

Thank you @piscopancer

Could you try to add:

{ "typescript.suggest.paths": false }
{ "javascript.suggest.paths": false }

to your configuration?

@piscopancer
Copy link

piscopancer commented Mar 20, 2023

image
image

Not working anyway. Even though I have restarted vs code after that just in case

BTW pictures suggestions work well in css -> url(/.../...). So img files pop up. But ts/js seems to be different 💀

I am using vite (if it has anything to do about it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants