Skip to content

Commit

Permalink
Fixed 'Start work' not working if another Start work tab is open
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomura committed Feb 19, 2025
1 parent 6156d53 commit 6ffa7ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/react/atlascode/startwork/startWorkController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export type StartWorkChanges = { [key: string]: any };
function reducer(state: StartWorkState, action: StartWorkUIAction): StartWorkState {
switch (action.type) {
case StartWorkUIActionType.Init: {
console.log(`JS-1324 start work controller init repo count: ${action.data.repoData.length}`);
console.log(`JS-1324 start work controller init repo count: ${action.data.repoData?.length}`);
const newstate = {
...state,
...action.data,
Expand Down
8 changes: 5 additions & 3 deletions src/webview/singleViewFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,17 @@ export class SingleWebview<FD, R> implements ReactWebview<FD> {
const { id, site, product } = this._controller.screenDetails();
this._analyticsApi.fireViewScreenEvent(id, site, product);
} else {
if (this._controller) {
this._controller.update(factoryData);
this._panel.title = this._controller.title();
}

this._panel.webview.html = this._controllerFactory.webviewHtml(
this._extensionPath,
this._panel.webview.asWebviewUri(Uri.file(this._extensionPath)),
this._panel.webview.cspSource,
);
this._panel.reveal(column ? column : ViewColumn.Active); // , false);
if (this._controller) {
this._controller.update(factoryData);
}
}

// Send feature gates to the panel in a message
Expand Down

0 comments on commit 6ffa7ee

Please sign in to comment.