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

fix: remove auto focus from log panel #233

Merged
merged 1 commit into from
Oct 6, 2022
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
3 changes: 0 additions & 3 deletions src/views/LogView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ export class LogView implements WebviewViewProvider {
* @param description - represents the log description
*/
public async createLog(label: OutputLabel, message: string, description?: string): Promise<void> {
// Displays the log panel. Unfortunately it doesn't load immediately so we have to wait for the html to load
this._view?.show?.(true); // `show` is not implemented in 1.49 but is for 1.50 insiders

// Checks if the log panel has already been loaded and is visible
if (this._view == null || this._view?.visible === false) {
// If it has not yet been loaded, save the log to be executed after loading the log panel
Expand Down
4 changes: 2 additions & 2 deletions test/commands/ProjectCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ describe('ProjectCommands', () => {

it('Method getTruffleUnboxCommand should return a value', async () => {
// Arrange
const displayName = 'drizzle';
const repoName = 'drizzle-box';
const displayName = 'pet-shop';
const repoName = 'pet-shop-box';
xhulz marked this conversation as resolved.
Show resolved Hide resolved
const projectCommandsRewire = rewire('../../src/commands/ProjectCommands');
const getTruffleUnboxCommand = projectCommandsRewire.__get__('getTruffleUnboxCommand');
const showQuickPickMock = sinon.stub(vscode.window, 'showQuickPick');
Expand Down