Comments (2)
Ok, adding --known-first-party mypackage
arguments to the extension settings appendage fixes this problem.
Feel free to close this issue. However, I find it odd that there would be this discrepancy as this is not required when running isort
directly.
from vscode-isort.
The discrepancy is quite possibly due to isort
; we have discovered multiple places where isort
operates differently when run against a file path compared to having code passed in via stdin
(which is the default when using a language server).
We actually recommend people try our ruff
as it supports isort
-compatible import sorting, is extremely fast, and has a great VS Code extension: https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff .
from vscode-isort.
Related Issues (20)
- Filename override is intended only for stream (-) sorting. HOT 4
- Improve setting description for default interpreter setting HOT 7
- Add Python 3.12-dev to tests actions HOT 3
- Remove Python 3.7 from tests actions HOT 1
- Update library packages for the extension HOT 1
- Docs: Using bundled isort or not? HOT 5
- Add the "Sort Imports" back to the context menu options as "Organize Imports" HOT 12
- isort crashes after VSCode update HOT 7
- Inconsistent sorting when running isort in terminal vs using vscode-isort HOT 4
- Preview Tag on the offical store HOT 1
- Saving empty .py file in multi root workspace crashes isort. HOT 1
- Isort cannot handle line magic in jupyter notebook HOT 6
- Couldn't start client isort, asyncio failing HOT 1
- `fromEnvironment` should also pick up the python path from jupyter HOT 1
- bug: lines being deleted when setting organizeImports to explicit HOT 2
- Python organize imports explicit is deleting one extra line that it should when removing blank lines after an import statement. HOT 2
- Import with python HOT 7
- Isort server crashed HOT 6
- [WinError 64] The specified network name is no longer available HOT 9
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 vscode-isort.