Closed bpasero closed 2 years ago
@bpasero I cannot reproduce this... I have a dummy workspace that contains vscode
, monaco-editor
, and another folder and all works as expected, e.g by default inlays show everywhere, when disabling inlay per user-settings the vscode-folder still shows them. Anything else would also be surprising as there is no special workspace logic for inlay hints.
Do you still see this? Iff so, can you set a breakpoints here: https://github.com/microsoft/vscode/blob/1498d0f34053f854e75e1364adaca6f99e43de08/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.ts#L128
Yeah, it goes past that breakpoint, it's something else. This is quite bizarre, I am able to reproduce with a fresh user data dir and fresh extensions dir on insiders even with just 1 folder (called monaco
our repo) transitioning into multi root workspace:
When writing the workspace file we do migrate all workspace settings over into the multi root file, not sure that is relevant?
The full file ends up being:
{
"folders": [
{
"path": "../Development/Microsoft/monaco"
}
],
"settings": {
"files.associations": {
"cglicenses.json": "jsonc"
},
"typescript.tsdk": "node_modules/typescript/lib",
"git.ignoreLimitWarning": true,
"remote.extensionKind": {
"msjsdiag.debugger-for-chrome": "workspace"
},
"typescript.tsc.autoDetect": "off",
"testing.autoRun.mode": "rerun",
"explorer.experimental.fileNesting.patterns": {
"*.js": "$(capture).*.js",
"bootstrap.js": "bootstrap-*.js"
}
}
}
This is quite bizarre, I am able to reproduce with a fresh user data dir and fresh extensions dir on insiders even with just 1 folder (called monaco our repo) transitioning into multi root workspace:
And then still going pass that extension point? Maybe the extension host configuration object isn't updated properly so that TypeScript inlay hints aren't enabled...
Btw this reproduces from then on also after a window reload, so it is not related to entering the workspace. Maybe we can debug on my machine.
It seems to only hit this method once when I open an editor and early return:
hm, seems like no inlay hints provider registers for you... (or source maps are wrong...)
@mjbvz it looks like typescript is not passing in the resource scope when resolving the configuration here:
Even though it is marked as resource setting:
Not sure there are other settings that have this problem?
No this should be a unique case
Actually applies to a few other settings (not everyone using requireConfiguration
is working with resource level configurations but I think at least a few are): https://github.com/microsoft/vscode/blob/48c560d788650f3d0ffaa4da38b18729277f77c7/extensions/typescript-language-features/src/utils/dependentRegistration.ts#L92
I use a multi-root workspace:
I do not see inlay hints in vscode (
monaco
is thevscode
repo) even though they are enabled in workspace settings forvscode
.