Skip to content

narumincho/vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode

Visual Studio Code Extension Development for Deno

modified for Deno from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/vscode/index.d.ts

Must be bundled with

import { type ExtensionContext, importVsCodeApi } from "jsr:@narumincho/vscode";

export function activate(context: ExtensionContext) {
  const vscode = importVsCodeApi();
  if (vscode === undefined) {
    throw new Error(
      "Could not import vscode api because it was not working within the extension",
    );
  }

  console.log(
    'Congratulations, your extension "helloworld-sample" is now active!',
  );

  const disposable = vscode.commands.registerCommand(
    "extension.helloWorld",
    () => {
      vscode.window.showInformationMessage("Hello World!");
    },
  );

  context.subscriptions.push(disposable);
}

All examples can be found here

About

vscode api for deno

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •