mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-08-11 02:31:58 +00:00
Move resources into external files
This commit is contained in:
committed by
Juha Ristolainen
parent
35ce1e244f
commit
4a77a37875
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user