Skip to content

Commit d7d6a84

Browse files
committed
NFC: Formatting
1 parent 495188c commit d7d6a84

File tree

9 files changed

+34
-22
lines changed

9 files changed

+34
-22
lines changed

.vscode/launch.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
51
{
62
"version": "0.2.0",
7-
"configurations": [{
3+
"configurations": [
4+
{
85
"name": "Run Extension",
96
"type": "extensionHost",
107
"request": "launch",

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"editor.renderWhitespace": "all",
33
"editor.insertSpaces": true,
4-
}
4+
"editor.formatOnSave": true,
5+
"files.insertFinalNewline": true,
6+
}

.vscode/tasks.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
31
{
42
"version": "2.0.0",
53
"tasks": [
@@ -17,4 +15,4 @@
1715
}
1816
}
1917
]
20-
}
18+
}

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ src/**
66
.gitignore
77
tsconfig.json
88
vsc-extension-quickstart.md
9-
tslint.json
9+
tslint.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Example 'tasks.json' file to build project in monorepo with lerna
4444
* `display` `<DisplayType | DisplayConfig>` File names presentation type
4545
* `output` `<DisplayType | DisplayConfig>` Output presentation type
4646

47-
`DisplayType`:
47+
`DisplayType`:
4848
* `none`returns `undefined`
4949
* `fileName` returns file name (ex. _readme.md_)
5050
* `filePath` returns absolute file path (ex _c:/Projects/proj/info/readme.md_)
@@ -63,4 +63,4 @@ Example 'tasks.json' file to build project in monorepo with lerna
6363
* `type` `<DisplayType>` Presentation type
6464
* `json` `<string>` Path to property of json file
6565
* `description` `<PresentationConfig>` Rule to get file description (to show in vs code picker)
66-
* `detail` `<PresentationConfig>` Rule to get file details (to show in vs code picker)
66+
* `detail` `<PresentationConfig>` Rule to get file details (to show in vs code picker)

src/PickCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class PickCommand {
3333
}
3434
return current;
3535
}
36-
36+
3737
private getFilesAsync(pattern: string): Promise<Array<string>> {
3838
return new Promise<Array<string>>((resolve, reject) => {
3939
glob(pattern, (err, files) => {

src/extension.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ import * as vscode from 'vscode';
22
import { Args } from './Args';
33
import { PickCommand } from './PickCommand';
44

5-
export function activate(context: vscode.ExtensionContext) {
6-
let disposable = vscode.commands.registerCommand('filePicker.pick', (args: Args) => new PickCommand(args).Invoke());
5+
function pick(args: Args) {
6+
return new PickCommand(args).Invoke();
7+
}
78

8-
context.subscriptions.push(disposable);
9+
export function activate(context: vscode.ExtensionContext) {
10+
context.subscriptions.push(
11+
vscode.commands.registerCommand('filePicker.pick', pick)
12+
);
913
}
1014

11-
export function deactivate() {}
15+
export function deactivate() { }

tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
"module": "commonjs",
44
"target": "es6",
55
"outDir": "out",
6-
"lib": ["es6"],
6+
"lib": [
7+
"es6"
8+
],
79
"sourceMap": true,
810
"rootDir": "src"
911
},
10-
"exclude": ["node_modules", ".vscode-test"]
12+
"exclude": [
13+
"node_modules",
14+
".vscode-test"
15+
]
1116
}

tslint.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"rules": {
3-
"indent": [true, "spaces"],
4-
"semicolon": [true, "always"]
3+
"indent": [
4+
true,
5+
"spaces"
6+
],
7+
"semicolon": [
8+
true,
9+
"always"
10+
]
511
}
6-
}
12+
}

0 commit comments

Comments
 (0)