💄 bootstrap types

This commit is contained in:
Benjamin Pasero 2021-03-31 11:54:27 +02:00
parent 5ec2f69fb3
commit 65fbf884a8
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65
6 changed files with 7 additions and 7 deletions

View file

@ -28,7 +28,7 @@
/**
* @returns {{
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown) => unknown
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown) => Promise<unknown>
* }}
*/
function bootstrapWindowLib() {

View file

@ -66,7 +66,7 @@
/**
* @returns {{
* load: (modules: string[], resultCallback: (result, configuration: import('../../../platform/windows/common/windows').INativeWindowConfiguration) => unknown, options: object) => unknown,
* load: (modules: string[], resultCallback: (result, configuration: import('../../../platform/windows/common/windows').INativeWindowConfiguration) => unknown, options: object) => Promise<unknown>
* }}
*/
function bootstrapWindowLib() {

View file

@ -16,7 +16,7 @@
/**
* @returns {{
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown, options?: { forceEnableDeveloperKeybindings?: boolean, disallowReloadKeybinding?: boolean }) => unknown
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown, options?: { forceEnableDeveloperKeybindings?: boolean, disallowReloadKeybinding?: boolean }) => Promise<unknown>
* }}
*/
function bootstrapWindowLib() {

View file

@ -16,7 +16,7 @@
/**
* @returns {{
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown, options?: { forceEnableDeveloperKeybindings?: boolean }) => unknown
* load: (modules: string[], resultCallback: (result, configuration: import('../../../base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration) => unknown, options?: { forceEnableDeveloperKeybindings?: boolean }) => Promise<unknown>
* }}
*/
function bootstrapWindowLib() {

View file

@ -66,7 +66,7 @@
/**
* @returns {{
* load: (modules: string[], resultCallback: (result, configuration: import('../../../platform/windows/common/windows').INativeWindowConfiguration) => unknown, options: object) => unknown,
* load: (modules: string[], resultCallback: (result, configuration: import('../../../platform/windows/common/windows').INativeWindowConfiguration) => unknown, options: object) => Promise<unknown>
* }}
*/
function bootstrapWindowLib() {

View file

@ -871,8 +871,8 @@ export class CodeWindow extends Disposable implements ICodeWindow {
release: release()
};
// Developer tools
configuration.forceEnableDeveloperKeybindings = !!((process.env['VSCODE_DEV'] || !!configuration.extensionDevelopmentPath) && !configuration.extensionTestsPath);
// Force enable developer tools for extension development
configuration.forceEnableDeveloperKeybindings = Array.isArray(configuration.extensionDevelopmentPath);
// Store into config object URL
this.configObjectUrl.update(configuration);