File tree Expand file tree Collapse file tree 9 files changed +34
-22
lines changed
Expand file tree Collapse file tree 9 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11{
22 "editor.renderWhitespace" : " all" ,
33 "editor.insertSpaces" : true ,
4- }
4+ "editor.formatOnSave" : true ,
5+ "files.insertFinalNewline" : true ,
6+ }
Original file line number Diff line number Diff line change 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" : [
1715 }
1816 }
1917 ]
20- }
18+ }
Original file line number Diff line number Diff line change 66.gitignore
77tsconfig.json
88vsc-extension-quickstart.md
9- tslint.json
9+ tslint.json
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ import * as vscode from 'vscode';
22import { Args } from './Args' ;
33import { 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 ( ) { }
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments