Skip to content

Commit 650c6c3

Browse files
authored
πŸ’… Auto-format with prettier (#55)
* run prettier on full repo * add prettier pre-commit with test
1 parent 4754f1a commit 650c6c3

File tree

11 files changed

+1253
-91
lines changed

11 files changed

+1253
-91
lines changed

β€Ž.husky/pre-commitβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm test

β€Ž.vscode/launch.jsonβ€Ž

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Launch Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outDir": "${workspaceRoot}/out/src",
14-
"preLaunchTask": "npm"
15-
},
16-
{
17-
"name": "Launch Tests",
18-
"type": "extensionHost",
19-
"request": "launch",
20-
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
22-
"stopOnEntry": false,
23-
"sourceMaps": true,
24-
"outDir": "${workspaceRoot}/out/test",
25-
"preLaunchTask": "npm"
26-
}
27-
]
28-
}
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"outDir": "${workspaceRoot}/out/src",
14+
"preLaunchTask": "npm"
15+
},
16+
{
17+
"name": "Launch Tests",
18+
"type": "extensionHost",
19+
"request": "launch",
20+
"runtimeExecutable": "${execPath}",
21+
"args": [
22+
"--extensionDevelopmentPath=${workspaceRoot}",
23+
"--extensionTestsPath=${workspaceRoot}/out/test"
24+
],
25+
"stopOnEntry": false,
26+
"sourceMaps": true,
27+
"outDir": "${workspaceRoot}/out/test",
28+
"preLaunchTask": "npm"
29+
}
30+
]
31+
}

β€Ž.vscode/settings.jsonβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
10-
}
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
10+
}

β€Ž.vscode/tasks.jsonβ€Ž

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88

99
// A task runner that calls a custom npm script that compiles the extension.
1010
{
11-
"version": "0.1.0",
11+
"version": "0.1.0",
1212

13-
// we want to run npm
14-
"command": "npm",
13+
// we want to run npm
14+
"command": "npm",
1515

16-
// the command is a shell script
17-
"isShellCommand": true,
16+
// the command is a shell script
17+
"isShellCommand": true,
1818

19-
// show the output window only if unrecognized errors occur.
20-
"showOutput": "silent",
19+
// show the output window only if unrecognized errors occur.
20+
"showOutput": "silent",
2121

22-
// we run the custom script "compile" as defined in package.json
23-
"args": ["run", "compile", "--loglevel", "silent"],
22+
// we run the custom script "compile" as defined in package.json
23+
"args": ["run", "compile", "--loglevel", "silent"],
2424

25-
// The tsc compiler is started in watching mode
26-
"isWatching": true,
25+
// The tsc compiler is started in watching mode
26+
"isWatching": true,
2727

28-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
29-
"problemMatcher": "$tsc-watch"
30-
}
28+
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
29+
"problemMatcher": "$tsc-watch"
30+
}

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## 1.2.0
22

3-
* Now pre-filtering when a workspace has more than 1000 files.
3+
- Now pre-filtering when a workspace has more than 1000 files.
44

55
## 1.1.0
66

7-
* Multi-workspace support.
7+
- Multi-workspace support.
88

99
## 1.0.0.
1010

11-
* First stable release.
11+
- First stable release.

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Press `Ctrl+Shift+H` (Mac: `Cmd+Shift+H`) and start typing the file you want.
1212

1313
1. [Install the extension](https://marketplace.visualstudio.com/items?itemName=jakob101.RelativePath&ssr=false#overview)
1414
2. Press `Ctrl+Shift+H` (Mac: `Cmd+Shift+H`) and start typing the file you want.
15-
- The file you want will appear as you type
15+
- The file you want will appear as you type
1616
3. πŸͺ„ Select your file from the dropdown!
1717

1818
<br/>

0 commit comments

Comments
Β (0)