Fix prettier

This commit is contained in:
Rodrigo Pombo 2019-02-14 14:21:23 -03:00
parent a1a06efebb
commit 7894628d6d
6 changed files with 47 additions and 52 deletions

2
.gitignore vendored
View File

@ -21,3 +21,5 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
/*/site

View File

@ -3,26 +3,24 @@
// Hover to view descriptions of existing attributes. // Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Extension", "name": "Extension",
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": ["--extensionDevelopmentPath=${workspaceFolder}"]
"--extensionDevelopmentPath=${workspaceFolder}" },
] {
}, "name": "Extension Tests",
{ "type": "extensionHost",
"name": "Extension Tests", "request": "launch",
"type": "extensionHost", "runtimeExecutable": "${execPath}",
"request": "launch", "args": [
"runtimeExecutable": "${execPath}", "--extensionDevelopmentPath=${workspaceFolder}",
"args": [ "--extensionTestsPath=${workspaceFolder}/test"
"--extensionDevelopmentPath=${workspaceFolder}", ]
"--extensionTestsPath=${workspaceFolder}/test" }
] ]
}
]
} }

View File

@ -1,13 +1,9 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"target": "es6", "target": "es6",
"checkJs": false, /* Typecheck .js files. */ "checkJs": false /* Typecheck .js files. */,
"lib": [ "lib": ["es6"]
"es6" },
] "exclude": ["node_modules"]
},
"exclude": [
"node_modules"
]
} }

View File

@ -24,8 +24,8 @@ For example:
This extension contributes the following settings: This extension contributes the following settings:
* `myExtension.enable`: enable/disable this extension - `myExtension.enable`: enable/disable this extension
* `myExtension.thing`: set to `blah` to do something - `myExtension.thing`: set to `blah` to do something
## Known Issues ## Known Issues
@ -47,19 +47,19 @@ Fixed issue #.
Added features X, Y, and Z. Added features X, Y, and Z.
----------------------------------------------------------------------------------------------------------- ---
## Working with Markdown ## Working with Markdown
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts: **Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux) - Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux) - Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets - Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
### For more information ### For more information
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown) - [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/) - [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
**Enjoy!** **Enjoy!**

View File

@ -6,7 +6,7 @@
// //
// The module 'assert' provides assertion methods from node // The module 'assert' provides assertion methods from node
const assert = require('assert'); const assert = require("assert");
// You can import and use all API from the 'vscode' module // You can import and use all API from the 'vscode' module
// as well as import your extension to test it // as well as import your extension to test it
@ -15,10 +15,9 @@ const assert = require('assert');
// Defines a Mocha test suite to group tests of similar kind together // Defines a Mocha test suite to group tests of similar kind together
suite("Extension Tests", function() { suite("Extension Tests", function() {
// Defines a Mocha unit test
// Defines a Mocha unit test test("Something 1", function() {
test("Something 1", function() { assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(5)); assert.equal(-1, [1, 2, 3].indexOf(0));
assert.equal(-1, [1, 2, 3].indexOf(0)); });
});
}); });

View File

@ -10,14 +10,14 @@
// to report the results back to the caller. When the tests are finished, return // to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none. // a possible error to the callback or null if none.
const testRunner = require('vscode/lib/testrunner'); const testRunner = require("vscode/lib/testrunner");
// You can directly control Mocha options by configuring the test runner below // You can directly control Mocha options by configuring the test runner below
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options // See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options
// for more info // for more info
testRunner.configure({ testRunner.configure({
ui: 'tdd', // the TDD UI is being used in extension.test.js (suite, test, etc.) ui: "tdd", // the TDD UI is being used in extension.test.js (suite, test, etc.)
useColors: true // colored output from test results useColors: true // colored output from test results
}); });
module.exports = testRunner; module.exports = testRunner;