1 | import { Disposable, Emitter, Event } from '../common';
|
2 | export interface Language {
|
3 | readonly id: string;
|
4 | readonly name: string;
|
5 | readonly extensions: Set<string>;
|
6 | readonly filenames: Set<string>;
|
7 | readonly iconClass?: string;
|
8 | }
|
9 | export declare class LanguageService {
|
10 | protected readonly onDidChangeIconEmitter: Emitter<DidChangeIconEvent>;
|
11 | |
12 |
|
13 |
|
14 | get languages(): Language[];
|
15 | |
16 |
|
17 |
|
18 | getLanguage(languageId: string): Language | undefined;
|
19 | |
20 |
|
21 |
|
22 | detectLanguage(obj: unknown): Language | undefined;
|
23 | |
24 |
|
25 |
|
26 | registerIcon(languageId: string, iconClass: string): Disposable;
|
27 | |
28 |
|
29 |
|
30 | getIcon(obj: unknown): string | undefined;
|
31 | |
32 |
|
33 |
|
34 | get onDidChangeIcon(): Event<DidChangeIconEvent>;
|
35 | }
|
36 | export interface DidChangeIconEvent {
|
37 | languageId: string;
|
38 | }
|
39 |
|
\ | No newline at end of file |