-
Notifications
You must be signed in to change notification settings - Fork 7
68 multiple entries on go to definition #70
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
Changes from 2 commits
9a8530d
d317b47
286de31
d7e191d
a651547
6fb4730
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "react-ts-css", | ||
"displayName": "React CSS modules", | ||
"description": "React CSS modules - VS code extension for CSS modules support in React projects written in typescript.Supports Definitions, Hover , Completion Providers and Diagnostics", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"author": "Viijay-Kr", | ||
"publisher": "viijay-kr", | ||
"homepage": "https://github.com/Viijay-Kr/react-ts-css/blob/main/README.md", | ||
|
@@ -91,26 +91,49 @@ | |
"title": "Base Dir Path", | ||
"description": "Base directory path inside the project. Defaults to 'src'" | ||
}, | ||
"reactTsScss.cssAutoComplete":{ | ||
"type":"boolean", | ||
"reactTsScss.cssAutoComplete": { | ||
"type": "boolean", | ||
"title": "Autocomplete CSS variables", | ||
"default":"true", | ||
"default": true, | ||
"description": "Auto completion of css variables from various files" | ||
}, | ||
"reactTsScss.cssDefinitions":{ | ||
"type":"boolean", | ||
"reactTsScss.cssDefinitions": { | ||
"type": "boolean", | ||
"title": "Go to CSS variables definition", | ||
"default":"true", | ||
"default": true, | ||
"description": "Definition provider for css variables from various files" | ||
}, | ||
"reactTsScss.cssSyntaxColor":{ | ||
"type":"boolean", | ||
"reactTsScss.cssSyntaxColor": { | ||
"type": "boolean", | ||
"title": "Syntax Coloring for CSS variables", | ||
"default":"true", | ||
"default": true, | ||
"description": "Color preview and presentation for CSS variables" | ||
}, | ||
"reactTsScss.typecriptCleanUpDefs": { | ||
"type": "boolean", | ||
"title": "Enable/Disable Typescript cleanup definitions plugin", | ||
"description": "Typescript cleanup definitions plugin can be disabled with this setting. 'reactTsScss.cleanUpDefs' will have no effect when this setting is false", | ||
"default": true | ||
}, | ||
"reactTsScss.cleanUpDefs": { | ||
"type": "array", | ||
"title": "Typescript Cleanup Definitions", | ||
"scope": "window", | ||
"description": "Add a declaration file to skip definition results from this file. Useful for skipping unnecessary defintions from boilder plate projects", | ||
"default": [ | ||
"node_modules/vite/client.d.ts", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will these paths work at any level of the project? Eg. In a monorepo / workspace project, the path would be:
Would be cool if these also worked out of the box without any additional configuration There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should since the plugin does a vague/naive string comparison . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @karlhorky Added a mono repo setup in the latest commit to test this out . Tested both in vite and next app inside monorepo/packages and it works as I expected. you can also test it if you'd like |
||
"node_modules/next/types/global.d.ts", | ||
"node_modules/react-scripts/lib/react-app.d.ts" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"typescriptServerPlugins": [ | ||
{ | ||
"enableForWorkspaceTypeScriptVersions": true, | ||
"name": "typescript-cleanup-definitions" | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run package", | ||
|
@@ -133,7 +156,7 @@ | |
"@types/babel__traverse": "^7.18.2", | ||
"@types/glob": "^7.2.0", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "16.x", | ||
"@types/node": "^16.18.11", | ||
"@types/sinon": "^10.0.13", | ||
"@types/vscode": "^1.72.0", | ||
"@typescript-eslint/eslint-plugin": "^5.31.0", | ||
|
@@ -144,7 +167,8 @@ | |
"glob": "^8.0.3", | ||
"mocha": "^10.0.0", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.7.4", | ||
"typescript": "^4.9.4", | ||
"typescript-cleanup-definitions": "^1.0.4", | ||
"vsce": "^2.11.0", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0" | ||
|
Uh oh!
There was an error while loading. Please reload this page.