Skip to content

Commit 258add5

Browse files
committed
fix: activation event on each command
Closes #125 Probably related to #124
1 parent 325e41c commit 258add5

File tree

2 files changed

+7
-43
lines changed

2 files changed

+7
-43
lines changed

README.md

-33
Original file line numberDiff line numberDiff line change
@@ -49,39 +49,6 @@ time you load the repositories list. It's **false** by default.
4949
"gitProjectManager.storeRepositoriesBetweenSessions": true
5050
}
5151

52-
If nothing happens when trying to open a found project it could be due to the Code command being used. To work around this issue set **gitProjectManager.codePath** to the full path of the Code command to use when launching new instances.
53-
This configuration can be defined in 3 formats (*this was done to solve issue #7*):
54-
55-
**First:** Define it as a simple string, with the path to code app
56-
57-
//Windows
58-
{
59-
"gitProjectManager.codePath": "C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd"
60-
}
61-
62-
//Linux
63-
{
64-
"gitProjectManager.codePath": "/usr/local/bin/code"
65-
}
66-
67-
**Second:** Use a object notation to define the path to code path on each platform
68-
69-
{
70-
"gitProjectManager.codePath" : {
71-
"windows": "C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd",
72-
"linux": "/usr/local/bin/code"
73-
}
74-
}
75-
76-
**Third:** An array of file paths, where at least one is a valid path
77-
78-
{
79-
"gitProjectManager.codePath" : [
80-
"C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd",
81-
"/usr/local/bin/code"
82-
]
83-
}
84-
8552
To improve performance there are 2 new and important configurations that are:
8653
**ignoredFolders**: an array of folder names that will be ignored (*node_modules for example*)
8754

package.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Git Project Manager",
44
"description": "Allows you to change easily between git projects.",
55
"icon": "img/icon.png",
6-
"version": "1.8.1",
6+
"version": "1.8.2",
77
"publisher": "felipecaputo",
88
"galleryBanner": {
99
"color": "#202040",
@@ -26,6 +26,12 @@
2626
"Other"
2727
],
2828
"activationEvents": [
29+
"onCommand:gitProjectManager.openProject",
30+
"onCommand:gitProjectManager.openProjectNewWindow",
31+
"onCommand:gitProjectManager.refreshProjects",
32+
"onCommand:gitProjectManager.refreshFolder",
33+
"onCommand:gitProjectManager.openRecents",
34+
"onCommand:gitProjectManager.openSubFolder",
2935
"onStartupFinished"
3036
],
3137
"contributes": {
@@ -43,15 +49,6 @@
4349
"default": false,
4450
"description": "Specifies whether saves repository folders' data between sessions"
4551
},
46-
"gitProjectManager.codePath": {
47-
"type": [
48-
"string",
49-
"array",
50-
"object"
51-
],
52-
"default": "code",
53-
"description": "Specifies full path to Code command to use when opening a project."
54-
},
5552
"gitProjectManager.ignoredFolders": {
5653
"type": "array",
5754
"default": [],

0 commit comments

Comments
 (0)