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