Ensure `itemDefaults.data` is used in VS Code Insiders

master
Brad Cornes 2023-03-28 11:59:47 +01:00
parent 5f361e8a02
commit 18dd2e7b09
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ async function createProjectService(
// VS Code _does_ support `itemDefaults.data` since at least 1.67.0 (this extension's min version)
// but it doesn't advertise it in its capabilities. So we manually add it here.
// See also: https://github.com/microsoft/vscode-languageserver-node/issues/1181
if (params.clientInfo?.name === 'Visual Studio Code' && !itemDefaults.includes('data')) {
if (params.clientInfo?.name?.includes('Visual Studio Code') && !itemDefaults.includes('data')) {
itemDefaults.push('data')
}