0.1.0 • Published 5 months ago

@effect/language-service v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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.1.0

5 months ago

0.0.20

9 months ago

0.0.21

9 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago