提交 a65701ec 编写于 作者: B Benjamin Pasero

strict null

上级 774a6b0b
......@@ -1523,7 +1523,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
}
class EditorOpeningEvent implements IEditorOpeningEvent {
private override: () => Promise<IEditor | undefined> | undefined;
private override: (() => Promise<IEditor | undefined>) | undefined = undefined;
constructor(
private _group: GroupIdentifier,
......@@ -1548,7 +1548,7 @@ class EditorOpeningEvent implements IEditorOpeningEvent {
this.override = callback;
}
isPrevented(): () => Promise<IEditor | undefined> | undefined {
isPrevented(): (() => Promise<IEditor | undefined>) | undefined {
return this.override;
}
}
......
......@@ -739,7 +739,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
}
}
private mouseDownInfo: { lineNumber: number } | null;
private mouseDownInfo: { lineNumber: number } | null = null;
private onEditorMouseDown(e: IEditorMouseEvent): void {
this.mouseDownInfo = null;
......
......@@ -19,19 +19,19 @@ import product from 'vs/platform/product/common/product';
export class BrowserWindowConfiguration implements IWindowConfiguration {
_: any[];
_!: any[];
machineId: string;
windowId: number;
logLevel: LogLevel;
machineId!: string;
windowId!: number;
logLevel!: LogLevel;
mainPid: number;
mainPid!: number;
appRoot: string;
execPath: string;
appRoot!: string;
execPath!: string;
isInitialStartup?: boolean;
userEnv: IProcessEnvironment;
userEnv!: IProcessEnvironment;
nodeCachedDataDir?: string;
backupPath?: string;
......@@ -54,7 +54,7 @@ export class BrowserWindowConfiguration implements IWindowConfiguration {
perfStartTime?: number;
perfAppReady?: number;
perfWindowLoadTime?: number;
perfEntries: ExportData;
perfEntries!: ExportData;
filesToOpenOrCreate?: IPath[];
filesToDiff?: IPath[];
......@@ -133,14 +133,14 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment
untitledWorkspacesHome: URI;
extensionTestsLocationURI?: URI;
args: any;
execPath: string;
cliPath: string;
execPath!: string;
cliPath!: string;
appRoot: string;
userHome: string;
userDataPath: string;
userHome!: string;
userDataPath!: string;
appNameLong: string;
appQuality?: string;
appSettingsHome: URI;
appSettingsHome!: URI;
userRoamingDataHome: URI;
settingsResource: URI;
keybindingsResource: URI;
......@@ -148,37 +148,37 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment
argvResource: URI;
settingsSyncPreviewResource: URI;
userDataSyncLogResource: URI;
machineSettingsHome: URI;
machineSettingsResource: URI;
globalStorageHome: string;
workspaceStorageHome: string;
machineSettingsHome!: URI;
machineSettingsResource!: URI;
globalStorageHome!: string;
workspaceStorageHome!: string;
backupHome: URI;
backupWorkspacesPath: string;
workspacesHome: string;
isExtensionDevelopment: boolean;
disableExtensions: boolean | string[];
builtinExtensionsPath: string;
backupWorkspacesPath!: string;
workspacesHome!: string;
isExtensionDevelopment!: boolean;
disableExtensions!: boolean | string[];
builtinExtensionsPath!: string;
extensionsPath?: string;
extensionDevelopmentLocationURI?: URI[];
extensionTestsPath?: string;
debugExtensionHost: IExtensionHostDebugParams;
debugSearch: IDebugParams;
logExtensionHostCommunication: boolean;
isBuilt: boolean;
wait: boolean;
status: boolean;
debugSearch!: IDebugParams;
logExtensionHostCommunication!: boolean;
isBuilt!: boolean;
wait!: boolean;
status!: boolean;
log?: string;
logsPath: string;
verbose: boolean;
skipReleaseNotes: boolean;
mainIPCHandle: string;
sharedIPCHandle: string;
verbose!: boolean;
skipReleaseNotes!: boolean;
mainIPCHandle!: string;
sharedIPCHandle!: string;
nodeCachedDataDir?: string;
installSourcePath: string;
disableUpdates: boolean;
disableCrashReporter: boolean;
installSourcePath!: string;
disableUpdates!: boolean;
disableCrashReporter!: boolean;
driverHandle?: string;
driverVerbose: boolean;
driverVerbose!: boolean;
galleryMachineIdResource?: URI;
readonly logFile: URI;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册