Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Hide repo-related functions (explorer, push and pull) (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
itowlson authored Nov 27, 2018
1 parent 9056bf8 commit c6d6ee3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"onCommand:duffle.exposeParameter",
"onView:duffle.installationExplorer",
"onView:duffle.bundleExplorer",
"onView:duffle.repoExplorer",
"onView:duffle.credentialExplorer",
"onLanguage:json"
],
Expand Down Expand Up @@ -233,7 +232,7 @@
},
{
"command": "duffle.push",
"when": "view == duffle.bundleExplorer && viewItem == duffle.localBundle",
"when": "view == duffle.bundleExplorer && viewItem == duffle.localBundle_TODO_REPO_restore_when_repos_land_for_real",
"group": "2"
},
{
Expand Down Expand Up @@ -288,7 +287,12 @@
},
{
"command": "duffle.pull",
"when": "view == duffle.bundleExplorer && viewItem == duffle.repoBundle",
"when": "view == duffle.repoExplorer && viewItem == duffle.repoBundle",
"group": "2"
},
{
"command": "duffle.push",
"when": "view == duffle.bundleExplorer && viewItem == duffle.localBundle_TODO_REPO_restore_when_repos_land_for_real",
"group": "2"
},
{
Expand Down Expand Up @@ -344,10 +348,6 @@
"id": "duffle.bundleExplorer",
"name": "Bundles"
},
{
"id": "duffle.repoExplorer",
"name": "Repositories"
},
{
"id": "duffle.credentialExplorer",
"name": "Credentials"
Expand Down
5 changes: 1 addition & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as vscode from 'vscode';
import { InstallationRef, CredentialSetRef, RepoBundleRef } from './duffle/duffle.objectmodel';
import { InstallationExplorer } from './explorer/installation/installation-explorer';
import { BundleExplorer } from './explorer/bundle/bundle-explorer';
import { RepoExplorer } from './explorer/repo/repo-explorer';
import { CredentialExplorer } from './explorer/credential/credential-explorer';
import * as shell from './utils/shell';
import * as duffle from './duffle/duffle';
Expand All @@ -25,7 +24,6 @@ const duffleDiagnostics = vscode.languages.createDiagnosticCollection("Duffle");
export function activate(context: vscode.ExtensionContext) {
const installationExplorer = new InstallationExplorer(shell.shell);
const bundleExplorer = new BundleExplorer(shell.shell);
const repoExplorer = new RepoExplorer(shell.shell);
const credentialExplorer = new CredentialExplorer(shell.shell);
const duffleTOMLCompletionProvider = new DuffleTOMLCompletionProvider();

Expand All @@ -41,14 +39,13 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand('duffle.install', install),
vscode.commands.registerCommand('duffle.generateCredentials', generateCredentials),
vscode.commands.registerCommand('duffle.refreshBundleExplorer', () => bundleExplorer.refresh()),
vscode.commands.registerCommand('duffle.refreshRepoExplorer', () => repoExplorer.refresh()),
vscode.commands.registerCommand('duffle.refreshRepoExplorer', () => { /* (TODO: REPO: restore when repos land for real) repoExplorer.refresh() */ }),
vscode.commands.registerCommand('duffle.refreshCredentialExplorer', () => credentialExplorer.refresh()),
vscode.commands.registerCommand('duffle.credentialsetAdd', credentialSetAdd),
vscode.commands.registerCommand('duffle.credentialsetDelete', (node) => credentialsetDelete(node)),
vscode.commands.registerCommand('duffle.exposeParameter', exposeParameter),
vscode.window.registerTreeDataProvider("duffle.installationExplorer", installationExplorer),
vscode.window.registerTreeDataProvider("duffle.bundleExplorer", bundleExplorer),
vscode.window.registerTreeDataProvider("duffle.repoExplorer", repoExplorer),
vscode.window.registerTreeDataProvider("duffle.credentialExplorer", credentialExplorer),
vscode.languages.registerCompletionItemProvider({ language: 'toml', pattern: '**/duffle.toml', scheme: 'file' }, duffleTOMLCompletionProvider)
];
Expand Down

0 comments on commit c6d6ee3

Please sign in to comment.