diff --git a/.vscodeignore b/.vscodeignore index 795e714..2c478d7 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -7,3 +7,6 @@ src/** .gitignore tsconfig.json vsc-extension-quickstart.md +**/*.ts +**/tsconfig.json +!file.ts diff --git a/README.md b/README.md index cef9296..9b75083 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,8 @@ -# README -## This is the README for your extension "missinglineendoffile" -You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts: +# A Blank line at the end of the file! +## Don't you hate it when git complains there's no blank line at the end of a file? Me too!! -* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux) -* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux) -* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets +Whenever you save a file this extension will automatically add the blank line if needed, not otherwise. A message box will alert you, you can dismiss it with the "Close" button or just hit Esc. -### For more information -* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown) -* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/) +If you didn't want the line, you can hit "Revert!" and it will remove it for you and re-save the file un-blank-lined! -** Enjoy!** +If this is bugging you because this one file should have a line at the end, just hit "Stop that!". It will stop that. From happening diff --git a/missinglineendoffile-0.0.1.vsix b/missinglineendoffile-0.0.1.vsix new file mode 100644 index 0000000..a2adb49 Binary files /dev/null and b/missinglineendoffile-0.0.1.vsix differ diff --git a/package.json b/package.json index e7f4ca9..cce3fc8 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,38 @@ { - "name": "missinglineendoffile", - "displayName": "missingLineEndOfFile", - "description": "This extension will add a blank line at the end of your files when you save them!", - "version": "0.0.1", - "publisher": "NovagliaRiccardo", - "engines": { - "vscode": "^0.10.1" - }, - "categories": [ - "Other" - ], - "activationEvents": [ - "onCommand:extension.checkBlankLine", + "name": "missinglineendoffile", + "displayName": "Blank Line at the End of File", + "description": "This extension will add a blank line at the end of your files when you save them!", + "version": "0.0.4", + "publisher": "riccardoNovaglia", + "repository": { + "type": "git", + "url": "https://github.com/riccardoNovaglia/vsCodeBlankLine.git" + }, + "engines": { + "vscode": "^0.10.1" + }, + "categories": [ + "Linters" + ], + "activationEvents": [ + "onCommand:extension.checkBlankLine", "onCommand:workbench.action.files.save" - ], - "main": "./out/src/extension", - "contributes": { - "commands": [{ - "command": "extension.checkBlankLine", - "title": "Check for Blank line at End of File" - }] - }, - "scripts": { - "vscode:prepublish": "node ./node_modules/vscode/bin/compile", - "compile": "node ./node_modules/vscode/bin/compile -watch -p ./" - }, - "devDependencies": { - "typescript": "^1.6.2", - "vscode": "0.10.x" - } -} \ No newline at end of file + ], + "main": "./out/src/extension", + "contributes": { + "commands": [ + { + "command": "extension.checkBlankLine", + "title": "Check for Blank line at End of File" + } + ] + }, + "scripts": { + "vscode:prepublish": "node ./node_modules/vscode/bin/compile", + "compile": "node ./node_modules/vscode/bin/compile -watch -p ./" + }, + "devDependencies": { + "typescript": "^1.6.2", + "vscode": "0.10.x" + } +}