Merge from vscode 7eaf220cafb9d9e901370ffce02229171cbf3ea6

This commit is contained in:
ADS Merger
2020-09-03 02:34:56 +00:00
committed by Anthony Dresser
parent 39d9eed585
commit a63578e6f7
519 changed files with 14338 additions and 6670 deletions

View File

@@ -82,9 +82,9 @@ export interface IWorkspaceFoldersChangeEvent {
export namespace IWorkspace {
export function isIWorkspace(thing: unknown): thing is IWorkspace {
return thing && typeof thing === 'object'
return !!(thing && typeof thing === 'object'
&& typeof (thing as IWorkspace).id === 'string'
&& Array.isArray((thing as IWorkspace).folders);
&& Array.isArray((thing as IWorkspace).folders));
}
}
@@ -127,10 +127,10 @@ export interface IWorkspaceFolderData {
export namespace IWorkspaceFolder {
export function isIWorkspaceFolder(thing: unknown): thing is IWorkspaceFolder {
return thing && typeof thing === 'object'
return !!(thing && typeof thing === 'object'
&& URI.isUri((thing as IWorkspaceFolder).uri)
&& typeof (thing as IWorkspaceFolder).name === 'string'
&& typeof (thing as IWorkspaceFolder).toResource === 'function';
&& typeof (thing as IWorkspaceFolder).toResource === 'function');
}
}