#VSCode Crashing
8 messages · Page 1 of 1 (latest)
Are you using commonjs or esm module?
Well you can try this
import the discord.js from the top by doing this:
const { ChatInputCommandInteraction } = require("discord.js");
/**
* @param {ChatInputCommandInteraction} interaction
*/
Use ESM/TypeScript
TypeScript has type inference
You should be good
I had issues with it. But mine was different. The language server would take like all the RAM (8GB) and would hang the system. I disabled all extensions and re-enabled all of them. My issue could have been because I used an auto save config for that workspace and for each auto save, i had the prettier-plugin-tailwindcss reformat the files. Unsure if that is what caused it or standalone issue for the language server. But language server was acting weird.