UNPKG

2.32 kBJavaScriptView Raw
1"use strict";
2// *****************************************************************************
3// Copyright (C) 2020 TypeFox and others.
4//
5// This program and the accompanying materials are made available under the
6// terms of the Eclipse Public License v. 2.0 which is available at
7// http://www.eclipse.org/legal/epl-2.0.
8//
9// This Source Code may also be made available under the following Secondary
10// Licenses when the conditions for such availability set forth in the Eclipse
11// Public License v. 2.0 are satisfied: GNU General Public License, version 2
12// with the GNU Classpath Exception which is available at
13// https://www.gnu.org/software/classpath/license.html.
14//
15// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16// *****************************************************************************
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.LanguageService = void 0;
19const tslib_1 = require("tslib");
20const inversify_1 = require("inversify");
21const common_1 = require("../common");
22let LanguageService = class LanguageService {
23 constructor() {
24 this.onDidChangeIconEmitter = new common_1.Emitter();
25 }
26 /**
27 * It should be implemented by an extension, e.g. by the monaco extension.
28 */
29 get languages() {
30 return [];
31 }
32 /**
33 * It should be implemented by an extension, e.g. by the monaco extension.
34 */
35 getLanguage(languageId) {
36 return undefined;
37 }
38 /**
39 * It should be implemented by an extension, e.g. by the monaco extension.
40 */
41 detectLanguage(obj) {
42 return undefined;
43 }
44 /**
45 * It should be implemented by an extension, e.g. by the monaco extension.
46 */
47 registerIcon(languageId, iconClass) {
48 return common_1.Disposable.NULL;
49 }
50 /**
51 * It should be implemented by an extension, e.g. by the monaco extension.
52 */
53 getIcon(obj) {
54 return undefined;
55 }
56 /**
57 * Emit when the icon of a particular language was changed.
58 */
59 get onDidChangeIcon() {
60 return this.onDidChangeIconEmitter.event;
61 }
62};
63LanguageService = (0, tslib_1.__decorate)([
64 (0, inversify_1.injectable)()
65], LanguageService);
66exports.LanguageService = LanguageService;
67//# sourceMappingURL=language-service.js.map
\No newline at end of file