The Sourcegraph extension API (generated from
sourcegraph.d.ts) is available to extensions by importing the
sourcegraph module (
import * as sourcegraph from 'sourcegraph' or
require('sourcegraph')). Writing a Sourcegraph extension is very similar to writing an editor extension for VS Code.