Skip to content

Commit a58161b

Browse files
committed
fix bug
1 parent 74015a1 commit a58161b

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/reposView.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class RepoTreeProvider implements vscode.TreeDataProvider<Repo> {
7777
const monorepoFolder = vscode.workspace.workspaceFolders[0];
7878
await updateWorkspaceFolders(0, vscode.workspace.workspaceFolders.length, { uri: monorepoFolder.uri }, ...repoUriList);
7979
vscode.commands.executeCommand('workbench.view.explorer');
80-
vscode.commands.executeCommand('workbench.action.reloadWindow');
8180
}
8281

8382
getTreeItem(element: Repo): vscode.TreeItem {

src/utils/utils.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@ import * as mkdirp from "mkdirp";
77
import * as path from "path";
88
import * as pify from "pify";
99
import * as vscode from "vscode";
10-
import * as Commands from "../commands";
1110

1211
/* UTILS */
1312

1413
const Utils = {
15-
initCommands(context: vscode.ExtensionContext) {
16-
const { commands } = vscode.extensions.getExtension("hackape.ian-vscode-extension").packageJSON.contributes;
14+
// initCommands(context: vscode.ExtensionContext) {
15+
// const { commands } = vscode.extensions.getExtension("hackape.ian-vscode-extension").packageJSON.contributes;
1716

18-
commands.forEach(({ command, title }) => {
19-
const commandName = _.last(command.split(".")) as string,
20-
handler = Commands[commandName],
21-
disposable = vscode.commands.registerCommand(command, (...args) => handler(...args));
17+
// commands.forEach(({ command, title }) => {
18+
// const commandName = _.last(command.split(".")) as string,
19+
// handler = Commands[commandName],
20+
// disposable = vscode.commands.registerCommand(command, (...args) => handler(...args));
2221

23-
context.subscriptions.push(disposable);
24-
});
22+
// context.subscriptions.push(disposable);
23+
// });
2524

26-
return Commands;
27-
},
25+
// return Commands;
26+
// },
2827

2928
isInsiders() {
3029
return !!vscode.env.appName.match(/insiders/i);

0 commit comments

Comments
 (0)