vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

CMake Tools try to configure IntelliSense for Non-CMake projects

Open Raphael-Hao opened this issue 3 years ago • 23 comments

In a workspace, CMake Tools prompts CMake Tools would like to configure IntelliSense for the for every non-CMake folder.

CMake Tools Diagnostics

<!-- Paste the `CMake: Log Diagnostics` output HERE -->

Debug Log

<!-- Paste the debug log contents HERE -->

Raphael-Hao avatar Jan 25 '22 02:01 Raphael-Hao

What version of VS Code are you using? They recently fixed a bug that caused CMake Tools to activate in workspaces that we didn't want it to activate in.

bobbrow avatar Jan 25 '22 16:01 bobbrow

Sorry for the late reply, I am using Version: 1.63.2 (Universal).

Raphael-Hao avatar Jan 27 '22 14:01 Raphael-Hao

Ok. Then the extension must be activating for some other reason. Can you run the Developer: Startup Performance command and paste the result here? It's also possible some other extension you've installed is always activating CMake Tools.

bobbrow avatar Jan 27 '22 16:01 bobbrow

Ok. Here it is.

System Info

  • Code: 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3)
  • OS: darwin(21.2.0)
  • CPUs: Apple M1 Pro(10 x 24)
  • Memory(System): 16.00 GB(0.06GB free)
  • Memory(Process): NaN MB working set(192.33MB private, 1.80MB shared)
  • VM(likelihood): 0%
  • Initial Startup: false
  • Has 0 other windows
  • Screen Reader Active: false
  • Empty Workspace: false

Performance Marks

What Duration Process Info
start => app.isReady - [main] initial startup: false
nls:start => nls:end - [main] initial startup: false
require(main.bundle.js) - [main] initial startup: false
start crash reporter - [main] initial startup: false
serve main IPC handle - [main] initial startup: false
create window - [main] initial startup: false,
app.isReady => window.loadUrl() - [main] initial startup: false
window.loadUrl() => begin to require(workbench.desktop.main.js) 125 [main->renderer] NewWindow
require(workbench.desktop.main.js) 158 [renderer] cached data: YES, node_modules took 0ms
wait for window config 0 [renderer] -
init storage (global & workspace) 11 [renderer] -
init workspace service 61 [renderer] -
register extensions & spawn extension host 8286 [renderer] -
restore viewlet 34 [renderer] workbench.view.explorer
restore panel 15 [renderer] terminal
restore & resolve visible editors 78 [renderer] 1: PerfviewInput
overall workbench load 258 [renderer] -
workbench ready 606 [main->renderer] -
renderer ready 484 [renderer] -
shared process connection ready 137 [renderer->sharedprocess] -
extensions registered 9011 [renderer] -

Extension Activation Stats

Extension Eager Load Code Call Activate Finish Activate Event By
vscode.debug-auto-launch true 5 0 29 * vscode.debug-auto-launch
vscode.git-base true 6 0 29 * vscode.github
vscode.github true 10 1 5 * vscode.github
alefragnani.project-manager true 8 5 1 * alefragnani.project-manager
donjayamanne.githistory true 50 11 18 * donjayamanne.githistory
GitHub.vscode-pull-request-github true 84 1 735 * GitHub.vscode-pull-request-github
hbenl.vscode-test-explorer true 28 5 0 * hbenl.vscode-test-explorer
mhutchie.git-graph true 42 14 175 * mhutchie.git-graph
ms-python.python true 221 19 1055 workspaceContains:pyproject.toml ms-python.python
ms-vscode.test-adapter-converter true 4 0 17 * hbenl.vscode-test-explorer
mutantdino.resourcemonitor true 45 1 2 * mutantdino.resourcemonitor
nvidia.nsight-vscode-edition true 82 1 9 workspaceContains:**/*.cu nvidia.nsight-vscode-edition
shardulm94.trailing-spaces true 36 1 1 * shardulm94.trailing-spaces
vscodevim.vim true 51 1 0 * vscodevim.vim
vscode.extension-editing false 19 1 58 onLanguage:markdown vscode.extension-editing
vscode.git false 64 15 111 api donjayamanne.githistory
vscode.github-authentication false 18 0 3 onAuthenticationRequest:github vscode.github-authentication
vscode.markdown-language-features false 58 4 54 onLanguage:markdown vscode.markdown-language-features
vscode.markdown-math false 9 1 0 api yzhang.markdown-all-in-one
vscode.microsoft-authentication false 19 1 45 onAuthenticationRequest:microsoft vscode.microsoft-authentication
aaron-bond.better-comments false 3 0 4 onLanguage:plaintext aaron-bond.better-comments
mechatroner.rainbow-csv false 7 3 541 onLanguage:plaintext mechatroner.rainbow-csv
ms-vscode-remote.remote-containers false 45 1 68 onStartupFinished ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh false 7 4 0 onResolveRemoteAuthority:ssh-remote ms-vscode-remote.remote-ssh
PKief.material-icon-theme false 5 0 7 onStartupFinished PKief.material-icon-theme
shd101wyy.markdown-preview-enhanced false 1197 3 51 onLanguage:markdown shd101wyy.markdown-preview-enhanced
thejustinwalsh.textproto-grammer false 3 0 16 api yzhang.markdown-all-in-one
tqchen.ffi-navigator false 70 482 59 onLanguage:plaintext tqchen.ffi-navigator
yzhang.markdown-all-in-one false 41 22 29 onLanguage:markdown yzhang.markdown-all-in-one

Raw Perf Marks: main

Name	Timestamp	Delta	Total
code/timeOrigin	1643334009712	0	0
code/didStartMain	1643334009834	122	122
code/willStartCrashReporter	1643334009845	11	133
code/didStartCrashReporter	1643334009967	122	255
code/mainAppReady	1643334010046	79	334
code/willLoadMainBundle	1643334010090	44	378
code/fork/willLoadCode	1643334010104	14	392
code/registerFilesystem/file	1643334010131	27	419
code/didLoadMainBundle	1643334010131	0	419
code/willStartMainServer	1643334010135	4	423
code/didStartMainServer	1643334010137	2	425
code/willCreateCodeWindow	1643334010200	63	488
code/willRestoreCodeWindowState	1643334010200	0	488
code/didRestoreCodeWindowState	1643334010200	0	488
code/willCreateCodeBrowserWindow	1643334010200	0	488
code/didCreateCodeBrowserWindow	1643334010218	18	506
code/didCreateCodeWindow	1643334010219	1	507
code/willOpenNewWindow	1643334010239	20	527
code/willCreateCodeWindow	1643334016571	6332	6859
code/willRestoreCodeWindowState	1643334016571	0	6859
code/didRestoreCodeWindowState	1643334016571	0	6859
code/willCreateCodeBrowserWindow	1643334016571	0	6859
code/didCreateCodeBrowserWindow	1643334016580	9	6868
code/didCreateCodeWindow	1643334016580	0	6868
code/willOpenNewWindow	1643334016628	48	6916

Raw Perf Marks: server

Name	Timestamp	Delta	Total
code/timeOrigin	1643334020617	0	0
code/server/start	1643334020663	46	46
code/server/started	1643334020679	16	62
code/fork/willLoadCode	1643334020691	12	74
code/server/codeLoaded	1643334020840	149	223
code/registerFilesystem/file	1643334020856	16	239
code/server/ready	1643334020889	33	272
code/server/firstWebSocket	1643334021042	153	425

Raw Perf Marks: renderer

Name	Timestamp	Delta	Total
code/timeOrigin	1643334016629	0	0
code/didStartRenderer	1643334016750	121	121
code/willWaitForWindowConfig	1643334016751	1	122
code/didWaitForWindowConfig	1643334016751	0	122
code/willShowPartsSplash	1643334016751	0	122
code/didShowPartsSplash	1643334016751	0	122
code/willLoadWorkbenchMain	1643334016753	2	124
code/didLoadWorkbenchMain	1643334016911	158	282
code/registerFilesystem/file	1643334016912	1	283
code/registerFilesystem/vscode-userdata	1643334016912	0	283
code/willInitWorkspaceService	1643334016913	1	284
code/willInitStorage	1643334016913	0	284
code/didInitStorage	1643334016924	11	295
code/willInitUserConfiguration	1643334016953	29	324
code/didInitUserConfiguration	1643334016958	5	329
code/willInitWorkspaceConfiguration	1643334016958	0	329
code/didInitWorkspaceConfiguration	1643334016974	16	345
code/didInitWorkspaceService	1643334016974	0	345
code/willStartWorkbench	1643334016976	2	347
code/LifecyclePhase/Ready	1643334017015	39	386
code/registerFilesystem/trustedDomains	1643334017029	14	400
code/willRestoreEditors	1643334017156	127	527
code/willRestoreViewlet	1643334017159	3	530
code/willRestorePanel	1643334017178	19	549
code/didRestoreViewlet	1643334017193	15	564
code/didRestorePanel	1643334017193	0	564
code/didRestoreEditors	1643334017234	41	605
code/LifecyclePhase/Restored	1643334017234	0	605
code/didStartWorkbench	1643334017234	0	605
code/didRemovePartsSplash	1643334017234	0	605
code/willConnectSharedProcess	1643334017251	17	622
code/willLoadExtensions	1643334017353	102	724
code/didConnectSharedProcess	1643334017388	35	759
code/LifecyclePhase/Eventually	1643334019735	2347	3106
code/registerFilesystem/vscode-remote	1643334023965	4230	7336
code/willResolveExplorer	1643334024369	404	7740
code/willHandleExtensionPoints	1643334025482	1113	8853
code/didHandleExtensionPoints	1643334025636	154	9007
code/didLoadExtensions	1643334025639	3	9010

Raw Perf Marks: localExtHost

Name	Timestamp	Delta	Total
code/timeOrigin	1643334017493	0	0
code/fork/start	1643334017547	54	54
code/fork/willLoadCode	1643334017556	9	63
code/extHost/willConnectToRenderer	1643334017723	167	230
code/extHost/didConnectToRenderer	1643334017725	2	232
code/extHost/didWaitForInitData	1643334017751	26	258
code/extHost/didCreateServices	1643334017758	7	265
code/extHost/willWaitForConfig	1643334017761	3	268
code/extHost/didWaitForConfig	1643334017773	12	280
code/extHost/didInitAPI	1643334017773	0	280
code/extHost/didInitProxyResolver	1643334017775	2	282
code/extHost/willLoadExtensionCode/ms-vscode-remote.remote-ssh	1643334017791	16	298
code/extHost/didLoadExtensionCode/ms-vscode-remote.remote-ssh	1643334017798	7	305
code/extHost/willActivateExtension/ms-vscode-remote.remote-ssh	1643334017799	1	306
code/extHost/didActivateExtension/ms-vscode-remote.remote-ssh	1643334017803	4	310
code/extHost/willResolveAuthority/ssh-remote	1643334017815	12	322
code/extHost/didResolveAuthorityOK/ssh-remote	1643334020551	2736	3058
code/extHost/ready	1643334024378	3827	6885
code/extHost/willLoadExtensionCode/alefragnani.project-manager	1643334025933	1555	8440
code/extHost/didLoadExtensionCode/alefragnani.project-manager	1643334025941	8	8448
code/extHost/willLoadExtensionCode/vscodevim.vim	1643334025951	10	8458
code/extHost/didLoadExtensionCode/vscodevim.vim	1643334026002	51	8509
code/extHost/willLoadExtensionCode/vscode.microsoft-authentication	1643334026003	1	8510
code/extHost/didLoadExtensionCode/vscode.microsoft-authentication	1643334026022	19	8529
code/extHost/willLoadExtensionCode/aaron-bond.better-comments	1643334026022	0	8529
code/extHost/didLoadExtensionCode/aaron-bond.better-comments	1643334026025	3	8532
code/extHost/willActivateExtension/alefragnani.project-manager	1643334026029	4	8536
code/extHost/willActivateExtension/vscodevim.vim	1643334026034	5	8541
code/extHost/didActivateExtension/alefragnani.project-manager	1643334026035	1	8542
code/extHost/didActivateExtension/vscodevim.vim	1643334026036	1	8543
code/extHost/willActivateExtension/vscode.microsoft-authentication	1643334026042	6	8549
code/extHost/willActivateExtension/aaron-bond.better-comments	1643334026043	1	8550
code/extHost/didActivateExtension/aaron-bond.better-comments	1643334026049	6	8556
code/extHost/didActivateExtension/vscode.microsoft-authentication	1643334026088	39	8595

Node Cached Data Stats

cached data used

cached data missed

cached data rejected

cached data created (lazy, might need refreshes)

Raphael-Hao avatar Jan 28 '22 01:01 Raphael-Hao

I don't see CMake Tools or the C/C++ extension in that list. Did you run it in a workspace where that message appeared for you?

bobbrow avatar Jan 28 '22 16:01 bobbrow

As you can see in the following figure, I have four folders in the workspace. Only TVM contains a CMakeLists.txt. However, the cmake tools will try to configure the intellisense for every folder. I also paste the new output of Developer: Startup Performance below.

image

System Info

  • Code: 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3)
  • OS: darwin(21.2.0)
  • CPUs: Apple M1 Pro(10 x 24)
  • Memory(System): 16.00 GB(0.07GB free)
  • Memory(Process): NaN MB working set(176.71MB private, 4.23MB shared)
  • VM(likelihood): 0%
  • Initial Startup: false
  • Has 0 other windows
  • Screen Reader Active: false
  • Empty Workspace: false

Performance Marks

What Duration Process Info
start => app.isReady - [main] initial startup: false
nls:start => nls:end - [main] initial startup: false
require(main.bundle.js) - [main] initial startup: false
start crash reporter - [main] initial startup: false
serve main IPC handle - [main] initial startup: false
create window - [main] initial startup: false,
app.isReady => window.loadUrl() - [main] initial startup: false
window.loadUrl() => begin to require(workbench.desktop.main.js) 83 [main->renderer] NewWindow
require(workbench.desktop.main.js) 145 [renderer] cached data: YES, node_modules took 0ms
wait for window config 0 [renderer] -
init storage (global & workspace) 10 [renderer] -
init workspace service 31 [renderer] -
register extensions & spawn extension host 3787 [renderer] -
restore viewlet 0 [renderer] -
restore panel 0 [renderer] -
restore & resolve visible editors 3720 [renderer] 2: PerfviewInput, workbench.editors.files.fileEditorInput
overall workbench load 3868 [renderer] -
workbench ready 4131 [main->renderer] -
renderer ready 4050 [renderer] -
shared process connection ready 5 [renderer->sharedprocess] -
extensions registered 4329 [renderer] -

Extension Activation Stats

Extension Eager Load Code Call Activate Finish Activate Event By
vscode.debug-auto-launch true 3 0 34 * vscode.debug-auto-launch
vscode.git-base true 4 0 34 * vscode.github
vscode.github true 8 1 7 * vscode.github
alefragnani.project-manager true 7 5 1 * alefragnani.project-manager
donjayamanne.githistory true 49 14 20 * donjayamanne.githistory
GitHub.vscode-pull-request-github true 71 0 894 * GitHub.vscode-pull-request-github
hbenl.vscode-test-explorer true 16 7 1 * hbenl.vscode-test-explorer
mhutchie.git-graph true 15 12 187 * mhutchie.git-graph
ms-python.python true 166 22 989 workspaceContains:pyproject.toml ms-python.python
ms-vscode.cmake-tools true 106 1 4985 workspaceContains:CMakeLists.txt ms-vscode.cmake-tools
ms-vscode.test-adapter-converter true 2 1 19 * hbenl.vscode-test-explorer
mutantdino.resourcemonitor true 13 2 5 * mutantdino.resourcemonitor
nvidia.nsight-vscode-edition true 89 1 36 workspaceContains:**/*.cu nvidia.nsight-vscode-edition
shardulm94.trailing-spaces true 10 2 3 * shardulm94.trailing-spaces
vscodevim.vim true 50 1 0 * vscodevim.vim
vscode.emmet false 21 11 77 onStartupFinished vscode.emmet
vscode.extension-editing false 16 1 87 onLanguage:markdown vscode.extension-editing
vscode.git false 85 14 93 api donjayamanne.githistory
vscode.github-authentication false 21 1 3 onAuthenticationRequest:github vscode.github-authentication
vscode.markdown-language-features false 54 4 83 onLanguage:markdown vscode.markdown-language-features
vscode.markdown-math false 7 0 3 api yzhang.markdown-all-in-one
vscode.merge-conflict false 4 2 75 onStartupFinished vscode.merge-conflict
vscode.microsoft-authentication false 17 0 359 onAuthenticationRequest:microsoft vscode.microsoft-authentication
aaron-bond.better-comments false 3 1 3 onLanguage:plaintext aaron-bond.better-comments
eamodio.gitlens false 138 2 737 onStartupFinished eamodio.gitlens
esbenp.prettier-vscode false 824 13 95 onStartupFinished esbenp.prettier-vscode
foxundermoon.shell-format false 11 5 51 onLanguage:shellscript foxundermoon.shell-format
GitHub.copilot false 273 23 6762 onStartupFinished GitHub.copilot
KevinRose.vsc-python-indent false 2 0 19 onLanguage:python KevinRose.vsc-python-indent
littlefoxteam.vscode-python-test-adapter false 67 24 49 onStartupFinished littlefoxteam.vscode-python-test-adapter
matepek.vscode-catch2-test-adapter false 79 3 46 onStartupFinished matepek.vscode-catch2-test-adapter
mechatroner.rainbow-csv false 5 2 88 onLanguage:plaintext mechatroner.rainbow-csv
ms-python.vscode-pylance false 241 1 162 api ms-python.python
ms-toolsai.jupyter false 570 9 1330 onLanguage:python ms-toolsai.jupyter
ms-toolsai.jupyter-renderers false 2 1 0 api ms-toolsai.jupyter
ms-vscode-remote.remote-containers false 45 0 44 onStartupFinished ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh false 7 4 0 onResolveRemoteAuthority:ssh-remote ms-vscode-remote.remote-ssh
ms-vscode.cpptools false 138 25 1245 api ms-vscode.cmake-tools
njpwerner.autodocstring false 14 0 10 onLanguage:python njpwerner.autodocstring
PKief.material-icon-theme false 5 0 4 onStartupFinished PKief.material-icon-theme
psioniq.psi-header false 54 1 51 onStartupFinished psioniq.psi-header
ryu1kn.partial-diff false 27 1 50 onStartupFinished ryu1kn.partial-diff
shd101wyy.markdown-preview-enhanced false 676 2 81 onLanguage:markdown shd101wyy.markdown-preview-enhanced
thejustinwalsh.textproto-grammer false 2 0 11 api yzhang.markdown-all-in-one
timonwong.shellcheck false 28 20 34 onLanguage:shellscript timonwong.shellcheck
VisualStudioExptTeam.vscodeintellicode false 121 10 3010 onLanguage:python VisualStudioExptTeam.vscodeintellicode
yzhang.markdown-all-in-one false 55 25 56 onLanguage:markdown yzhang.markdown-all-in-one

Raw Perf Marks: main

Name	Timestamp	Delta	Total
code/timeOrigin	1643334009712	0	0
code/didStartMain	1643334009834	122	122
code/willStartCrashReporter	1643334009845	11	133
code/didStartCrashReporter	1643334009967	122	255
code/mainAppReady	1643334010046	79	334
code/willLoadMainBundle	1643334010090	44	378
code/fork/willLoadCode	1643334010104	14	392
code/registerFilesystem/file	1643334010131	27	419
code/didLoadMainBundle	1643334010131	0	419
code/willStartMainServer	1643334010135	4	423
code/didStartMainServer	1643334010137	2	425
code/willCreateCodeWindow	1643334010200	63	488
code/willRestoreCodeWindowState	1643334010200	0	488
code/didRestoreCodeWindowState	1643334010200	0	488
code/willCreateCodeBrowserWindow	1643334010200	0	488
code/didCreateCodeBrowserWindow	1643334010218	18	506
code/didCreateCodeWindow	1643334010219	1	507
code/willOpenNewWindow	1643334010239	20	527
code/willCreateCodeWindow	1643334016571	6332	6859
code/willRestoreCodeWindowState	1643334016571	0	6859
code/didRestoreCodeWindowState	1643334016571	0	6859
code/willCreateCodeBrowserWindow	1643334016571	0	6859
code/didCreateCodeBrowserWindow	1643334016580	9	6868
code/didCreateCodeWindow	1643334016580	0	6868
code/willOpenNewWindow	1643334016628	48	6916
code/willCreateCodeWindow	1643358685997	24669369	24676285
code/willRestoreCodeWindowState	1643358685999	2	24676287
code/didRestoreCodeWindowState	1643358685999	0	24676287
code/willCreateCodeBrowserWindow	1643358685999	0	24676287
code/didCreateCodeBrowserWindow	1643358686020	21	24676308
code/didCreateCodeWindow	1643358686022	2	24676310
code/willOpenNewWindow	1643358686045	23	24676333
code/willOpenNewWindow	1643360332668	1646623	26322956
code/willCreateCodeWindow	1643385115686	24783018	51105974
code/willRestoreCodeWindowState	1643385115688	2	51105976
code/didRestoreCodeWindowState	1643385115689	1	51105977
code/willCreateCodeBrowserWindow	1643385115690	1	51105978
code/didCreateCodeBrowserWindow	1643385115724	34	51106012
code/didCreateCodeWindow	1643385115725	1	51106013
code/willOpenNewWindow	1643385115751	26	51106039
code/willCreateCodeWindow	1643386123997	1008246	52114285
code/willRestoreCodeWindowState	1643386123997	0	52114285
code/didRestoreCodeWindowState	1643386123998	1	52114286
code/willCreateCodeBrowserWindow	1643386123998	0	52114286
code/didCreateCodeBrowserWindow	1643386124016	18	52114304
code/didCreateCodeWindow	1643386124018	2	52114306
code/willOpenNewWindow	1643386124038	20	52114326
code/willCreateCodeWindow	1643386131689	7651	52121977
code/willRestoreCodeWindowState	1643386131689	0	52121977
code/didRestoreCodeWindowState	1643386131689	0	52121977
code/willCreateCodeBrowserWindow	1643386131689	0	52121977
code/didCreateCodeBrowserWindow	1643386131705	16	52121993
code/didCreateCodeWindow	1643386131705	0	52121993
code/willOpenNewWindow	1643386131706	1	52121994
code/willOpenNewWindow	1643386191417	59711	52181705
code/willOpenNewWindow	1643386246272	54855	52236560
code/willCreateCodeWindow	1643386296020	49748	52286308
code/willRestoreCodeWindowState	1643386296020	0	52286308
code/didRestoreCodeWindowState	1643386296020	0	52286308
code/willCreateCodeBrowserWindow	1643386296021	1	52286309
code/didCreateCodeBrowserWindow	1643386296039	18	52286327
code/didCreateCodeWindow	1643386296040	1	52286328
code/willOpenNewWindow	1643386296064	24	52286352
code/willCreateCodeWindow	1643386301937	5873	52292225
code/willRestoreCodeWindowState	1643386301937	0	52292225
code/didRestoreCodeWindowState	1643386301937	0	52292225
code/willCreateCodeBrowserWindow	1643386301937	0	52292225
code/didCreateCodeBrowserWindow	1643386301942	5	52292230
code/didCreateCodeWindow	1643386301943	1	52292231
code/willOpenNewWindow	1643386301943	0	52292231

Raw Perf Marks: renderer

Name	Timestamp	Delta	Total
code/timeOrigin	1643386301943	0	0
code/didStartRenderer	1643386302024	81	81
code/willWaitForWindowConfig	1643386302024	0	81
code/didWaitForWindowConfig	1643386302024	0	81
code/willShowPartsSplash	1643386302024	0	81
code/didShowPartsSplash	1643386302024	0	81
code/willLoadWorkbenchMain	1643386302026	2	83
code/didLoadWorkbenchMain	1643386302171	145	228
code/registerFilesystem/file	1643386302172	1	229
code/registerFilesystem/vscode-userdata	1643386302172	0	229
code/willInitWorkspaceService	1643386302173	1	230
code/willInitStorage	1643386302173	0	230
code/didInitStorage	1643386302183	10	240
code/willInitUserConfiguration	1643386302188	5	245
code/didInitUserConfiguration	1643386302190	2	247
code/willInitWorkspaceConfiguration	1643386302190	0	247
code/didInitWorkspaceConfiguration	1643386302204	14	261
code/didInitWorkspaceService	1643386302204	0	261
code/willStartWorkbench	1643386302206	2	263
code/LifecyclePhase/Ready	1643386302244	38	301
code/registerFilesystem/trustedDomains	1643386302257	13	314
code/willRestoreEditors	1643386302354	97	411
code/willLoadExtensions	1643386302485	131	542
code/willConnectSharedProcess	1643386304172	1687	2229
code/didConnectSharedProcess	1643386304177	5	2234
code/LifecyclePhase/Restored	1643386304364	187	2421
code/didRemovePartsSplash	1643386304364	0	2421
code/registerFilesystem/vscode-remote	1643386305409	1045	3466
code/didRestoreEditors	1643386306074	665	4131
code/didStartWorkbench	1643386306074	0	4131
code/willHandleExtensionPoints	1643386306137	63	4194
code/didHandleExtensionPoints	1643386306268	131	4325
code/didLoadExtensions	1643386306272	4	4329

Raw Perf Marks: server

Name	Timestamp	Delta	Total
code/timeOrigin	1643386135030	0	0
code/server/start	1643386135074	44	44
code/server/started	1643386135090	16	60
code/fork/willLoadCode	1643386135101	11	71
code/server/codeLoaded	1643386135257	156	227
code/registerFilesystem/file	1643386135275	18	245
code/server/ready	1643386135305	30	275
code/server/firstWebSocket	1643386135472	167	442
code/server/firstRequest	1643386136642	1170	1612

Raw Perf Marks: localExtHost

Name	Timestamp	Delta	Total
code/timeOrigin	1643386302537	0	0
code/fork/start	1643386302573	36	36
code/fork/willLoadCode	1643386302582	9	45
code/extHost/willConnectToRenderer	1643386302755	173	218
code/extHost/didConnectToRenderer	1643386302769	14	232
code/extHost/didWaitForInitData	1643386302800	31	263
code/extHost/didCreateServices	1643386302806	6	269
code/extHost/willWaitForConfig	1643386302810	4	273
code/extHost/didWaitForConfig	1643386302820	10	283
code/extHost/didInitAPI	1643386302820	0	283
code/extHost/didInitProxyResolver	1643386302823	3	286
code/extHost/willLoadExtensionCode/ms-vscode-remote.remote-ssh	1643386302826	3	289
code/extHost/didLoadExtensionCode/ms-vscode-remote.remote-ssh	1643386302833	7	296
code/extHost/willActivateExtension/ms-vscode-remote.remote-ssh	1643386302834	1	297
code/extHost/didActivateExtension/ms-vscode-remote.remote-ssh	1643386302838	4	301
code/extHost/willResolveAuthority/ssh-remote	1643386302851	13	314
code/extHost/didResolveAuthorityOK/ssh-remote	1643386305179	2328	2642
code/extHost/ready	1643386305682	503	3145
code/extHost/willLoadExtensionCode/alefragnani.project-manager	1643386306556	874	4019
code/extHost/didLoadExtensionCode/alefragnani.project-manager	1643386306563	7	4026
code/extHost/willLoadExtensionCode/vscodevim.vim	1643386306573	10	4036
code/extHost/didLoadExtensionCode/vscodevim.vim	1643386306623	50	4086
code/extHost/willLoadExtensionCode/vscode.microsoft-authentication	1643386306624	1	4087
code/extHost/didLoadExtensionCode/vscode.microsoft-authentication	1643386306641	17	4104
code/extHost/willLoadExtensionCode/aaron-bond.better-comments	1643386306641	0	4104
code/extHost/didLoadExtensionCode/aaron-bond.better-comments	1643386306644	3	4107
code/extHost/willActivateExtension/alefragnani.project-manager	1643386306645	1	4108
code/extHost/willActivateExtension/vscodevim.vim	1643386306650	5	4113
code/extHost/didActivateExtension/alefragnani.project-manager	1643386306651	1	4114
code/extHost/didActivateExtension/vscodevim.vim	1643386306651	0	4114
code/extHost/willActivateExtension/vscode.microsoft-authentication	1643386306657	6	4120
code/extHost/willActivateExtension/aaron-bond.better-comments	1643386306657	0	4120
code/extHost/didActivateExtension/aaron-bond.better-comments	1643386306662	5	4125
code/extHost/didActivateExtension/vscode.microsoft-authentication	1643386307016	354	4479
code/extHost/willLoadExtensionCode/vscode.github-authentication	1643386308102	1086	5565
code/extHost/didLoadExtensionCode/vscode.github-authentication	1643386308123	21	5586
code/extHost/willActivateExtension/vscode.github-authentication	1643386308126	3	5589
code/extHost/didActivateExtension/vscode.github-authentication	1643386308131	5	5594

Raw Perf Marks: remoteExtHost

Name	Timestamp	Delta	Total
code/timeOrigin	1643386305527	0	0
code/fork/start	1643386305569	42	42
code/fork/willLoadCode	1643386305579	10	52
code/extHost/willConnectToRenderer	1643386305845	266	318
code/extHost/didConnectToRenderer	1643386305870	25	343
code/extHost/didWaitForInitData	1643386306641	771	1114
code/extHost/didCreateServices	1643386306655	14	1128
code/extHost/willWaitForConfig	1643386306664	9	1137
code/extHost/didWaitForConfig	1643386306792	128	1265
code/extHost/didInitAPI	1643386306793	1	1266
code/extHost/didInitProxyResolver	1643386306807	14	1280
code/extHost/ready	1643386306807	0	1280
code/extHost/willLoadExtensionCode/mechatroner.rainbow-csv	1643386306808	1	1281
code/extHost/didLoadExtensionCode/mechatroner.rainbow-csv	1643386306813	5	1286
code/extHost/willLoadExtensionCode/vscode.extension-editing	1643386306814	1	1287
code/extHost/didLoadExtensionCode/vscode.extension-editing	1643386306830	16	1303
code/extHost/willLoadExtensionCode/vscode.markdown-language-features	1643386306831	1	1304
code/extHost/didLoadExtensionCode/vscode.markdown-language-features	1643386306885	54	1358
code/extHost/willLoadExtensionCode/shd101wyy.markdown-preview-enhanced	1643386306885	0	1358
code/extHost/didLoadExtensionCode/shd101wyy.markdown-preview-enhanced	1643386307561	676	2034
code/extHost/willLoadExtensionCode/yzhang.markdown-all-in-one	1643386307562	1	2035
code/extHost/didLoadExtensionCode/yzhang.markdown-all-in-one	1643386307617	55	2090
code/extHost/willLoadExtensionCode/foxundermoon.shell-format	1643386307618	1	2091
code/extHost/didLoadExtensionCode/foxundermoon.shell-format	1643386307629	11	2102
code/extHost/willLoadExtensionCode/timonwong.shellcheck	1643386307630	1	2103
code/extHost/didLoadExtensionCode/timonwong.shellcheck	1643386307658	28	2131
code/extHost/willLoadExtensionCode/vscode.debug-auto-launch	1643386307659	1	2132
code/extHost/didLoadExtensionCode/vscode.debug-auto-launch	1643386307662	3	2135
code/extHost/willLoadExtensionCode/vscode.git-base	1643386307662	0	2135
code/extHost/didLoadExtensionCode/vscode.git-base	1643386307666	4	2139
code/extHost/willLoadExtensionCode/donjayamanne.githistory	1643386307666	0	2139
code/extHost/didLoadExtensionCode/donjayamanne.githistory	1643386307715	49	2188
code/extHost/willLoadExtensionCode/GitHub.vscode-pull-request-github	1643386307715	0	2188
code/extHost/didLoadExtensionCode/GitHub.vscode-pull-request-github	1643386307786	71	2259
code/extHost/willLoadExtensionCode/ms-vscode.test-adapter-converter	1643386307786	0	2259
code/extHost/didLoadExtensionCode/ms-vscode.test-adapter-converter	1643386307788	2	2261
code/extHost/willLoadExtensionCode/mhutchie.git-graph	1643386307788	0	2261
code/extHost/didLoadExtensionCode/mhutchie.git-graph	1643386307803	15	2276
code/extHost/willLoadExtensionCode/mutantdino.resourcemonitor	1643386307803	0	2276
code/extHost/didLoadExtensionCode/mutantdino.resourcemonitor	1643386307816	13	2289
code/extHost/willLoadExtensionCode/shardulm94.trailing-spaces	1643386307816	0	2289
code/extHost/didLoadExtensionCode/shardulm94.trailing-spaces	1643386307826	10	2299
code/extHost/willLoadExtensionCode/vscode.markdown-math	1643386307875	49	2348
code/extHost/didLoadExtensionCode/vscode.markdown-math	1643386307882	7	2355
code/extHost/willLoadExtensionCode/ms-python.python	1643386307886	4	2359
code/extHost/didLoadExtensionCode/ms-python.python	1643386308052	166	2525
code/extHost/willLoadExtensionCode/ms-vscode.cmake-tools	1643386308053	1	2526
code/extHost/didLoadExtensionCode/ms-vscode.cmake-tools	1643386308159	106	2632
code/extHost/willActivateExtension/mechatroner.rainbow-csv	1643386308244	85	2717
code/extHost/willActivateExtension/vscode.extension-editing	1643386308246	2	2719
code/extHost/willActivateExtension/vscode.markdown-language-features	1643386308247	1	2720
code/extHost/willActivateExtension/shd101wyy.markdown-preview-enhanced	1643386308251	4	2724
code/extHost/willActivateExtension/yzhang.markdown-all-in-one	1643386308253	2	2726
code/extHost/willActivateExtension/foxundermoon.shell-format	1643386308278	25	2751
code/extHost/willActivateExtension/timonwong.shellcheck	1643386308283	5	2756
code/extHost/willActivateExtension/vscode.debug-auto-launch	1643386308303	20	2776
code/extHost/willActivateExtension/vscode.git-base	1643386308303	0	2776
code/extHost/willActivateExtension/donjayamanne.githistory	1643386308303	0	2776
code/extHost/willActivateExtension/GitHub.vscode-pull-request-github	1643386308317	14	2790
code/extHost/willActivateExtension/ms-vscode.test-adapter-converter	1643386308317	0	2790
code/extHost/willActivateExtension/mhutchie.git-graph	1643386308318	1	2791
code/extHost/willActivateExtension/mutantdino.resourcemonitor	1643386308330	12	2803
code/extHost/willActivateExtension/shardulm94.trailing-spaces	1643386308332	2	2805
code/extHost/willActivateExtension/vscode.markdown-math	1643386308334	2	2807
code/extHost/didActivateExtension/mechatroner.rainbow-csv	1643386308338	4	2811
code/extHost/didActivateExtension/vscode.extension-editing	1643386308338	0	2811
code/extHost/didActivateExtension/vscode.markdown-language-features	1643386308338	0	2811
code/extHost/didActivateExtension/shd101wyy.markdown-preview-enhanced	1643386308338	0	2811
code/extHost/didActivateExtension/yzhang.markdown-all-in-one	1643386308338	0	2811
code/extHost/didActivateExtension/foxundermoon.shell-format	1643386308338	0	2811
code/extHost/didActivateExtension/timonwong.shellcheck	1643386308338	0	2811
code/extHost/didActivateExtension/vscode.debug-auto-launch	1643386308338	0	2811
code/extHost/didActivateExtension/vscode.git-base	1643386308338	0	2811
code/extHost/didActivateExtension/donjayamanne.githistory	1643386308338	0	2811
code/extHost/didActivateExtension/ms-vscode.test-adapter-converter	1643386308338	0	2811
code/extHost/didActivateExtension/mutantdino.resourcemonitor	1643386308338	0	2811
code/extHost/didActivateExtension/shardulm94.trailing-spaces	1643386308338	0	2811
code/extHost/didActivateExtension/vscode.markdown-math	1643386308338	0	2811
code/extHost/willLoadExtensionCode/vscode.git	1643386308340	2	2813
code/extHost/didLoadExtensionCode/vscode.git	1643386308425	85	2898
code/extHost/willLoadExtensionCode/thejustinwalsh.textproto-grammer	1643386308439	14	2912
code/extHost/didLoadExtensionCode/thejustinwalsh.textproto-grammer	1643386308441	2	2914
code/extHost/didActivateExtension/mhutchie.git-graph	1643386308517	76	2990
code/extHost/willActivateExtension/ms-python.python	1643386308993	476	3466
code/extHost/willActivateExtension/ms-vscode.cmake-tools	1643386309015	22	3488
code/extHost/willActivateExtension/vscode.git	1643386309214	199	3687
code/extHost/willActivateExtension/thejustinwalsh.textproto-grammer	1643386309228	14	3701
code/extHost/didActivateExtension/GitHub.vscode-pull-request-github	1643386309239	11	3712
code/extHost/didActivateExtension/thejustinwalsh.textproto-grammer	1643386309242	3	3715
code/extHost/willLoadExtensionCode/vscode.github	1643386309242	0	3715
code/extHost/didLoadExtensionCode/vscode.github	1643386309250	8	3723
code/extHost/willLoadExtensionCode/hbenl.vscode-test-explorer	1643386309250	0	3723
code/extHost/didLoadExtensionCode/hbenl.vscode-test-explorer	1643386309266	16	3739
code/extHost/didActivateExtension/vscode.git	1643386309321	55	3794
code/extHost/willLoadExtensionCode/nvidia.nsight-vscode-edition	1643386309433	112	3906
code/extHost/didLoadExtensionCode/nvidia.nsight-vscode-edition	1643386309522	89	3995
code/extHost/didActivateExtension/ms-python.python	1643386310004	482	4477
code/extHost/willActivateExtension/vscode.github	1643386310101	97	4574
code/extHost/willActivateExtension/hbenl.vscode-test-explorer	1643386310102	1	4575
code/extHost/didActivateExtension/vscode.github	1643386310111	9	4584
code/extHost/didActivateExtension/hbenl.vscode-test-explorer	1643386310111	0	4584
code/extHost/willActivateExtension/nvidia.nsight-vscode-edition	1643386310263	152	4736
code/extHost/didActivateExtension/nvidia.nsight-vscode-edition	1643386310300	37	4773
code/extHost/willLoadExtensionCode/ms-python.vscode-pylance	1643386312014	1714	6487
code/extHost/didLoadExtensionCode/ms-python.vscode-pylance	1643386312255	241	6728
code/extHost/willActivateExtension/ms-python.vscode-pylance	1643386312591	336	7064
code/extHost/didActivateExtension/ms-python.vscode-pylance	1643386312754	163	7227
code/extHost/willLoadExtensionCode/ms-vscode.cpptools	1643386313855	1101	8328
code/extHost/didLoadExtensionCode/ms-vscode.cpptools	1643386313993	138	8466
code/extHost/didActivateExtension/ms-vscode.cmake-tools	1643386314001	8	8474

Node Cached Data Stats

cached data used

cached data missed

cached data rejected

cached data created (lazy, might need refreshes)

Raphael-Hao avatar Jan 28 '22 16:01 Raphael-Hao

Is there an option to turn off the notification in the settings.json? I didn't find out one in the document.

Raphael-Hao avatar Jan 28 '22 16:01 Raphael-Hao

Ah, so this is a multi-root workspace. We can take a look. I had thought that the C/C++ extension stopped popping that UI in most cases now, but it's possible we missed a case with multi-root workspaces. Thanks for reporting this issue.

bobbrow avatar Jan 28 '22 16:01 bobbrow

OK,thanks for the reply

Raphael-Hao avatar Jan 28 '22 16:01 Raphael-Hao

Is this addressed by the new setting (cmake.ignoreCMakeListsMissing) from #2532?

david-fong avatar Aug 08 '22 20:08 david-fong

Is this addressed by the new setting (cmake.ignoreCMakeListsMissing) from #2532?

No.

There is currently no setting to rid of this warning on every workspace open other than to allow CMake Tools to configure IntelliSense for the project.

As a workaround, I created the file .vscode/settings.json with the following contents:

{
    "C_Cpp.default.configurationProvider": ""
}

And added it to .git/info/exclude so that it won't show up as a new file in Git.

rustyx avatar Mar 30 '23 13:03 rustyx

Ah, so this is a multi-root workspace. We can take a look. I had thought that the C/C++ extension stopped popping that UI in most cases now, but it's possible we missed a case with multi-root workspaces. Thanks for reporting this issue.

Is there any update on this? I'm also seeing this on multi-root workspaces that have nothing to do with C/C++ ...

lmapii avatar Nov 03 '23 08:11 lmapii

@rustyx @lmapii From the comment here: https://github.com/microsoft/vscode-cmake-tools/issues/2338#issuecomment-1024371508, it seems like VSCode is seeing a CMakeLists.txt in the workspace that is being opened.

Is this correct? Is there a CMakeLists.txt in your workspace? If so, then this isn't a bug. However, there could still possibly be improvements made for projects like this. Could you confirm so that we can properly label this?

Thanks

gcampbell-msft avatar Nov 07 '23 14:11 gcampbell-msft

On my side, I stand corrected since it picks um the CMakeLists.txt from the linux folder of the Flutter application - which is of course weird but I can't really blame the extension.

EDIT: For workspaces that I'm using often, disabling the extension just for the workspace is sufficient. It still feels a bit "loud" for my taste: If there'd be a flag to disable the CMakeLists.txt discovery by default, I'd definitely use it. I'd rather specify the path when I need it. But that is of course just a personal opinion.

lmapii avatar Nov 07 '23 15:11 lmapii

I have a C++ project and a Python project in my workspace. There is no CMakeLists.txt in the Python project. Every time I open the workspace, VSCode is prompting me for a CMakeLists.txt for the Python project. A minimal example is here. I do have this setting though: "cmake.ignoreCMakeListsMissing": false, Without it it's not prompting for this specific case anymore, but then it prompts in other projects when CMakeLists.txt is found in a non-root folder.

rustyx avatar Nov 08 '23 09:11 rustyx

@lmapii Thanks for the confirmation! We'll take your feedback into consideration, but for this issue itself, it seems like there isn't a bug.

@rustyx Thanks for letting us know! As long as the cmake.ignoreCMakeListsMissing workaround works for you, the other prompt is expected because the activation point sees a CMakeLists.txt in the workspace.

However, I think there may be work we can do to make sure that we don't repeatedly populate this for folders that aren't part of the CMake project. I'll keep this on our backlog for future investigation.

gcampbell-msft avatar Nov 08 '23 15:11 gcampbell-msft

Hi, I'm here to confirm that I've also got a workspace where CMake Tools keeps trying to configure whatever it wants to configure.

It uses a cppvsdbg launch config, but is not a C++ project and there are no CMakeLists.txt or *.cmake files anywhere in the workspace. It seems to prompt when running the debug task the first time after opening vscode.

There are two prompts:

Would you like to configure project "${folder name}"?
Source: Cmake Tools (Extension) [button: Yes] [button: Not now]
Some status bar options in CMake Tools have now moved to
the Project Status View in the CMake Tools sidebar. You can
customize your vview with the 'cmake.options' property in
settings.
Source: CMak... [button: Configure CMake Options Visibility] [button: Do Not Show Again]

[EDIT] Also just had it trying to assert dominance in a dotnet project

michaelbartnett avatar Nov 27 '23 19:11 michaelbartnett

Given the success of #3145, why stop at disabling CTest at workspace (aka application) scope?

I propose adding a setting that allows users to enable or disable CMake Tools at folder (aka resource) scope. That will:

  • Mitigate this issue
  • Enhance performance on workspaces with many folders without a CMake project within (at startup at least).
  • As @michaelbartnett would put it, allow the user to "assert dominance" back.
  • Soothe my soul, as my pet peeve is seeing a Python folder appear under CTest because it is enabled for the entire workspace.

For example, we can check if we need to add the folder based on the folder setting here:

https://github.com/microsoft/vscode-cmake-tools/blob/91b0e8b8582c24a5ae2ec5076f5e8dbadce4e9bc/src/projectController.ts#L259-L270

@gcampbell-msft Any gotchas you can see with this?

danniesim avatar Mar 09 '24 20:03 danniesim

@danniesim The main thing I see is that there is already a setting that stops the extension from asking the user to pick a CMakeLists.txt. cmake.ignoreCMakeListsMissing.

I have a PR up here: #3703 which should allow for making this better specifically for the case where there is a CMakeLists.txt not in the root.

@michaelbartnett The reason that it's appearing for you is that we currently activate on onDebugInitialConfigurations. This is because we provide the ability to add initial configurations for the CMake Debugger. If this is something that is bothering you, could you please create a separate bug as this may be coming from a different entry point. Thanks!

gcampbell-msft avatar Apr 11 '24 18:04 gcampbell-msft

@gcampbell-msft, thanks for looking into this. I see where you are coming from, as I, too, feel that "Disable CMake Tools" overlaps with ignoreCMakeListMissing. Perhaps we just want to merge those 2 settings?

The ignoreCMakeListMissing setting is semantically coherent for CMake-only multi-root projects. However, an option to disable CMakeTools for the folder is easier to understand if the project has many different types of projects. For my use case, only half of the roots are CMake projects; hence, having the extension look for CMakeLists.txt (recursive?) in every root seems inefficient, especially if those roots have thousands of files/folders.

I have considered making the CTestDriver omit folders that are missing CMakeLists.txt. However, the real issue is that CMakeTools shouldn't look at a folder if a user can set it as non-CMake. The current code in the CTestDriver assumes that all roots are CMake projects. Hence, we still need a "Disable CTests" folder-scope setting, as the current testExplorerIntegrationEnabled setting disables CTest for all roots, which, by its name, is the right thing to do.

I am open to any approach that manages to address those 4 issues and addresses my use case, and we want a solution that is efficient, elegant, and semantically easy to understand.

danniesim avatar Apr 11 '24 19:04 danniesim