Verified Commit af246b4a authored by Aral Balkan's avatar Aral Balkan
Browse files

Change the extension id

parent 0251e4e1
Pipeline #953 canceled with stages
{
"name": "small-tech.comment-out-css",
"name": "comment-out-css",
"displayName": "Comment Out CSS",
"description": "Comments out CSS (including CSS that itself contains comments). Basically, adds nested comments to CSS.",
"version": "1.0.0",
......@@ -15,19 +15,19 @@
"Other"
],
"activationEvents": [
"onCommand:small-tech.comment-out-css"
"onCommand:comment-out-css"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "small-tech.comment-out-css",
"command": "comment-out-css",
"title": "Comment out CSS"
}
],
"keybindings": [
{
"command": "small-tech.comment-out-css",
"command": "comment-out-css",
"key": "ctrl+/",
"mac": "cmd+/",
"when": "editorLangId == css && editorHasSelection && !editorReadonly"
......
......@@ -5,17 +5,12 @@ import * as vscode from 'vscode';
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
console.log('Comment Out CSS is now active!');
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('small-tech.comment-out-css', () => {
// The code you place here will be executed every time your command is executed
let disposable = vscode.commands.registerCommand('comment-out-css', () => {
const editor = vscode.window.activeTextEditor;
if (editor) {
......@@ -105,5 +100,5 @@ function countMatches(regExpMatchResult: RegExpMatchArray | null): number {
return regExpMatchResult === null ? 0 : regExpMatchResult.length;
}
// this method is called when your extension is deactivated
// This method is called when the extension is deactivated.
export function deactivate() {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment