Comments (5)
Yes sounds great!
from js-assistant.
Hi @mjunker - I've implemented the feature in version 1.78.0
. Please re-open this issue if the solution doesn't work for you.
Thanks again for the suggestion!
from js-assistant.
Hi @mjunker ,
right now this is not possible - they best approach would be to run the mass refactoring on the subfolders that should be included (e.g. src
).
That being said, this is a high-priority feature that I want to implement in the next weeks. Right now I'm trying to understand the different use cases better to come up with a good first implementation (since changing configs is always a backwards compatibility issue). The use cases I've seen so far include excluding directories such as node_modules
, and to have different configurations for different teams that own subfolders (in a mono repo).
I would love to understand what kind of directories are you trying to exclude and why? Would this exclusion need to apply for all refactorings or just a subset?
Best, Lars
from js-assistant.
Hey
Thanks for your reply. Will try this.
Yeah I would like to exclude dist folders and node_modules mainly, but also have a project where I have to commit some third party code into the repo which I don't want to touch. Also generated configuration files I probably would want to exclude. I'm working with a Nx Monorepo which doesn't have a single src folder, but multiple top level folders, which makes it a bit more cumbersome if I have to run the mass refactoring on multiple top level folders individually.
For me the best solution would be a global exclude for all refactorings, something like a .gitignore file would work really well for me.
Best Matt
from js-assistant.
Thanks! Right now I'm thinking the following solution might work:
In p42.toml
(to keep the number of config files low):
# Exclusion globs (for refactoring & mass refactoring)
excludedPathPatterns = [
"**/node_modules/**",
"**/dist/**",
"some/other/directory/**",
"**/generateConfig.js"
]
This would affect both mass refactorings and in-editor refactoring suggestions (which would not be shown for the excluded files).
Would this solution work for you?
from js-assistant.
Related Issues (20)
- Support for Svelte components HOT 1
- Insert console.log for variable HOT 2
- Command Palette integration HOT 2
- Convert to destructuring assignment
- Create new file when extract React component
- convert-function-to-object-method potentially unsafe
- p42.ai is down HOT 2
- Refactor Idea: extract functions inside functions
- is the site https://p42.ai/ down? HOT 1
- Make P42 settings apply to remote and workspace, honour jsconfig/tsconfig settings
- provide setting to set default suggestion level
- provide setting to disable the codeActionsOnSave HOT 2
- TypeScript's built-in "inline variable" refactoring should be declared as an overlapping code assist HOT 1
- Feature Request: transform object property assignment to `defineProperty`
- Dependency Visualization - is it activated?
- webstorm support?
- "Toggle braces" not available if function returns `null`
- Issue with "import.meta" syntax
- Lots of language server crashing since a few days ago, stopped when I disabled this extension
- Is this project still maintained? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-assistant.