Skip to content

Tag: visual-studio-code

javascript function to search like in vscode files

I’m trying to understand how to make a dropdown search function in javscript that works like file-search CTRL+P in vscode. The search query to be automatically including wildcards. For example i type inds and vscode finds index.js file. How to make something similar in javscript using indexOf for exampl…

Debugging Sanity exec with VS Code

I’m using Sanity (sanity.io headless CMS) and doing some data migration with the CLI. How do I (or, is it at all possible) to some how attach the vscode debugger and stop at breakpoints in migration scripts. I’m running the following cli migration script: sanity exec migrate.js –with-user-to…