This package has been deprecated

Author message:

tsserver cannot deal with scoped packages, package moved to typescript-prettier-language-service

@replit/typescript-prettier-language-service

0.0.2 • Public • Published

typescript-prettier-language-service

TypeScript language service plugin to format using prettier. Supports range formatting and document formatting.

Issues

Leave a comment on our cover page

Development

To develop on Replit

  • fork this Repl
  • hit the Run button to start compiling and watching changes
  • make changes in src/index.ts
  • when you want to test your changes:
    • make an edit to the languages.typescript field (e.g. you can change hostInfo) to trigger the LSP server to restart and pick up the changes
    • use the logs folder to read logs and debug

It is possible to hook-up a debugger to this using debug protocol, but it is not configured.

TODOs:

  • Only activate plugin when prettier is installed
  • Allow configuring .editorConfig option
  • Watch workspace to and clear prettier config cache when relevant
  • Implement getFormattingEditsAfterKeystroke
  • Combine spans that are both an addition and deletion in minimalEdits

Readme

Keywords

Package Sidebar

Install

npm i @replit/typescript-prettier-language-service

Weekly Downloads

6

Version

0.0.2

License

MIT

Unpacked Size

18.6 kB

Total Files

10

Last publish

Collaborators

  • sareini
  • krishatreplit
  • mikewesthad
  • motzyball
  • juan.replit
  • ahulbert-replit
  • james-addison-replit
  • replitdstewart
  • ryanweingast
  • harryatreplit
  • theflowingsky
  • jonesit-replit
  • szymon_k
  • cdmistman
  • jackyzha0
  • jamesaustinreplit
  • lopezhoracio
  • bradymaddenreplit
  • ryantm
  • alexisreplit
  • ink404
  • brianpool
  • tobyho
  • brenoafb
  • masad-frost
  • lincolnreplit
  • stkenned
  • replitmatt
  • cbrewster
  • ltazmin_replit
  • moudy
  • schestakov
  • lhchavez
  • slmjkdbtl
  • lunaroyster