Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
changelog, registerCommand => registerTextEditorCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mymindstorm committed Feb 2, 2020
1 parent a6f423f commit ae87199
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
10 changes: 2 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Change Log
## 1.0.0

All notable changes to the "rpm-spec-changelog" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]

- Initial release
- Initial release
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"Other"
],
"activationEvents": [
"onCommand:extension.insertChangelog"
"onCommand:extension.insertRPMSpecChangelog"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.insertChangelog",
"command": "extension.insertRPMSpecChangelog",
"title": "RPM: Insert Changelog"
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as vscode from "vscode";
import * as cp from "child_process";

export function activate(context: vscode.ExtensionContext) {
let disposable = vscode.commands.registerCommand(
"extension.insertChangelog",
let disposable = vscode.commands.registerTextEditorCommand(
"extension.insertRPMSpecChangelog",
async () => {
const currentDocument = vscode.window.activeTextEditor;

Expand Down

0 comments on commit ae87199

Please sign in to comment.