Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/configuration/config/ConnectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ConnectionManager {
}

async sort() {
const connections = await this.getAll();
const connections = this.getAll();
connections.sort((a, b) => a.name.localeCompare(b.name));
return this.configMethod.set(`connections`, connections);
}
Expand Down
12 changes: 5 additions & 7 deletions src/ui/views/environment/environmentView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export function initializeEnvironmentView(context: vscode.ExtensionContext) {
};

const localActionsWatcher = vscode.workspace.createFileSystemWatcher(`**/.vscode/actions.json`);
localActionsWatcher.onDidCreate(() => environmentView.actionsNode?.forceRefresh());
localActionsWatcher.onDidChange(() => environmentView.actionsNode?.forceRefresh());
localActionsWatcher.onDidDelete(() => environmentView.actionsNode?.forceRefresh());
localActionsWatcher.onDidCreate(() => environmentView.actionsNode?.forceRefresh());
localActionsWatcher.onDidChange(() => environmentView.actionsNode?.forceRefresh());
localActionsWatcher.onDidDelete(() => environmentView.actionsNode?.forceRefresh());

context.subscriptions.push(
environmentTreeViewer,
Expand Down Expand Up @@ -390,8 +390,8 @@ export function initializeEnvironmentView(context: vscode.ExtensionContext) {
class EnvironmentView implements vscode.TreeDataProvider<BrowserItem> {
private readonly emitter = new vscode.EventEmitter<BrowserItem | BrowserItem[] | undefined | null | void>();
readonly onDidChangeTreeData = this.emitter.event;
actionsNode?: ActionsNode
profilesNode?: ProfilesNode
readonly actionsNode = new ActionsNode();
readonly profilesNode = new ProfilesNode();

refresh(target?: BrowserItem) {
this.emitter.fire(target);
Expand All @@ -410,8 +410,6 @@ class EnvironmentView implements vscode.TreeDataProvider<BrowserItem> {
return item.getChildren?.();
}
else {
this.actionsNode = new ActionsNode();
this.profilesNode = new ProfilesNode();
return [
this.actionsNode,
new CustomVariablesNode(),
Expand Down
Loading