Comments (4)
Also I've seen you use TS typeChecker, why don't you use TS AST API then and prefer babel then? Sorry, I might be missing something
from abracadabra.
That sounds like a good idea. I haven't spent much time and energy on Abracadabra recently, but I will give this more thought during the weekend and come back to you. Thanks for the detailed suggestion @zardoy 👍
from abracadabra.
May be helpful: I just noticed that there is now an official way to retrieve the TS API used by VS Code (https://code.visualstudio.com/api/references/contribution-points#contributes.typescriptServerPlugins)
from abracadabra.
Also useful, just realize you can send commands to the TS extension language of VS Code to do the changes, like @zardoy mentioned. Example: https://github.com/zardoy/typescript-vscode-plugins/blob/4afae28467c9a061ebb95ff4d12525adc7913018/src/sendCommand.ts#L41-L48
Resources:
- https://github.com/microsoft/vscode/blob/fc4f41d9fcc7d0c4d964718f2565e68813c92a03/extensions/typescript-language-features/src/commands/tsserverRequests.ts#L13
- https://github.com/microsoft/vscode/blob/fc4f41d9fcc7d0c4d964718f2565e68813c92a03/extensions/typescript-language-features/src/typescriptService.ts#L89
from abracadabra.
Related Issues (20)
- Automatically "Convert to Template String" if we write ${} in a string HOT 2
- Abracadabra does not play nice with cursorless HOT 29
- Inline variable overwrites unrelated parameter
- Extract refactoring runs on JSX attribute HOT 3
- Inline async arrow function misses braces HOT 1
- Abracadabra replaces system key binding HOT 3
- Extract Variable insert position doesn't right HOT 2
- change activationEvent to onLanguage
- "Change Signature" doesn't work on a nested function HOT 3
- "Add explicit type" refactoring HOT 1
- Inline variable if ternary misses parens HOT 5
- split declaration & init when working inside class
- JS and TS code without `;` is broken after refactoring HOT 3
- Abracadabra extension causes performance issues with other extensions (prettier formatting, etc.) HOT 7
- More inline variable missing parentheses edge-cases HOT 1
- Can't move class to an existing file HOT 2
- Move to new file: configure case of the new filename HOT 3
- Upgrade babel/traverse ti eliminate vulnerability. HOT 1
- Convert to Arrow Function: Does not work with a `export default function` HOT 4
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 abracadabra.