We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163c3fc commit 318debcCopy full SHA for 318debc
src/extension.ts
@@ -97,6 +97,9 @@ export async function activate(context: ExtensionContext) {
97
folder = getOuterMostWorkspaceFolder(folder)
98
99
if (!clients.has(folder.uri.toString())) {
100
+ // placeholder
101
+ clients.set(folder.uri.toString(), null)
102
+
103
let files = await Workspace.findFiles(
104
CONFIG_GLOB,
105
'**/node_modules/**',
@@ -182,7 +185,9 @@ export function deactivate(): Thenable<void> {
182
185
promises.push(defaultClient.stop())
183
186
}
184
187
for (let client of clients.values()) {
- promises.push(client.stop())
188
+ if (client) {
189
+ promises.push(client.stop())
190
+ }
191
192
return Promise.all(promises).then(() => undefined)
193
0 commit comments