Skip to content

Repository files navigation

@codingame/monaco-languageclient-react · monthly downloadsnpm versionPRs welcome

Installation

npm install @codingame/monaco-languageclient-react 

Usage

Simple usage

You need to create an infrastructure object and render the LanguageClient component:

importReactfrom"react";importLanguageClient,{Infrastructure}from"@codingame/monaco-languageclient-react";classMyInfrastructureimplementsInfrastructure{automaticTextDocumentUpdate=falserootUri='file://...'useMutualizedProxy(){returnfalse}getFileContent(resource,languageClient){return ... }openConnection(id){// create connection}}constinfrastructure=newMyInfrastructure()functionLanguageClientContainer(){return(<LanguageClientid='java'infrastructure={infrastructure}/>);}

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages