Comments (5)
Most of the features from 1.5.4 will be implemented in 2.0.0 along with everything we couldn't implement before. (like Webviews, Progress etc). I'm looking to cover as much of the vscode-api as possible.
As for passing config data like version, I'm thinking about an ExtensionConfig
class that can store all of that which can then be passed to Extension
during init
or run
. This is because previously the init method had too many parameters. Do let me know if you have a better idea/implementation. You can work on this if you'd like.
There is also a Github Projects Board for Version 2.0 and you can pick something from the Todo if you'd like.
from vscode.py.
Excellent. It seems like you have a lot of config files, and I think using some kind of configuration validation package might be a good idea here. I've use Pydantic in the past. Basically, just create a subclass of pydantic.BaseModel
, define typed attributes, and then Pydantic does all necessary type checking. It even has some nice convenience functions, like dumping data to a formatted json file (which would allow you to generated the package.json
in one line of code).
What would be nice is if we have a manifest json schema from vscode itself, because we could autogenerate the pydantic class, so we could always be up to date with the latest package manifest schema.
I did take a look at your board, and it was kind of sparse. Maybe I can throw a few ideas at you on here, and then if they sound like they are worth pursuing we can put them on there and I'm more than happy to contribute.
from vscode.py.
That's great, I was already looking to use pydantic. The manifest json for package.json
is also a nice idea.
And yes the board is quite empty, I should really be more specific 🤣
I'm always open to ideas, would love to hear them.
from vscode.py.
If you're okay with it, I can create a quick branch and either open a PR or share a link to what I was thinking about for pydantic.
Just to give you and idea of what my motivations are... I'm building a vscode extension for line-profiler
. I want to be able to select functions to profile and scripts to run that will profile the code, then highlight the code to let you know what parts are the bottlenecks. I have working Python code that does this, but what I need my extension to do is actually run using the same active environment that the user is developing in. If I don't do that, then when I try to profile the code I get hung up on imports. I also need things to run from the local directory so that if someone is creating test code in their vscode work directory, it should be able to run that seemlessly as well. Then once the profile is done, I want to provide code highlighting to show the fast and slow parts of the code. I develop and oversee a lot of code, and having line profiling is super helpful.
So, anything I can do to help get your extension to the place where I can finish off the extension, I'm happy to help. I could just hard fork and implement all the necessary pieces, but I'm pretty dedicated to open source software. If there is a change I need to make to implement my extension and it doesn't fit with the repo, then I'll have to diverge my fork. But, I'll try to do all of it in a way that helps your repo. I like the way you're doing the rewrite so far, and it makes a lot of sense.
from vscode.py.
Sure you can create a PR or share the link.
from vscode.py.
Related Issues (20)
- Add support for creating Color Themes
- Args should be taken as lists instead of strings HOT 2
- Add vscode.Progress
- Improve the docs
- Cogs HOT 1
- Add a way to make us freely edit package.json HOT 2
- Python was not found HOT 5
- Extension is not compatible with Code 1.56. Extension requires ^1.59. Wrong code.exe used. HOT 2
- Rewrite the entire library to be async
- How to get working directory in quick pick? HOT 3
- Error: spawn python ENOENT, on Windows HOT 2
- Get current open file/project HOT 3
- Buggy Example HOT 1
- Add support for tree views HOT 1
- Show a message when the user doesn't have python installed to make them install Python
- Lower extension activation time
- Error in setting up the virtual environment... HOT 1
- Raise Not Implemented Error
- Add support for Hover
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.py.