Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

I am not able to run my vscode extension without using the command palette?

$
0
0

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() {}


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>