I have published my vscode extension to the marketplace but i need to run it without using command palette. when i am running it using command palette it is working fine, but what i need is, it should run when any one downloads it.
import * as vscode from "vscode";
...
...
export function activate(context: vscode.ExtensionContext) {
console.log("Congratulations, your extension "vscode-extension" is now active!");
...
...
let disposable = vscode.commands.registerCommand(
"extension.timecheck",
() => {
...
...
console.log("hiii..")
...
..
}
);
vscode.window.showInformationMessage("Hello");
vscode.window.onDidChangeWindowState(item => {
if (item.focused === true) {
console.log( "this is focus time");
} else (item.focused === false) {
console.log( "this is infocus time");
}
console.log("this is the active time");
});
}
export function deactivate() {}