Skip to content

Commit 74aba57

Browse files
committed
refactor: simplify the code structure
1 parent 38425a9 commit 74aba57

File tree

21 files changed

+187
-163
lines changed

21 files changed

+187
-163
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ node_modules
1010
.vscode-test
1111
*.vsix
1212

13-
dist
13+
out

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"--extensionDevelopmentPath=${workspaceFolder}"
1515
],
1616
"outFiles": [
17-
"${workspaceFolder}/dist/**/*.js"
17+
"${workspaceFolder}/out/**/*.js"
1818
],
1919
"preLaunchTask": "${defaultBuildTask}"
2020
}

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.vscode/**
66
*.log
77
*.spec.*
8-
dist/**/*.map
8+
out/**/*.map
99
fixtures/**
1010
res/icon.xcf
1111
src/**

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ To set this path, add the following entry to Settings (**File > Preferences > Se
3434

3535
If you plan to use the `tf.exe` command line provided by the Visual Studio IDE, the value to provide will be similar to `C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\TF.exe`.
3636

37+
## Usage
38+
39+
Hit **`Alt + T`** to list available commands for the current edited file.
40+
3741
## List of available commands
3842

3943
- **Add** `vscode-tfs.add`

package.json

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,47 @@
11
{
22
"name": "vscode-tfs",
3-
"displayName": "TFS",
3+
"version": "2.0.0",
44
"description": "TFS Visual Studio Code integration.",
5-
"version": "1.2.0",
6-
"author": {
7-
"name": "Evgeniy Generalov",
8-
"email": "e.generalov@gmail.com",
9-
"url": "https://github.com/generalov"
10-
},
11-
"contributors": [
12-
{
13-
"name": "Aaron Stevens",
14-
"email": "bheklilr2@gmail.com",
15-
"url": "https://github.com/bheklilr/vscode-tfs"
16-
}
17-
],
18-
"publisher": "generalov",
195
"license": "SEE LICENSE IN LICENSE",
20-
"keywords": [
21-
"tfs",
22-
"team",
23-
"foundation",
24-
"server",
25-
"microsoft"
26-
],
27-
"repository": {
28-
"type": "git",
29-
"url": "https://github.com/generalov/vscode-tfs.git"
30-
},
31-
"bugs": {
32-
"url": "https://github.com/generalov/vscode-tfs/issues"
33-
},
34-
"homepage": "https://github.com/generalov/vscode-tfs#readme",
35-
"readmeFilename": "README.md",
36-
"main": "./dist/extension",
37-
"engines": {
38-
"vscode": "^1.45.1"
39-
},
6+
"main": "./out/extension",
407
"scripts": {
418
"vscode:prepublish": "yarn run compile",
42-
"precompile": "yarn run rimraf dist/*",
9+
"precompile": "yarn run rimraf out",
4310
"compile": "tsc -p ./",
11+
"watch": "tsc -watch -p ./",
4412
"pretest": "yarn run compile && yarn run lint",
4513
"test": "mocha -r ts-node/register \"src/**/*.spec.ts\"",
4614
"lint": "eslint src --ext ts",
4715
"fix": "prettier --write \"src/**/*.ts\""
4816
},
17+
"dependencies": {
18+
},
19+
"devDependencies": {
20+
"@types/mocha": "^7.0.2",
21+
"@types/node": "^13.11.0",
22+
"@types/vscode": "^1.45.1",
23+
"@typescript-eslint/eslint-plugin": "^3.1.0",
24+
"@typescript-eslint/parser": "^3.1.0",
25+
"eslint": "7.2.0",
26+
"eslint-config-prettier": "^6.11.0",
27+
"eslint-plugin-mocha": "7.0.1",
28+
"eslint-plugin-prettier": "^3.1.3",
29+
"mocha": "^7.2.0",
30+
"prettier": "^2.0.5",
31+
"rimraf": "^3.0.2",
32+
"ts-node": "^8.10.2",
33+
"typescript": "^3.9.5"
34+
},
35+
"engines": {
36+
"vscode": "^1.45.1"
37+
},
4938
"activationEvents": [
5039
"onCommand:vscode-tfs.add",
5140
"onCommand:vscode-tfs.checkout",
5241
"onCommand:vscode-tfs.delete",
5342
"onCommand:vscode-tfs.undo",
5443
"onCommand:vscode-tfs.openInBrowser",
55-
"onCommand:vscode-tfs.menu"
44+
"onCommand:vscode-tfs.list"
5645
],
5746
"contributes": {
5847
"commands": [
@@ -82,26 +71,26 @@
8271
"category": "TFS"
8372
},
8473
{
85-
"command": "vscode-tfs.menu",
74+
"command": "vscode-tfs.list",
8675
"title": "Team Foundation Server...",
8776
"category": "TFS"
8877
}
8978
],
9079
"menus": {
9180
"commandPalette": [
9281
{
93-
"command": "vscode-tfs.menu",
82+
"command": "vscode-tfs.list",
9483
"when": "false"
9584
}
9685
],
9786
"explorer/context": [
9887
{
99-
"command": "vscode-tfs.menu"
88+
"command": "vscode-tfs.list"
10089
}
10190
],
10291
"editor/title/context": [
10392
{
104-
"command": "vscode-tfs.menu"
93+
"command": "vscode-tfs.list"
10594
}
10695
]
10796
},
@@ -114,8 +103,37 @@
114103
"description": "Path to the TFS command line client (tf.exe)."
115104
}
116105
}
106+
},
107+
"keybindings": [
108+
{
109+
"command": "vscode-tfs.list",
110+
"key": "Alt+T"
111+
}
112+
]
113+
},
114+
"homepage": "https://github.com/generalov/vscode-tfs#readme",
115+
"author": {
116+
"name": "Evgeniy Generalov",
117+
"email": "e.generalov@gmail.com",
118+
"url": "https://github.com/generalov"
119+
},
120+
"contributors": [
121+
{
122+
"name": "Aaron Stevens",
123+
"email": "bheklilr2@gmail.com",
124+
"url": "https://github.com/bheklilr/vscode-tfs"
117125
}
126+
],
127+
"publisher": "generalov",
128+
"repository": {
129+
"type": "git",
130+
"url": "https://github.com/generalov/vscode-tfs.git"
131+
},
132+
"bugs": {
133+
"url": "https://github.com/generalov/vscode-tfs/issues"
118134
},
135+
"readmeFilename": "README.md",
136+
"displayName": "TFS",
119137
"icon": "res/icon.png",
120138
"galleryBanner": {
121139
"color": "#912a2a",
@@ -124,22 +142,11 @@
124142
"categories": [
125143
"Other"
126144
],
127-
"dependencies": {
128-
},
129-
"devDependencies": {
130-
"@types/mocha": "^7.0.2",
131-
"@types/node": "^13.11.0",
132-
"@types/vscode": "^1.45.1",
133-
"@typescript-eslint/eslint-plugin": "^3.1.0",
134-
"@typescript-eslint/parser": "^3.1.0",
135-
"eslint": "7.2.0",
136-
"eslint-config-prettier": "^6.11.0",
137-
"eslint-plugin-mocha": "7.0.1",
138-
"eslint-plugin-prettier": "^3.1.3",
139-
"mocha": "^7.2.0",
140-
"prettier": "^2.0.5",
141-
"rimraf": "^3.0.2",
142-
"ts-node": "^8.10.2",
143-
"typescript": "^3.9.5"
144-
}
145+
"keywords": [
146+
"tfs",
147+
"team",
148+
"foundation",
149+
"server",
150+
"microsoft"
151+
]
145152
}

src/actions.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/actions/add.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/actions/checkout.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/actions/delete.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/actions/undo.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)