message: catch error when parsing theme files
diff: @@ -134,6 +134,7 @@ export class HoverProvider implements vscode.HoverProvider {
  if (candidateThemes.length === 0) {
  continue
  }
  + try {
  const themePath = path.join(extension.extensionPath, candidateThemes[0].path)
  let theme = JSON.parse(stripJsonComments(fs.readFileSync(themePath, 'utf8')))
  while (theme.include) {
  @@ -158,6 +159,18 @@ export class HoverProvider implements vscode.HoverProvider {
  this.color = '1, 1, 1'
  return
  }
  + } catch(e) {
  + console.log("Error when JSON.parse theme files.")
  + console.log(e.message)
  + }
  + const uiTheme = candidateThemes[0].uiTheme
  + if (!uiTheme || uiTheme === 'vs') {
  + this.color = '0, 0, 0'
  + return
  + } else {
  + this.color = '1, 1, 1'
  + return
  + }
  }
  this.color = '0, 0, 0'
  }
  