How to use the @jupyterlab/codeeditor.IEditorServices.name function in @jupyterlab/codeeditor

To help you get started, we’ve selected a few @jupyterlab/codeeditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yuvipanda / simplest-notebook / packages / codemirror-extension / src / index.ts View on Github external
"title": "CodeMirror",
  "description": "Text editor settings for all CodeMirror editors.",
  "properties": {
    "keyMap": { "type": "string", "title": "Key Map", "default": "default" },
    "theme": { "type": "string", "title": "Theme", "default": "default" }
  },
  "type": "object"
};
/* tslint:enable */

/**
 * The editor services.
 */
export
const servicesPlugin: JupyterLabPlugin = {
  id: IEditorServices.name,
  provides: IEditorServices,
  activate: (): IEditorServices => editorServices
};


/**
 * The editor commands.
 */
export
const commandsPlugin: JupyterLabPlugin = {
  id: 'jupyter.services.codemirror-commands',
  requires: [IEditorTracker, IMainMenu, ICommandPalette, IStateDB, ISettingRegistry],
  activate: activateEditorCommands,
  autoStart: true
};