Change:
I'm not sure if this is an issue in vscode, or typescript, or a DT package, but vscode is complaining about the "funding" field requiring 2 properties, which is incorrect (the other one is "type", and it's optional). <img width="440" alt="Screen Shot 2022-03-14 at 2 36 39 PM" src="https://user-"If this is the wrong place to file it, please point me to the right one :-) Thanks!
(happy to do the work to fix it, too, if someone can point me to where they're defined)
Most likely this is provided by SchemaStore and was just recently UPD. Documentation doesn't have any examples of objects only with field so it's unclear from docs if it's possible to omit field unless you check implementation (or do the implementation ). Maybe it make sense to have at least one object without field in npm docs?
Yes, this needs to be adopted in the SchemaStore. Marking as duplicate of
The docs are irrelevant; to document the types for something, you need to check the actual behavior. Thanks, I’ll follow it there.

Discussion:
*/ export var version: string; <ins> export const env: { /** * locale, like de-ch, en-us */ locale: string; /** * A unique UUID that identifies the machine */ machineId: string; /** * A unique UUID that identifies the session */ sessionId: string; } </ins> /** * Represents a reference to a command. Provides a title which * will be used to represent a command in the UI and, optionally,

import vscode = require('vscode'); import {TextEditorRevealType} from 'vs/workbench/api/node/mainThreadEditors'; import * as paths from 'vs/base/common/paths'; <ins> import {ITelemetryService} from 'vs/platform/telemetry/common/telemetry'; </ins> /** * This class implements the API described in vscode.d.ts,

private _threadService: IThreadService; private _proxy: MainProcessVSCodeAPIHelper; private _pluginService: IPluginService; <ins> private _telemetryService: ITelemetryService; </ins> version: typeof vscode.version; <ins> env: typeof vscode.env; </ins> Uri: typeof vscode.Uri; Location: typeof vscode.Location; Diagnostic: typeof vscode.Diagnostic;

constructor( @IThreadService threadService: IThreadService, @IPluginService pluginService: IPluginService, <del> @IWorkspaceContextService contextService: IWorkspaceContextService </del> <ins> @IWorkspaceContextService contextService: IWorkspaceContextService, @ITelemetryService telemetryService: ITelemetryService </ins> ) { this._pluginService = pluginService; this._threadService = threadService; <ins> this._telemetryService = telemetryService; </ins> this._proxy = threadService.getRemotable(MainProcessVSCodeAPIHelper); this.version = contextService.getConfiguration().env.version; <ins> this._telemetryService.getTelemetryInfo().then((info) => { this.env = { machineId: info.machineId, sessionId: info.sessionId, locale: null } }); </ins> this.Uri = URI; this.Location = extHostTypes.Location; this.Diagnostic = <any> extHostTypes.Diagnostic;

export function createServices(remoteCom: IPluginsIPC, initData: IInitData, sharedProcessClient: Client): IInstantiationService { // the init data is not demarshalled initData = marshalling.deserialize(initData); let contextService = new BaseWorkspaceContextService(initData.contextService.workspace, initData.contextService.configuration, initData.contextService.options); let threadService = new PluginHostThreadService(remoteCom); threadService.setInstantiationService(InstantiationService.create({ threadService: threadService })); <del> let telemetryServiceInstance = new ExtHostTelemetryService(threadService); let requestService = new BaseRequestService(contextService, telemetryServiceInstance); </del> <ins> let telemetryService = new ExtHostTelemetryService(threadService); let requestService = new BaseRequestService(contextService, telemetryService); </ins> let modelService = threadService.getRemotable(ExtHostModelService); let pluginService = new PluginHostPluginService(threadService);

threadService: threadService, modeService: modeService, pluginService: pluginService, <del> telemetryService: ExtHostTelemetryService </del> <ins> telemetryService: telemetryService </ins> }; let instantiationService = InstantiationService.create(_services); threadService.setInstantiationService(instantiationService);