theia-sprotty
Version:
Glue code for sprotty diagrams in a Theia IDE
20 lines • 1.05 kB
JavaScript
;
/*
* Copyright (C) 2018 TypeFox and others.
*
* Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
var browser_1 = require("@theia/core/lib/browser");
var common_1 = require("@theia/core/lib/common");
var inversify_1 = require("inversify");
var languageserver_diagram_contributions_1 = require("./languageserver-diagram-contributions");
/**
* Standard DI config for languageserver aware diagrams.
*/
exports.default = new inversify_1.ContainerModule(function (bind) {
bind(common_1.CommandContribution).to(languageserver_diagram_contributions_1.LSDiagramCommandContribution).inSingletonScope();
bind(browser_1.KeybindingContribution).to(languageserver_diagram_contributions_1.LSDiagramKeybindingContribution).inSingletonScope();
});
//# sourceMappingURL=languageserver-diagram-module.js.map