src/extension.ts   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 21
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 15
mnd 0
bc 0
fnc 2
dl 0
loc 21
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A extension.ts ➔ deactivate 0 2 1
A extension.ts ➔ activate 0 8 1
1
import * as vscode from 'vscode';
2
import fatumCommands from './commands/fatum';
3
import logger from './logger';
4
5
const MESSAGES = {
6
    'ACTIVATION' : 'Extension activated'
7
};
8
9
export function activate(context: vscode.ExtensionContext) {
10
    logger.info(MESSAGES.ACTIVATION);
11
12
    context.subscriptions.push(
13
        ...fatumCommands.map(
14
            command =>
15
                vscode.commands.registerCommand(command.id, command.handler)
16
        )
17
    );
18
}
19
20
export function deactivate() {}
21