private async processConnectionFile()

in src/server/connection-details.ts [90:111]


  private async processConnectionFile(
    filePath: string
  ): Promise<BspConnectionDetails | undefined> {
    let fileContents = ''
    try {
      fileContents = await Utils.readFile(filePath)
    } catch {
      this.outputChannel.appendLine(
        `Skipping ${filePath}: Failed to read file.`
      )
      return
    }

    try {
      return JSON.parse(fileContents)
    } catch {
      this.outputChannel.appendLine(
        `Skipping ${filePath}: Failed to parse file contents.`
      )
      return
    }
  }