-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Autocomplete when typing is really slow. #49260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jrieken Quick update.
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node",
"target": "ES2020",
"jsx": "preserve",
"strictFunctionTypes": true
},
"exclude": ["node_modules", "**/node_modules/*"]
} I am still having the same issue 🤦🏾♂️ I tried something else.
|
So, the problem only occurs with specific projects and those are all JavaScript/Typescript? Is that right? Is auto-complete in other files, like CSS or HTML, acceptable fast? |
To answer your question:
|
Does this reproduce in the latest VS Code insiders build with all extensions disabled? If it does, please share a minimal project that demonstrates the issue |
@mjbvz
At this time, I am lost and still investigating the issue. Nevertheless, I noticed one thing though.
below is the {
"name": "api",
"version": "1.0.0",
"description": "API v1",
"main": "server.js",
"scripts": {
"test": "mocha -R spec './apis/test/**/*.js' --exit",
"lint": "eslint ./apis/*.js",
"dev:nodemon": "nodemon apis/server.js",
"dev:app": "DEBUG=app,app:* nodemon NODE_ENV=development ./apis/server.js",
"dev:debug": "nodemon --inspect ./apis/server.js",
},
"author": "Dami Sparks Omifare <[email protected]>",
"license": "",
"repository": {
"type": "git",
"url": "git+https://github.com/damisparks/fitplus.git"
},
"dependencies": {
"@google-cloud/storage": "5.8.5",
"@sendgrid/mail": "7.4.2",
"bcryptjs": "2.4.3",
"body-parser": "1.19.0",
"chalk": "4.1.0",
"cookie-parser": "1.4.5",
"cors": "2.8.5",
"debug": "4.3.1",
"dotenv": "8.2.0",
"express": "4.17.1",
"helmet": "4.4.1",
"jsonwebtoken": "8.5.1",
"mongoose": "5.11.15",
"mongoose-unique-validator": "2.0.3",
"morgan": "1.10.0",
"multer": "1.4.2",
"slugify": "1.6.5",
"socket.io": "4.5.1",
"uuid": "8.3.2"
},
"nodemonConfig": {
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"env": {
"NODE_ENV": "development"
}
},
"devDependencies": {
"eslint": "7.19.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-plugin-import": "2.22.1",
"nodemon": "2.0.7"
}
}
|
Thanks. Based on the Moving to TS to confirm this though |
Yes, and we have #48517 open on our end. |
this could be related to incomplete tsconfig setup, or eslintrc. You need to add node_modules, and build artifacts into exclude sections of tsconfig, and eslintrc files. This way it will stop looking there, hence reduce the load on CPU. |
@JustFly1984 module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 12,
},
rules: {
'no-underscore-dangle': 0,
'no-unused-vars': 'error',
},
}; |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
How is this closed when the issue is not solved. At least a workaround would be nice. |
?? It’s closed because it’s a duplicate of #48517 |
Thank you @andrewbranch |
Try not using mongoose 😞 |
Any alternatives to recommend? |
Maybe mongodb directly? I don’t know, it’s been years since I used mongodb for a project. You could ask in Automattic/mongoose#10349 |
Thank you @andrewbranch for the suggestion. I will look into that. I appreciate. |
@damisparks In that thread the maintainers said they think it’s fixed in mongoose v6. Were you able to try that, or is it too big of an upgrade? |
@andrewbranch I have not tried the update yet. However, I will check it out, and thank you for letting me know. |
If you go back to that mongoose issue, you can see I’ve done some more investigation in the meantime... and for me v6 is slower 😅 |
Issue Type: Performance Issue
Autocomplete when typing is really slow. I have to wait for at least 5 seconds to see the suggestions.
VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:20:04.972Z)
OS version: Darwin arm64 21.5.0
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (29)
(1 theme extensions excluded)
A/B Experiments
See the image below.

The text was updated successfully, but these errors were encountered: