All Questions
Tagged with visual-studio-code javascript
3,891 questions
-2
votes
0
answers
55
views
ReferenceError: document is not defined in VSCode when trying to connect js to html and load it into chrome browser [closed]
I am trying to do a project in a Chrome browser containing HTML, CSS, and JS. They are all within the same project folder and have no visible syntax errors. I am writing the code in VSCode. Within the ...
0
votes
1
answer
83
views
VS Code not recognizing .vue files — “Code language not supported or defined” despite Volar installed
I'm working on a Vue 3 project using Visual Studio Code on Windows 11.
Even though I have installed the Vue - Official extension (from Vue) and tried reinstalling it, VS Code keeps showing this error ...
1
vote
0
answers
31
views
invoke copilot_createFile in Copilot Chat extension
I'm developing a VS Code Copilot Chat extension and trying to invoke built-in Copilot tools such as copilot_editFile or copilot_insertEdit programmatically.
Read-only tools (e.g. copilot_readFile) ...
2
votes
1
answer
63
views
Error converting example VS Code extension test from typescript to JavaScript
I am trying to write end-to-end tests for a VS Code extension. I would like to use JavaScript, not TypeScript. So, I took the example from here: https://github.com/microsoft/vscode-extension-samples/...
0
votes
1
answer
63
views
The Node.js application using the dotenv package fails to read environment variables from the .env file. As a result, the following error occurs:
C:\Users\user\Desktop\NexoGame-b>npm run server
> [email protected] server
> nodemon server.js
[nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s)...
2
votes
0
answers
76
views
How would you use JSDoc for VSCode intellisense on an extended class method
I'm working on a library, and would like some functionality that requires users (meaning the user of the library) to extend a class. On that class will be a method that the user should override, and ...
1
vote
0
answers
20
views
Attempting to draw in a word document with a Microsoft Word addin using vscode
I'm a total newbie taking my first steps in developing a Word Addin using vscode and javascript. I've used this example that I'm trying to expand on:
https://github.com/OfficeDev/Office-Add-in-samples/...
0
votes
0
answers
61
views
Still unable to debug HTML / JavaScript in VSCode using Attach option
I am running chrome with --remote-debugging-port=9222 parameter.
I am running my app using VSCode Live Server extension on port 5500 just like this:
http://localhost:5500/
In VSCode I start debugging ...
0
votes
1
answer
63
views
types.d.ts is not being automatically included in every TypeScript file
I've noticed that the types.d.ts file in the root of the project was automatically included in every TypeScript file in my project. I didn't have to write import type {...} from "./types.d.ts&...
0
votes
1
answer
42
views
How to get full Intellisense/autocomplete for JS libraries in VSCode web editor
I'm programming a basic chatroom using the PeerJS library, and I would like to have autocomplete functional for that library. However, I am using the web version of VSCode because I am using a shared ...
0
votes
0
answers
32
views
ActiveWin Only Counting VScode Tabs
I have created a code to track active time spent on websites and export it to a csv file called website_time_tracking.csv. When I ran it, it only gave the result of only tracking the amount of time ...
2
votes
1
answer
78
views
How do i turn off import suggestions from all files in vs code?
How do I turn off such import suggestions in vs code?
is it default setting or any extension doing this?
it's annoying and always adds wrong imports from node modules
I don't want to turn off all ...
1
vote
1
answer
49
views
How can I get prettier not to break when using component syntax?
When I say component syntax, what I'm referring to is this: https://flow.org/en/docs/react/component-syntax/
which looks like this:
export default component MyComponent(someProp: string) {
prettier ...
0
votes
1
answer
67
views
How do you add a /** */ description to (method) function's (JavaScript)
This is my code:
/**
* Completely clears out all items from an Array
* and returns the new length
*
* (Optional) fills this emptyied array with any given arguments
*
* @param {...any} Items ...
0
votes
0
answers
76
views
Getting a error @esbuild/[email protected]: The platform "darwin" is incompatible with this module. error Found incompatible module
I have a project based in Typescript, using Quasar to create a chrome extension but when i try to run "yarn install" on my Intel Mac i get this:
error @esbuild/[email protected]: The platform ...