Open Pedromdsn opened 2 years ago
This is because this extension does not support the paths property from [tj]sconfig.json
But it found the path of the ts, tsx, js and jsx files using da [tj]sconfig.json just didn't find the image.
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",
},
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? ππ₯Ίπ
Hey @piscopancer
Could you provide a minimal environment where I can reproduce it?
Hey @piscopancer
Could you provide a minimal environment where I can reproduce it?
- minimal file/ folder structure
- your path intellisense configuration
Sure sir,
{
"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": [],
}
src/components/header/index.ts/
Thank you @piscopancer
Could you try to add:
{ "typescript.suggest.paths": false }
{ "javascript.suggest.paths": false }
to your configuration?
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)
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.
I'm using the default installation with no config changes.