0.2.0 • Published 9 months ago

@effect/language-service v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

language-service

This package implements a TypeScript language service plugin that allows additional refactors and diagnostics with your VSCode editor (or any editor that supports TypeScript's LSP).

Installation

After npm install @effect/language-service in your project, ensure you set your VSCode to use your workspace TypeScript version.

Inside your tsconfig.json, you should add the plugin configuration as follows:

{
  "compilerOptions": {
    "plugins": [
      {
        "name": "@effect/language-service"
      }
    ]
  }
}

Provided refactors

Here's a list of the refactors provided by this language service plugin.

Add pipe

npm.io

Transform a set of function calls to a pipe() call.

Pipeable to DataFirst

npm.io

Transform a pipe() call into a series of datafirst function calls (where available).

Removes useless arrow functions.

Toggle type annotation

npm.io

With a single refactor, adds or removes type annotations from the definition.

async-await to Effect.gen

npm.io

Transform an async function definition, into an Effect by using Effect.gen.

async-await to Effect.gen with tryPromise

npm.io

Transform an async function definition, into an Effect by using Effect.gen, and generating a tagged error for each promise call.

0.2.0

9 months ago

0.1.0

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago