Is there any way to use only chosen installed extensions in vs code? - visual-studio-code

Let's say I have lots of extensions installed in VS Code for Angular, React, Ruby, K8s, Docker and I would like to use only a group of extensions that are needed for my development in the moment, like when I create some small app in Angular for local use I don't need extensions for K8s or Ruby. So is there any way to create some groups of extensions and use them only when I choose them and for the rest of time they behave like disabled extensions?

Related

Porting a pywinauto script from Windows to X11/Xlib

In my organization, I have been using pywinauto to automate some UI procedures that could not be done using the sole command line interface.
In an effort to move away from windows, I am evaluating the effort to port the UI automation script to a Linux environment (our tool has a Linux version, including a similar GUI).
I have had a look at the python-xlib project. But I have the feeling that it is more a framework to develop native X11 applications rather than perform tests on an existing application (I could not find anything like find_window etc...).
Do you have any advice for an X11 framework to automate UI procedures?
Based on several inputs, I finally came up with the following suggestions:
use pywinauto which has some beta level of Linux support (this support is based on pyatspi2).
use directly pyatspi2 to interact with the widgets if they are exposed. To browse through the exposed widgets of the application you want to automate, you can use accerciser.
finally, many framework exist to use only click + keys + mouse locations and are based on image comparison. There are many around, I have not yet tested any of them.
Finally, since my script is meant to run in a docker environment in CI, I installed Xvfb to run the automation in headless mode, without graphics HW.

Building a tool to leverage the Language Server Protocol in general and VSCode's ~/.vscode/extensions as a server launch mechanism in particular

I am developing a free software code coverage tool that leverages LSP. I do not want to reinvent the wheel in order to specify and launch a particular language server. What seems to make sense is to use VSCode to obtain the LS extension from the marketplace which will establish an entry in ~/.vscode/extensions. Once I have the extension on my computer I would use it to launch the LS much as VSCode does.
So now I need to grok this extension format to develop a launcher inside my tool. I am looking for specs, examples, tutorials, code or other material that will help, especially from other developers who have done this already.
I am already quite familiar with the LSP spec and some Microsoft VSCode sites and articles, fwiw.
Perhaps a link to the VSCode source where it leverages an extension to launch a language server would be helpful.

Client-side JSX transpiling

I want to create React applications with JSX and not have to use a terminal or any server-side/dev environment commands. The environment we are using doesn't allow for commands to be run in the dev environment and these applications will be purely statically hosted on a CDN.
So I know I can simply include Babel's browser.js to do the JSX transpiling in the browser. Perfect. My concern is that Babel apparently stopped supporting this and modern versions of Babel have it removed. Is there another solution? Is babel-standalone what I should be using?
I fully understand the performance penalties in using this in production, but our use case (which I can't imagine is that unusual of a use case with so many great and simple online HTML/JS IDEs) allows for this.
Yes if you don't want to bundle your own files, babel-standalone is what you should use.
See prototyping on the official documentation:
I'm using the CDN from the links above in a "codepen like" demo-project, and it works fine.

How can I automate Node.js deployments?

I'm looking for something analogous to Capistrano for Rails - https://github.com/capistrano/capistrano/wiki/
I'd like to be able to run a single command from my workstation that will update the code on my server(s) from a GitHub project and handle all necessary process restarting for the application. I need to be able to control specifically when this happens, not use a hook in GitHub's checkin event.
Are Node.js developers also using Capistrano, or is there a tool that works better for Node.js?
You could use fabric, it's a python lib. Nodejs already uses python for some build operations for extensions, no reason you couldn't also use python to do what you're asking.
http://docs.fabfile.org/en/1.2.2/index.html
I don't know of a javascript lib that does this, not to say there isn't one though. Fabric sounds very much like what capistrano is, but maybe a tiny bit different in some aspects.
Capistrano seems to be the most popular choice.

setup for multi platform app

Let's say you have an app in Mono .net implementation.
Now you want to create a setup - that targets multiple platforms(mac,linux, windows).
What would you use to create such setup? Are out there any oss projects?
Targeting only windows is easy - i would use WiX...
Well, IMHO, most Linux users would mock you outright / would feel offended if you tried to ask them to run a "setup program", as most of them always do what I like to call the three command install.
Now, I'm not sure about cross platform compatibility, but http://nsis.sourceforge.net/ (Nullsoft Install System) is my favourite.
Actually, come to think of it, the entire installer-setup program thing is pretty windows centric...