|
38 | 38 | ],
|
39 | 39 | "main":"./out/src/extension",
|
40 | 40 | "contributes": {
|
41 |
| -"commands": [{ |
| 41 | +"commands": [ |
| 42 | + { |
42 | 43 | "command":"leetcode.signin",
|
43 | 44 | "title":"Sign in",
|
44 | 45 | "category":"LeetCode"
|
|
90 | 91 | }
|
91 | 92 | ],
|
92 | 93 | "viewsContainers": {
|
93 |
| -"activitybar": [{ |
94 |
| -"id":"leetcode", |
95 |
| -"title":"LeetCode", |
96 |
| -"icon":"resources/LeetCode.svg" |
97 |
| - }] |
| 94 | +"activitybar": [ |
| 95 | + { |
| 96 | +"id":"leetcode", |
| 97 | +"title":"LeetCode", |
| 98 | +"icon":"resources/LeetCode.svg" |
| 99 | + } |
| 100 | + ] |
98 | 101 | },
|
99 | 102 | "views": {
|
100 |
| -"leetcode": [{ |
101 |
| -"id":"leetCodeExplorer", |
102 |
| -"name":"LeetCode" |
103 |
| - }] |
| 103 | +"leetcode": [ |
| 104 | + { |
| 105 | +"id":"leetCodeExplorer", |
| 106 | +"name":"LeetCode" |
| 107 | + } |
| 108 | + ] |
104 | 109 | },
|
105 | 110 | "menus": {
|
106 |
| -"view/title": [{ |
| 111 | +"view/title": [ |
| 112 | + { |
107 | 113 | "command":"leetcode.searchProblem",
|
108 | 114 | "when":"view == leetCodeExplorer",
|
109 |
| -"group":"navigation@1" |
| 115 | +"group":"leetcode@1" |
110 | 116 | },
|
111 | 117 | {
|
112 | 118 | "command":"leetcode.refreshExplorer",
|
113 | 119 | "when":"view == leetCodeExplorer",
|
114 |
| -"group":"navigation@2" |
| 120 | +"group":"leetcode@2" |
115 | 121 | }
|
116 | 122 | ],
|
117 |
| -"view/item/context": [{ |
118 |
| -"command":"leetcode.showProblem", |
119 |
| -"when":"view == leetCodeExplorer && viewItem == problem", |
120 |
| -"group":"leetcode-explorer@1" |
121 |
| - }], |
122 |
| -"commandPalette": [{ |
123 |
| -"command":"leetcode.showProblem", |
124 |
| -"when":"never" |
125 |
| - }], |
126 |
| -"explorer/context": [{ |
| 123 | +"view/item/context": [ |
| 124 | + { |
| 125 | +"command":"leetcode.showProblem", |
| 126 | +"when":"view == leetCodeExplorer && viewItem == problem", |
| 127 | +"group":"leetcode@1" |
| 128 | + } |
| 129 | + ], |
| 130 | +"commandPalette": [ |
| 131 | + { |
| 132 | +"command":"leetcode.showProblem", |
| 133 | +"when":"never" |
| 134 | + } |
| 135 | + ], |
| 136 | +"explorer/context": [ |
| 137 | + { |
127 | 138 | "command":"leetcode.testSolution",
|
128 | 139 | "when":"explorerResourceIsFolder == false",
|
129 |
| -"group":"file-explorer@1" |
| 140 | +"group":"leetcode@1" |
130 | 141 | },
|
131 | 142 | {
|
132 | 143 | "command":"leetcode.submitSolution",
|
133 | 144 | "when":"explorerResourceIsFolder == false",
|
134 |
| -"group":"file-explorer@2" |
| 145 | +"group":"leetcode@2" |
| 146 | + } |
| 147 | + ], |
| 148 | +"editor/context": [ |
| 149 | + { |
| 150 | +"command":"leetcode.testSolution", |
| 151 | +"group":"leetcode@1" |
| 152 | + }, |
| 153 | + { |
| 154 | +"command":"leetcode.submitSolution", |
| 155 | +"group":"leetcode@2" |
135 | 156 | }
|
136 | 157 | ]
|
137 | 158 | },
|
138 |
| -"configuration": [{ |
139 |
| -"title":"LeetCode", |
140 |
| -"properties": { |
141 |
| -"leetcode.showLocked": { |
142 |
| -"type":"boolean", |
143 |
| -"default":false, |
144 |
| -"scope":"window", |
145 |
| -"description":"Show locked problems." |
146 |
| - }, |
147 |
| -"leetcode.defaultLanguage": { |
148 |
| -"type":"string", |
149 |
| -"enum": [ |
150 |
| -"bash", |
151 |
| -"c", |
152 |
| -"cpp", |
153 |
| -"csharp", |
154 |
| -"golang", |
155 |
| -"java", |
156 |
| -"javascript", |
157 |
| -"kotlin", |
158 |
| -"mysql", |
159 |
| -"python", |
160 |
| -"python3", |
161 |
| -"ruby", |
162 |
| -"scala", |
163 |
| -"swift" |
164 |
| - ], |
165 |
| -"scope":"window", |
166 |
| -"description":"Default language for solving the problems." |
167 |
| - }, |
168 |
| -"leetcode.showSetDefaultLanguageHint": { |
169 |
| -"type":"boolean", |
170 |
| -"default":true, |
171 |
| -"scope":"window", |
172 |
| -"description":"Show a hint to set the default language." |
| 159 | +"configuration": [ |
| 160 | + { |
| 161 | +"title":"LeetCode", |
| 162 | +"properties": { |
| 163 | +"leetcode.showLocked": { |
| 164 | +"type":"boolean", |
| 165 | +"default":false, |
| 166 | +"scope":"window", |
| 167 | +"description":"Show locked problems." |
| 168 | + }, |
| 169 | +"leetcode.defaultLanguage": { |
| 170 | +"type":"string", |
| 171 | +"enum": [ |
| 172 | +"bash", |
| 173 | +"c", |
| 174 | +"cpp", |
| 175 | +"csharp", |
| 176 | +"golang", |
| 177 | +"java", |
| 178 | +"javascript", |
| 179 | +"kotlin", |
| 180 | +"mysql", |
| 181 | +"python", |
| 182 | +"python3", |
| 183 | +"ruby", |
| 184 | +"scala", |
| 185 | +"swift" |
| 186 | + ], |
| 187 | +"scope":"window", |
| 188 | +"description":"Default language for solving the problems." |
| 189 | + }, |
| 190 | +"leetcode.showSetDefaultLanguageHint": { |
| 191 | +"type":"boolean", |
| 192 | +"default":true, |
| 193 | +"scope":"window", |
| 194 | +"description":"Show a hint to set the default language." |
| 195 | + } |
173 | 196 | }
|
174 | 197 | }
|
175 |
| -}] |
| 198 | + ] |
176 | 199 | },
|
177 | 200 | "scripts": {
|
178 | 201 | "vscode:prepublish":"npm run compile",
|
|