Skip to content

Commit

Permalink
fix activationEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Jan 11, 2017
1 parent 2d1531e commit 92e1535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "prettier-vscode",
"displayName": "Prettier - JavaScript formatter",
"description": "VS Code plugin for jlongster/prettier",
"version": "0.1.5",
"version": "0.1.6",
"publisher": "esbenp",
"engines": {
"vscode": "^1.5.0"
Expand All @@ -11,7 +11,8 @@
"Other"
],
"activationEvents": [
"*"
"onLanguage:javascript",
"onCommand:prettier.format"
],
"main": "./out/src/extension",
"contributes": {
Expand Down
4 changes: 0 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
import { commands, ExtensionContext, Range, Position, TextEdit, window, workspace } from 'vscode';
const prettier = require('prettier')

console.log('test')

export function activate(context: ExtensionContext) {

console.log('activate vscode prettier');

const eventDisposable = (workspace as any).onWillSaveTextDocument(e => {
const document = e.document;

Expand Down

0 comments on commit 92e1535

Please sign in to comment.