Skip to content
Discussion options

You must be logged in to vote

@benschlegel Can you try editing the script with something like this to handle the error? Mine doesn't error, so I think it's a recent project on your system that's that being read in correctly.

// Name: Recent VS Code Project
// Cache: true
// Group: Favorite
// Keyword: vs

import "@johnlindquist/kit"
import { URL, fileURLToPath } from "url"

// /Users/johnlindquist/Library/Application Support/Code/User/globalStorage/state.vscdb
let filename = home("Library", "Application Support", "Code", "User", "globalStorage", "state.vscdb")
// windows path not tested, just guessing
if (isWin) filename = home("AppData", "Roaming", "Code", "User", "globalStorage", "state.vscdb")
let { default: sqlite3 }

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@benschlegel
Comment options

@johnlindquist
Comment options

@benschlegel
Comment options

@johnlindquist
Comment options

Answer selected by benschlegel
Comment options

You must be logged in to vote
4 replies
@johnlindquist
Comment options

@benschlegel
Comment options

@johnlindquist
Comment options

@benschlegel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Errors
Labels
None yet
2 participants