Skip to content
Open
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
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"main": "./out/extension.js",
"activationEvents": [
"onView:fallout.build",
"onView:fallout.buildExplorer",
"workspaceContains:**/.fallout/temp/build-graph.json",
"workspaceContains:**/.nuke/temp/build-graph.json"
],
Expand All @@ -52,12 +53,25 @@
"icon": "media/fallout.svg",
"contextualTitle": "Fallout"
}
],
"explorer": [
{
"id": "fallout.buildExplorer",
"name": "Fallout Build",
"icon": "media/fallout.svg",
"contextualTitle": "Fallout",
"visibility": "collapsed"
}
]
},
"viewsWelcome": [
{
"view": "fallout.build",
"contents": "No Fallout build graph found in this workspace.\nRun the build once to generate `build-graph.json`, then refresh.\n[Plan build (dry run)](command:fallout.planTarget)"
},
{
"view": "fallout.buildExplorer",
"contents": "No Fallout build graph found in this workspace.\nRun the build once to generate `build-graph.json`, then refresh.\n[Plan build (dry run)](command:fallout.planTarget)"
}
],
"commands": [
Expand Down Expand Up @@ -96,24 +110,24 @@
"view/title": [
{
"command": "fallout.showGraph",
"when": "view == fallout.build",
"when": "view == fallout.build || view == fallout.buildExplorer",
"group": "navigation@1"
},
{
"command": "fallout.refreshTargets",
"when": "view == fallout.build",
"when": "view == fallout.build || view == fallout.buildExplorer",
"group": "navigation@2"
}
],
"view/item/context": [
{
"command": "fallout.runTarget",
"when": "view == fallout.build && viewItem == falloutTarget",
"when": "(view == fallout.build || view == fallout.buildExplorer) && viewItem == falloutTarget",
"group": "inline@1"
},
{
"command": "fallout.goToTarget",
"when": "view == fallout.build && viewItem == falloutTarget",
"when": "(view == fallout.build || view == fallout.buildExplorer) && viewItem == falloutTarget",
"group": "inline@2"
}
],
Expand Down
3 changes: 3 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ export function activate(context: vscode.ExtensionContext): void {
watcher.onDidDelete(() => provider.refresh());

context.subscriptions.push(
// Same provider instance backs both the Fallout-container Build view and the
// mirrored Explorer dock — one graph, two homes; refresh() updates both.
vscode.window.registerTreeDataProvider('fallout.build', provider),
vscode.window.registerTreeDataProvider('fallout.buildExplorer', provider),
watcher,
vscode.commands.registerCommand('fallout.refreshTargets', refreshAll),
vscode.commands.registerCommand('fallout.runTarget', (item?: TargetItem) => {
Expand Down