Skip to content

Commit

Permalink
Revert to child_process for external synctex
Browse files Browse the repository at this point in the history
Related to #2010 (comment)
  • Loading branch information
jlelong committed Apr 8, 2020
1 parent a32dfdf commit b91da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as vscode from 'vscode'
import * as fs from 'fs'
import * as ws from 'ws'
import * as path from 'path'
import * as cs from 'cross-spawn'
import * as cp from 'child_process'
import {sleep} from '../utils/utils'

import {Extension} from '../main'
Expand Down Expand Up @@ -229,7 +229,7 @@ export class Viewer {
args = args.map(arg => arg.replace('%PDF%', pdfFile))
}
this.extension.manager.setEnvVar()
cs.spawn(command, args, {cwd: path.dirname(sourceFile), detached: true})
cp.spawn(command, args, {cwd: path.dirname(sourceFile), detached: true})
this.extension.logger.addLogMessage(`Open external viewer for ${pdfFile}`)
}

Expand Down

0 comments on commit b91da62

Please sign in to comment.