Skip to content

Commit

Permalink
All build unit tests finished
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 16, 2024
1 parent 5fe1ad7 commit b60e0aa
Show file tree
Hide file tree
Showing 5 changed files with 335 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/compile/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function handleNoRetryError(configuration: vscode.WorkspaceConfiguration, step:
* shows an error message to the user and clears the BuildToolQueue.
*/
function handleExternalCommandError() {
logger.log(`Build returns with error on PID ${lw.compile.process?.pid}.`)
logger.log(`Build with external command returns error on PID ${lw.compile.process?.pid}.`)
logger.refreshStatus('x', 'errorForeground', undefined, 'warning')
void logger.showErrorMessageWithCompilerLogButton('Build terminated with error.')
queue.clear()
Expand Down
2 changes: 1 addition & 1 deletion src/compile/terminate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as cp from 'child_process'
import { lw } from '../lw'
import { queue } from './queue'

const logger = lw.log('Build', 'Recipe')
const logger = lw.log('Build', 'Terminate')

/**
* Terminate the current process of LaTeX building. This OS-specific function
Expand Down
1 change: 1 addition & 0 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function initStatusBarItem() {

function clearCompilerMessage() {
COMPILER_PANEL.clear()
CACHED_COMPILER.length = 0
}

function showLog() {
Expand Down
Loading

0 comments on commit b60e0aa

Please sign in to comment.