question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optimize handling of globs from extension searches

See original GitHub issue

Issue Type: Performance Issue

Opening project folders with vscode slows down

VS Code version: Code 1.35.0 (553cfb2c2205db5f15f3ee8395bbd5cf066d357d, 2019-06-04T01:17:12.481Z) OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel® Core™ i5-7500 CPU @ 3.40GHz (4 x 3408)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.89GB (6.99GB free)
Process Argv C:\Users\jedi\code\Jedi\OBG_clint
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    4	    96	 13912	code main
    1	    68	    76	   window (问题报告程序)
    0	    58	  1076	   shared-process
    0	   177	  1564	   window (Login.vue - OBG_clint - Visual Studio Code)
    0	    10	  6628	     electron-crash-reporter
    0	    11	  6976	     watcherService 
    0	     5	 16980	       console-window-host (Windows internal process)
    0	    38	 13172	     extensionHost
    0	   105	  2960	       electron_node vueServerMain.js 
    0	    24	  6472	       electron_node tsserver.js 
    0	    17	 12056	         electron_node typingsInstaller.js typesMap.js 
    0	   174	  7732	   window (main.js - demo - Visual Studio Code)
    0	    11	  2444	     watcherService 
    0	    11	  7552	       console-window-host (Windows internal process)
    0	    62	 14956	     extensionHost
    0	   117	 15816	       electron_node tsserver.js 
    0	    56	  5284	         electron_node typingsInstaller.js typesMap.js 
    0	   161	 10872	   gpu-process
Workspace Info
|  Window (Login.vue - OBG_clint - Visual Studio Code)
|  Window (main.js - demo - Visual Studio Code)
|    Folder (demo): 14 files
|      File types: js(4) json(2) vue(2) browserslistrc(1) gitignore(1) md(1)
|                  html(1) ico(1) png(1)
|      Conf files: package.json(1)
|    Folder (OBG_clint): 349 files
|      File types: js(149) vue(83) css(49) less(16) html(10) svg(9) jpg(9)
|                  png(5) json(3) ico(2)
|      Conf files: package.json(1);
Extensions (8)
Extension Author (truncated) Version
laravel-blade-spacer aus 1.0.3
vscode-intelephense-client bme 1.0.14
dotenv mik 1.0.1
vscode-language-pack-zh-hans MS- 1.35.1
mssql ms- 1.6.0
vetur oct 0.21.0
laravel-blade one 1.20.0
open-html-in-browser pea 1.2.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
roblourenscommented, Jun 17, 2019

Looking at the code, it looks like the extension makes several other checks before triggering a search. You might check whether one of those can help you to avoid the search entirely. https://github.com/hbenl/vscode-mocha-test-adapter/blob/40a8b1beb4f1f9790efb20f87aeb52b766a84408/src/configReader.ts#L180

Or if this is a workspace where you are not using this extension, extensions can be disabled per-workspace. Alternately it could be a bug with the extension.

0reactions
roblourenscommented, Feb 17, 2022

Yeah, new API will help here, I hope to get to it soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Explaining Globs | gulp.js
A glob is a string of literal and/or wildcard characters used to match filepaths. Globbing is the act of locating files on a...
Read more >
Deliver more helpful Search ads by adding your business ...
Consumers today are searching in whole new ways. At Search On, we showed you how people can search for what they see using...
Read more >
Understanding the glob pattern in Node.js - LogRocket Blog
Using characters as placeholders is a common practice in computer programming. If you've ever tried adding multiple files with an extension ...
Read more >
7 Ways to Optimize Google Ads for a Better ROAS - WebFX
Use ad extensions. Have you ever done a Google search, glanced at the PPC ads at the top of the page, and noticed...
Read more >
How to Improve Core Web Vitals (8 Ways) - DreamHost
If you're not optimizing your site for these metrics, you might be hurting your Search Engine Optimization (SEO) and overall User Experience ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found