message: Make getGraphicsPath work for multiline version + autoformatting
diff: @@ -19,18 +19,23 @@ export class Input {
  }
  private filterIgnoredFiles(files: string[], baseDir: string) : string[] {
  - const excludeGlob = (Object.keys(vscode.workspace.getConfiguration('files', null).get('exclude') || {})).concat(vscode.workspace.getConfiguration('latex-workshop').get('intellisense.file.exclude') || [] ).concat(ignoreFiles)
  + const excludeGlob = Object.keys(vscode.workspace.getConfiguration('files', null).get('exclude') || {})
  + .concat(vscode.workspace.getConfiguration('latex-workshop').get('intellisense.file.exclude') || [])
  + .concat(ignoreFiles)
  let gitIgnoredFiles: string[] = []
  /* Check .gitignore if needed */
  if (vscode.workspace.getConfiguration('search', null).get('useIgnoreFiles')) {
  try {
  - gitIgnoredFiles = (cp.execSync('git check-ignore ' + files.join(' '), {cwd: baseDir})).toString().split('\n')
  + gitIgnoredFiles = cp
  + .execSync('git check-ignore ' + files.join(' '), { cwd: baseDir })
  + .toString()
  + .split('\n')
  } catch (ex) {}
  }
  return files.filter(file => {
  const filePath = path.resolve(baseDir, file)
  /* Check if the file should be ignored */
  - if ((gitIgnoredFiles.indexOf(file) > -1) || micromatch.any(filePath, excludeGlob, {basename: true})) {
  + if (gitIgnoredFiles.indexOf(file) > -1 || micromatch.any(filePath, excludeGlob, { basename: true })) {
  return false
  } else {
  return true
  @@ -40,12 +45,12 @@ export class Input {
  getGraphicsPath(filePath: string) {
  const content = utils.stripComments(fs.readFileSync(filePath, 'utf-8'), '%')
  - const regex = /\\graphicspath{(.*)}/g
  + const regex = /\\graphicspath{(([^\{\}]|{.*})*)}/g
  let result: string[] | null
  do {
  result = regex.exec(content)
  if (result) {
  - for (const dir of result[1].split(/\{|\}/).filter(s => s)) {
  + for (const dir of result[1].split(/\{|\}/).filter(s => s.replace(/^\s*$/, ''))) {
  if (this.graphicsPath.indexOf(dir) > -1) {
  continue
  }
  