Merge from vscode cfc1ab4c5f816765b91fb7ead3c3427a7c8581a3

This commit is contained in:
ADS Merger
2020-03-11 04:19:23 +00:00
parent 16fab722d5
commit 4c3e48773d
880 changed files with 20441 additions and 11232 deletions

View File

@@ -81,7 +81,7 @@ export interface IWorkspaceFoldersChangeEvent {
}
export namespace IWorkspace {
export function isIWorkspace(thing: any): thing is IWorkspace {
export function isIWorkspace(thing: unknown): thing is IWorkspace {
return thing && typeof thing === 'object'
&& typeof (thing as IWorkspace).id === 'string'
&& Array.isArray((thing as IWorkspace).folders);
@@ -115,7 +115,7 @@ export interface IWorkspaceFolderData {
/**
* The name of this workspace folder. Defaults to
* the basename its [uri-path](#Uri.path)
* the basename of its [uri-path](#Uri.path)
*/
readonly name: string;
@@ -126,7 +126,7 @@ export interface IWorkspaceFolderData {
}
export namespace IWorkspaceFolder {
export function isIWorkspaceFolder(thing: any): thing is IWorkspaceFolder {
export function isIWorkspaceFolder(thing: unknown): thing is IWorkspaceFolder {
return thing && typeof thing === 'object'
&& URI.isUri((thing as IWorkspaceFolder).uri)
&& typeof (thing as IWorkspaceFolder).name === 'string'