Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect/language-service

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/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).

  • 0.0.20
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3K
decreased by-5.41%
Maintainers
3
Weekly downloads
 
Created
Source

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

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

Pipeable to DataFirst

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

Removes useless arrow functions.

Toggle type annotation

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

async-await to Effect.gen

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

async-await to Effect.gen with tryPromise

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

FAQs

Package last updated on 13 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc