GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sourcegraph/lsp-client: Connects Sourcegraph extensions to language servers

This repository was archived by the owner on Feb 22, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

73 Commits
73 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
prettier.config.js
prettier.config.js
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Archive

https://github.com/sourcegraph/sourcegraph-basic-code-intel/

@sourcegraph/lsp-client

npm downloads build codecov code style: prettier semantic-release

Library that connects Sourcegraph extensions to language servers

Install

npm install @sourcegraph/lsp-client
# or
yarn add @sourcegraph/lsp-client

Usage

import * as sourcegraph from 'sourcegraph'
import * as lspClient from '@sourcegraph/lsp-client'

export async function activate(ctx: sourcegraph.ExtensionContext): Promise<void> {
  const config = sourcegraph.configuration.get().value
  const client = await lspClient.register({
    sourcegraph,
    transport: lspClient.webSocketTransport({ serverUrl: config['myExtension.serverUrl'] }),
    documentSelector: [{ language: 'myLanguage' }],
    clientToServerURI: uri => ..., // optional
    serverToClientURI: uri => ..., // optional
  })
  ctx.subscriptions.add(client)
}

Contributing

Build

yarn
yarn build

Test

yarn test

Release

Releases are done automatically in CI when commits are merged into master by analyzing Conventional Commit Messages. After running yarn, commit messages will be linted automatically when committing though a git hook. The git hook can be circumvented for fixup commits with git's fixup! autosquash feature, or by passing --no-verify to git commit. You may have to rebase a branch before merging to ensure it has a proper commit history, or squash merge with a manually edited commit message that conforms to the convention.

About

Connects Sourcegraph extensions to language servers

Topics

repo-type-codeintel

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

13 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.