Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

sourcegraph/lang-ruby

Repository files navigation

Ruby language extension

Ruby code intelligence.

Prerequisites

Sourcegraph extensions are written in TypeScript and are distributed as bundled JavaScript files that run on the client. For creation, publishing, and viewing, you need:

Set up

npm install

Lint and type check

npm run tslint
npm run typecheck

Publish

src extensions publish

Sourecgraph extension API

Visit the Sourcegraph extension documentation and check out some Sourcegraph extension samples.

Building and running

# Build the .wasm and .js files
$ bazel build //emscripten:sorbet-wasm.tar --config=webasm-darwin && \
  tar -xvf ./bazel-bin/emscripten/sorbet-wasm.tar sorbet-wasm.wasm sorbet-wasm.js
# Serve the .wasm and .js files
$ http-server --cors -p 5000 .
# Serve the extension
$ yarn run serve

Open https://sourcegraph.com/github.com/sourcegraph/lang-ruby@master/-/blob/sample.rb?diff=d533cd6aa770e09274fa9f427d81d2f57c2a6858

Sideload the extension.

You should see hover tooltips:

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published