Move resources into external files

This commit is contained in:
Valentin Ivanov
2018-04-23 12:36:54 -04:00
committed by Juha Ristolainen
parent 35ce1e244f
commit 4a77a37875
7 changed files with 82 additions and 61 deletions

View File

@@ -13,7 +13,8 @@ import {
StatusBarAlignment,
TextDocumentChangeEvent,
Range,
WorkspaceConfiguration
WorkspaceConfiguration,
ExtensionContext
} from "vscode";
import { Pulse } from "./pulse";
import { CodeStatsAPI } from "./code-stats-api";
@@ -32,7 +33,7 @@ export class XpCounter {
private UPDATE_DELAY = 10000;
constructor() {
constructor(context: ExtensionContext) {
this.pulse = new Pulse();
/* // print out supported language names
@@ -52,7 +53,7 @@ export class XpCounter {
this.statusBarItem.command = "code-stats.profile";
}
let provider = new ProfileHtmlProvider(this.api);
let provider = new ProfileHtmlProvider(context, this.api);
let registration = workspace.registerTextDocumentContentProvider('code-stats', provider);