Skip to content

Commit b83b9ce

Browse files
committed
wip
1 parent 007f256 commit b83b9ce

8 files changed

+13
-304
lines changed

vscode/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@
181181
"konveyor": [
182182
{
183183
"type": "webview",
184-
"id": "konveyor.konveyorSidebarView",
184+
"id": "konveyor.konveyorAnalysisView",
185185
"name": "Konveyor Analysis View",
186186
"visibility": "visible"
187187
},
188188
{
189189
"id": "konveyor.diffView",
190-
"name": "Konveyor Solution Tree View"
190+
"name": "Konveyor Resolutions"
191191
}
192192
]
193193
},
@@ -196,7 +196,7 @@
196196
{
197197
"command": "konveyor.toggleFullScreen",
198198
"group": "navigation@1",
199-
"when": "view == konveyor.konveyorSidebarView"
199+
"when": "view == konveyor.konveyorAnalysisView"
200200
},
201201
{
202202
"command": "konveyor.applyAll",
@@ -245,7 +245,7 @@
245245
{
246246
"command": "konveyor.toggleFullScreen",
247247
"group": "navigation@1",
248-
"when": "activeWebviewPanelId == konveyor.konveyorSidebarView"
248+
"when": "activeWebviewPanelId == konveyor.konveyorAnalysisView"
249249
}
250250
],
251251
"explorer/context": [

vscode/src/KonveyorGUIWebviewViewProvider.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getUri } from "./utilities/getUri";
1616
import { getNonce } from "./utilities/getNonce";
1717

1818
export class KonveyorGUIWebviewViewProvider implements WebviewViewProvider {
19-
public static readonly SIDEBAR_VIEW_TYPE = "konveyor.konveyorSidebarView";
19+
public static readonly SIDEBAR_VIEW_TYPE = "konveyor.konveyorAnalysisView";
2020
public static readonly RESOLUTION_VIEW_TYPE = "konveyor.konveyorResolutionView";
2121

2222
private static instance: KonveyorGUIWebviewViewProvider;
@@ -192,6 +192,7 @@ export class KonveyorGUIWebviewViewProvider implements WebviewViewProvider {
192192
type: "loadStoredAnalysis",
193193
data,
194194
});
195+
//TODO Commenting out in favor of hardcoded solution data in webviewMessageHandler.ts
195196
// const localChanges = this._extensionState.localChanges;
196197
// webview.postMessage({
197198
// type: "loadSolutions",

vscode/src/commands.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ let fullScreenPanel: WebviewPanel | undefined;
3434

3535
function getFullScreenTab() {
3636
const tabs = window.tabGroups.all.flatMap((tabGroup) => tabGroup.tabs);
37-
return tabs.find((tab) => (tab.input as any)?.viewType?.endsWith("konveyor.konveyorSidebarView"));
37+
return tabs.find((tab) =>
38+
(tab.input as any)?.viewType?.endsWith("konveyor.konveyorAnalysisView"),
39+
);
3840
}
3941

4042
const commandsMap: (state: ExtensionState) => {
@@ -69,7 +71,7 @@ const commandsMap: (state: ExtensionState) => {
6971
"konveyor.focusKonveyorInput": async () => {
7072
const fullScreenTab = getFullScreenTab();
7173
if (!fullScreenTab) {
72-
commands.executeCommand("konveyor.konveyorSidebarView.focus");
74+
commands.executeCommand("konveyor.konveyorAnalysisView.focus");
7375
} else {
7476
fullScreenPanel?.reveal();
7577
}

vscode/src/data/loadResults.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const loadSolution = async (state: ExtensionState, solution: GetSolutionR
4040
({ originalUri: uri }) => new Location(uri, new Position(0, 0)),
4141
);
4242
state.fileModel.updateLocations(locations);
43+
//TODO use this if we need to load solutions for development purposes into the resolutions webview
4344
// const resolutionsProvider = state.webviewProviders?.get("resolutions");
4445
// resolutionsProvider?.webview?.postMessage({
4546
// command: "loadSolution",

vscode/src/data/loadStaticResults.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const loadResultsFromDataFolder = async () => {
5353
if (analysisResults) {
5454
vscode.commands.executeCommand("konveyor.loadRuleSets", analysisResults);
5555
}
56+
//Commenting out in favor of hardcoded solution for now to simulate the e2e flow
5657
// if (solution) {
5758
// vscode.commands.executeCommand("konveyor.loadSolution", solution);
5859
// }

vscode/src/diffView/fileSystemProvider.ts

-256
This file was deleted.

vscode/src/diffView/mock.ts

-36
This file was deleted.

0 commit comments

Comments
 (0)