@vscode/base-node
Advanced tools
Comparing version 1.29.1-2 to 1.29.1-3
{ | ||
"name": "@vscode/base-node", | ||
"private": false, | ||
"version": "1.29.1-2", | ||
"version": "1.29.1-3", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "access": "public" |
@@ -14,3 +14,3 @@ /** | ||
* @see CommandLineToArgvW https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx | ||
* @see Parsing C++ Command-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx | ||
* @see Parsing C++ Comamnd-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx | ||
* @see GetCommandLine https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156.aspx | ||
@@ -62,3 +62,3 @@ */ | ||
* Resizes the dimensions of the pty. | ||
* @param columns The number of columns to use. | ||
* @param columns THe number of columns to use. | ||
* @param rows The number of rows to use. | ||
@@ -65,0 +65,0 @@ */ |
@@ -34,15 +34,5 @@ declare module 'v8-inspect-profiler' { | ||
export interface Target { | ||
description: string, | ||
devtoolsFrontendUrl: string, | ||
id: string, | ||
title: string, | ||
type: string, | ||
url: string, | ||
webSocketDebuggerUrl: string | ||
} | ||
export function startProfiling(options: { port: number, tries?: number, retyWait?: number, target?: (targets: Target[]) => Target }): PromiseLike<ProfilingSession>; | ||
export function startProfiling(options: { port: number, tries?: number, retyWait?: number }): PromiseLike<ProfilingSession>; | ||
export function writeProfile(profile: ProfileResult, name?: string): PromiseLike<void>; | ||
export function rewriteAbsolutePaths(profile: ProfileResult, replaceWith?: string): ProfileResult; | ||
export function rewriteAbsolutePaths(profile, replaceWith?); | ||
} |
@@ -10,3 +10,3 @@ import { CancellationToken } from 'vs/base/common/cancellation'; | ||
export declare function tail2<T>(arr: T[]): [T[], T]; | ||
export declare function equals<T>(one: ReadonlyArray<T> | undefined, other: ReadonlyArray<T> | undefined, itemEquals?: (a: T, b: T) => boolean): boolean; | ||
export declare function equals<T>(one: ReadonlyArray<T>, other: ReadonlyArray<T>, itemEquals?: (a: T, b: T) => boolean): boolean; | ||
export declare function binarySearch<T>(array: T[], key: T, comparator: (op1: T, op2: T) => number): number; | ||
@@ -84,6 +84,2 @@ /** | ||
/** | ||
* @returns {{true}} if the provided object is an array and has at least one element. | ||
*/ | ||
export declare function isNonEmptyArray<T>(obj: ReadonlyArray<T> | undefined | null): obj is Array<T>; | ||
/** | ||
* Removes duplicates from the given array. The optional keyFn allows to specify | ||
@@ -90,0 +86,0 @@ * how elements are checked for equalness by returning a unique string for each. |
@@ -472,9 +472,2 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/** | ||
* @returns {{true}} if the provided object is an array and has at least one element. | ||
*/ | ||
function isNonEmptyArray(obj) { | ||
return Array.isArray(obj) && obj.length > 0; | ||
} | ||
exports.isNonEmptyArray = isNonEmptyArray; | ||
/** | ||
* Removes duplicates from the given array. The optional keyFn allows to specify | ||
@@ -481,0 +474,0 @@ * how elements are checked for equalness by returning a unique string for each. |
@@ -113,3 +113,3 @@ import { CancellationToken } from 'vs/base/common/cancellation'; | ||
open(): void; | ||
wait(): Promise<boolean>; | ||
wait(): TPromise<boolean>; | ||
} | ||
@@ -116,0 +116,0 @@ /** |
@@ -364,3 +364,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
this._isOpen = false; | ||
this._promise = new Promise(function (c, e) { | ||
this._promise = new winjs_base_1.TPromise(function (c, e) { | ||
_this._completePromise = c; | ||
@@ -721,3 +721,3 @@ }); | ||
} | ||
return new Promise(function (resolve, reject) { return fn.call.apply(fn, [thisArg].concat(args, [function (err, result) { return err ? reject(err) : resolve(result); }])); }); | ||
return new winjs_base_1.TPromise(function (c, e) { return fn.call.apply(fn, [thisArg].concat(args, [function (err, result) { return err ? e(err) : c(result); }])); }); | ||
} | ||
@@ -724,0 +724,0 @@ exports.ninvoke = ninvoke; |
@@ -19,5 +19,3 @@ import { IDisposable } from 'vs/base/common/lifecycle'; | ||
onLastListenerRemove?: Function; | ||
leakWarningThreshold?: number; | ||
} | ||
export declare function setGlobalLeakWarningThreshold(n: number): IDisposable; | ||
/** | ||
@@ -45,10 +43,9 @@ * The Emitter can be used to expose an Event to the public | ||
export declare class Emitter<T> { | ||
private _options; | ||
private static readonly _noop; | ||
private readonly _options; | ||
private readonly _leakageMon; | ||
private _event; | ||
private _disposed; | ||
private _event; | ||
private _deliveryQueue; | ||
protected _listeners: LinkedList<Listener> | undefined; | ||
constructor(options?: EmitterOptions); | ||
protected _listeners: LinkedList<Listener> | null; | ||
constructor(_options?: EmitterOptions | null); | ||
/** | ||
@@ -88,2 +85,3 @@ * For the public to allow to subscribe | ||
export declare function toPromise<T>(event: Event<T>): Thenable<T>; | ||
export declare function toNativePromise<T>(event: Event<T>): Thenable<T>; | ||
export declare function once<T>(event: Event<T>): Event<T>; | ||
@@ -90,0 +88,0 @@ export declare function anyEvent<T>(...events: Event<T>[]): Event<T>; |
@@ -89,2 +89,9 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/***/ 11: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./winjs.base"); | ||
/***/ }), | ||
/***/ 2: | ||
@@ -152,3 +159,3 @@ /***/ (function(module, exports) { | ||
}; | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(7), __webpack_require__(34), __webpack_require__(2), __webpack_require__(35)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors_1, functional_1, lifecycle_1, linkedList_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(7), __webpack_require__(34), __webpack_require__(2), __webpack_require__(35), __webpack_require__(11)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors_1, functional_1, lifecycle_1, linkedList_1, winjs_base_1) { | ||
"use strict"; | ||
@@ -161,58 +168,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
})(Event = exports.Event || (exports.Event = {})); | ||
var _globalLeakWarningThreshold = -1; | ||
function setGlobalLeakWarningThreshold(n) { | ||
var oldValue = _globalLeakWarningThreshold; | ||
_globalLeakWarningThreshold = n; | ||
return { | ||
dispose: function () { | ||
_globalLeakWarningThreshold = oldValue; | ||
} | ||
}; | ||
} | ||
exports.setGlobalLeakWarningThreshold = setGlobalLeakWarningThreshold; | ||
var LeakageMonitor = /** @class */ (function () { | ||
function LeakageMonitor(customThreshold, name) { | ||
if (name === void 0) { name = Math.random().toString(18).slice(2, 5); } | ||
this.customThreshold = customThreshold; | ||
this.name = name; | ||
this._warnCountdown = 0; | ||
} | ||
LeakageMonitor.prototype.dispose = function () { | ||
if (this._stacks) { | ||
this._stacks.clear(); | ||
} | ||
}; | ||
LeakageMonitor.prototype.check = function (listenerCount) { | ||
var threshold = _globalLeakWarningThreshold; | ||
if (typeof this.customThreshold === 'number') { | ||
threshold = this.customThreshold; | ||
} | ||
if (threshold > 1 && threshold < listenerCount) { | ||
if (!this._stacks) { | ||
this._stacks = new Map(); | ||
} | ||
var stack = new Error().stack.split('\n').slice(3).join('\n'); | ||
var count = (this._stacks.get(stack) || 0) + 1; | ||
this._stacks.set(stack, count); | ||
this._warnCountdown -= 1; | ||
if (this._warnCountdown <= 0) { | ||
// only warn on first exceed and then every time the limit | ||
// is exceeded by 50% again | ||
this._warnCountdown = threshold * .5; | ||
// find most frequent listener and print warning | ||
var topStack_1; | ||
var topCount_1 = 0; | ||
this._stacks.forEach(function (count, stack) { | ||
if (!topStack_1 || topCount_1 < count) { | ||
topStack_1 = stack; | ||
topCount_1 = count; | ||
} | ||
}); | ||
console.warn("[" + this.name + "] potential listener LEAK detected, having " + listenerCount + " listeners already. MOST frequent listener (" + topCount_1 + "):"); | ||
console.warn(topStack_1); | ||
} | ||
} | ||
}; | ||
return LeakageMonitor; | ||
}()); | ||
/** | ||
@@ -240,6 +191,9 @@ * The Emitter can be used to expose an Event to the public | ||
var Emitter = /** @class */ (function () { | ||
function Emitter(options) { | ||
function Emitter(_options) { | ||
if (_options === void 0) { _options = null; } | ||
this._options = _options; | ||
this._event = null; | ||
this._disposed = false; | ||
this._options = options; | ||
this._leakageMon = new LeakageMonitor(this._options && this._options.leakWarningThreshold); | ||
this._deliveryQueue = null; | ||
this._listeners = null; | ||
} | ||
@@ -269,4 +223,2 @@ Object.defineProperty(Emitter.prototype, "event", { | ||
} | ||
// check and record this emitter for potential leakage | ||
_this._leakageMon.check(_this._listeners.size); | ||
var result; | ||
@@ -331,3 +283,3 @@ result = { | ||
if (this._listeners) { | ||
this._listeners = undefined; | ||
this._listeners = null; | ||
} | ||
@@ -337,3 +289,2 @@ if (this._deliveryQueue) { | ||
} | ||
this._leakageMon.dispose(); | ||
this._disposed = true; | ||
@@ -477,5 +428,9 @@ }; | ||
function toPromise(event) { | ||
return new winjs_base_1.TPromise(function (c) { return once(event)(c); }); | ||
} | ||
exports.toPromise = toPromise; | ||
function toNativePromise(event) { | ||
return new Promise(function (c) { return once(event)(c); }); | ||
} | ||
exports.toPromise = toPromise; | ||
exports.toNativePromise = toNativePromise; | ||
function once(event) { | ||
@@ -482,0 +437,0 @@ return function (listener, thisArgs, disposables) { |
@@ -0,1 +1,2 @@ | ||
import { TPromise } from 'vs/base/common/winjs.base'; | ||
export interface IExpression { | ||
@@ -15,3 +16,3 @@ [pattern: string]: boolean | SiblingClause | any; | ||
export declare type ParsedPattern = (path: string, basename?: string) => boolean; | ||
export declare type ParsedExpression = (path: string, basename?: string, hasSibling?: (name: string) => boolean | Promise<boolean>) => string | null | Promise<string | null>; | ||
export declare type ParsedExpression = (path: string, basename?: string, hasSibling?: (name: string) => boolean | TPromise<boolean>) => string | null | TPromise<string | null>; | ||
export interface IGlobOptions { | ||
@@ -43,3 +44,3 @@ /** | ||
export declare function parse(expression: IExpression, options?: IGlobOptions): ParsedExpression; | ||
export declare function hasSiblingPromiseFn(siblingsFn?: () => Promise<string[]>): (name: string) => Promise<boolean>; | ||
export declare function hasSiblingPromiseFn(siblingsFn?: () => TPromise<string[]>): (name: string) => TPromise<boolean>; | ||
export declare function hasSiblingFn(siblingsFn?: () => string[]): (name: string) => boolean; | ||
@@ -46,0 +47,0 @@ export declare function isRelativePattern(obj: any): obj is IRelativePattern; |
@@ -89,2 +89,9 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/***/ 11: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./winjs.base"); | ||
/***/ }), | ||
/***/ 13: | ||
@@ -132,3 +139,3 @@ /***/ (function(module, exports) { | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(30), __webpack_require__(19), __webpack_require__(20), __webpack_require__(37), __webpack_require__(13)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, arrays, strings, paths, map_1, async_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(30), __webpack_require__(19), __webpack_require__(20), __webpack_require__(37), __webpack_require__(11), __webpack_require__(13)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, arrays, strings, paths, map_1, winjs_base_1, async_1) { | ||
"use strict"; | ||
@@ -492,3 +499,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (!siblings) { | ||
siblings = (siblingsFn() || Promise.resolve([])) | ||
siblings = (siblingsFn() || winjs_base_1.TPromise.as([])) | ||
.then(function (list) { return list ? listToMap(list) : {}; }); | ||
@@ -534,3 +541,3 @@ } | ||
var result = parsedExpression(path, basename, hasSibling); | ||
return async_1.isThenable(result) ? result : Promise.resolve(result); | ||
return result instanceof winjs_base_1.TPromise ? result : winjs_base_1.TPromise.as(result); | ||
}; | ||
@@ -537,0 +544,0 @@ } |
@@ -1,8 +0,4 @@ | ||
import { UriComponents } from 'vs/base/common/uri'; | ||
export interface IMarkdownString { | ||
value: string; | ||
isTrusted?: boolean; | ||
uris?: { | ||
[href: string]: UriComponents; | ||
}; | ||
} | ||
@@ -12,3 +8,2 @@ export declare class MarkdownString implements IMarkdownString { | ||
isTrusted?: boolean; | ||
sanitize: boolean; | ||
constructor(value?: string); | ||
@@ -15,0 +10,0 @@ appendText(value: string): MarkdownString; |
@@ -109,3 +109,2 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
if (value === void 0) { value = ''; } | ||
this.sanitize = true; | ||
this.value = value; | ||
@@ -112,0 +111,0 @@ } |
@@ -92,8 +92,12 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
"use strict"; | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -100,0 +104,0 @@ var ScanError; |
@@ -5,4 +5,2 @@ import { Iterator } from 'vs/base/common/iterator'; | ||
private _last; | ||
private _size; | ||
readonly size: number; | ||
isEmpty(): boolean; | ||
@@ -9,0 +7,0 @@ clear(): void; |
@@ -114,11 +114,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
function LinkedList() { | ||
this._size = 0; | ||
} | ||
Object.defineProperty(LinkedList.prototype, "size", { | ||
get: function () { | ||
return this._size; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
LinkedList.prototype.isEmpty = function () { | ||
@@ -158,3 +150,2 @@ return !this._first; | ||
} | ||
this._size += 1; | ||
return function () { | ||
@@ -189,3 +180,2 @@ var candidate = _this._first; | ||
// done | ||
_this._size -= 1; | ||
break; | ||
@@ -192,0 +182,0 @@ } |
@@ -722,3 +722,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
ResourceMap.prototype.keys = function () { | ||
return keys(this.map).map(function (k) { return uri_1.URI.parse(k); }); | ||
return keys(this.map).map(uri_1.URI.parse); | ||
}; | ||
@@ -725,0 +725,0 @@ ResourceMap.prototype.clone = function () { |
@@ -24,3 +24,3 @@ export declare const MIME_TEXT = "text/plain"; | ||
*/ | ||
export declare function guessMimeTypes(path: string, firstLine?: string, skipUserAssociations?: boolean): string[]; | ||
export declare function guessMimeTypes(path: string, firstLine?: string): string[]; | ||
export declare function isUnspecific(mime: string[] | string): boolean; | ||
@@ -27,0 +27,0 @@ /** |
@@ -195,4 +195,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
*/ | ||
function guessMimeTypes(path, firstLine, skipUserAssociations) { | ||
if (skipUserAssociations === void 0) { skipUserAssociations = false; } | ||
function guessMimeTypes(path, firstLine) { | ||
if (!path) { | ||
@@ -203,8 +202,6 @@ return [exports.MIME_UNKNOWN]; | ||
var filename = paths.basename(path); | ||
if (!skipUserAssociations) { | ||
// 1.) User configured mappings have highest priority | ||
var configuredMime = guessMimeTypeByPath(path, filename, userRegisteredAssociations); | ||
if (configuredMime) { | ||
return [configuredMime, exports.MIME_TEXT]; | ||
} | ||
// 1.) User configured mappings have highest priority | ||
var configuredMime = guessMimeTypeByPath(path, filename, userRegisteredAssociations); | ||
if (configuredMime) { | ||
return [configuredMime, exports.MIME_TEXT]; | ||
} | ||
@@ -211,0 +208,0 @@ // 2.) Registered mappings have middle priority |
@@ -24,3 +24,2 @@ export declare function deepClone<T>(obj: T): T; | ||
export declare function getOrDefault<T, R>(obj: T, fn: (obj: T) => R, defaultValue?: R | null): R | null; | ||
export declare function getOrDefault2<T, R>(obj: T, fn: (obj: T) => R | undefined, defaultValue: R): R; | ||
declare type obj = { | ||
@@ -27,0 +26,0 @@ [key: string]: any; |
@@ -327,7 +327,2 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
exports.getOrDefault = getOrDefault; | ||
function getOrDefault2(obj, fn, defaultValue) { | ||
var result = fn(obj); | ||
return typeof result === 'undefined' ? defaultValue : result; | ||
} | ||
exports.getOrDefault2 = getOrDefault2; | ||
/** | ||
@@ -334,0 +329,0 @@ * Returns an object that has keys for each value that is different in the base object. Keys |
@@ -24,4 +24,2 @@ /** | ||
export declare function extname(path: string): string; | ||
export declare function normalize(path: undefined, toOSPath?: boolean): undefined; | ||
export declare function normalize(path: null, toOSPath?: boolean): null; | ||
export declare function normalize(path: string, toOSPath?: boolean): string; | ||
@@ -43,3 +41,3 @@ /** | ||
export declare function isUNC(path: string): boolean; | ||
export declare function isValidBasename(name: string | null | undefined): boolean; | ||
export declare function isValidBasename(name: string): boolean; | ||
export declare function isEqual(pathA: string, pathB: string, ignoreCase?: boolean): boolean; | ||
@@ -46,0 +44,0 @@ export declare function isEqualOrParent(path: string, candidate: string, ignoreCase?: boolean, separator?: string): boolean; |
import { URI } from 'vs/base/common/uri'; | ||
export declare function getComparisonKey(resource: URI): string; | ||
export declare function hasToIgnoreCase(resource: URI | undefined): boolean; | ||
export declare function hasToIgnoreCase(resource: URI): boolean; | ||
export declare function basenameOrAuthority(resource: URI): string; | ||
@@ -11,3 +11,3 @@ /** | ||
export declare function isEqualOrParent(base: URI, parentCandidate: URI, ignoreCase?: boolean): boolean; | ||
export declare function isEqual(first: URI | undefined, second: URI | undefined, ignoreCase?: boolean): boolean; | ||
export declare function isEqual(first: URI, second: URI, ignoreCase?: boolean): boolean; | ||
export declare function basename(resource: URI): string; | ||
@@ -14,0 +14,0 @@ /** |
@@ -5,3 +5,3 @@ /** | ||
export declare const empty = ""; | ||
export declare function isFalsyOrWhitespace(str: string | undefined): boolean; | ||
export declare function isFalsyOrWhitespace(str: string): boolean; | ||
/** | ||
@@ -32,3 +32,3 @@ * @returns the provided number with the given number of preceding zeros. | ||
*/ | ||
export declare function trim(haystack: string, needle?: string): string; | ||
export declare function trim(haystack: string, needle?: string): string | undefined; | ||
/** | ||
@@ -35,0 +35,0 @@ * Removes all occurrences of needle from the beginning of haystack. |
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
protected constructor(scheme: string, authority?: string, path?: string, query?: string, fragment?: string, _strict?: boolean); | ||
protected constructor(scheme: string, authority?: string, path?: string, query?: string, fragment?: string); | ||
/** | ||
@@ -90,3 +90,3 @@ * @internal | ||
*/ | ||
static parse(value: string, _strict?: boolean): URI; | ||
static parse(value: string): URI; | ||
/** | ||
@@ -93,0 +93,0 @@ * Creates a new URI from a file system path, e.g. `c:\my\files`, |
@@ -133,6 +133,6 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
exports.setUriThrowOnMissingScheme = setUriThrowOnMissingScheme; | ||
function _validateUri(ret, _strict) { | ||
function _validateUri(ret) { | ||
// scheme, must be set | ||
if (!ret.scheme) { | ||
if (_strict || _throwOnMissingSchema) { | ||
if (_throwOnMissingSchema) { | ||
throw new Error("[UriError]: Scheme is missing: {scheme: \"\", authority: \"" + ret.authority + "\", path: \"" + ret.path + "\", query: \"" + ret.query + "\", fragment: \"" + ret.fragment + "\"}"); | ||
@@ -208,3 +208,3 @@ } | ||
*/ | ||
function URI(schemeOrData, authority, path, query, fragment, _strict) { | ||
function URI(schemeOrData, authority, path, query, fragment) { | ||
if (typeof schemeOrData === 'object') { | ||
@@ -226,3 +226,3 @@ this.scheme = schemeOrData.scheme || _empty; | ||
this.fragment = fragment || _empty; | ||
_validateUri(this, _strict); | ||
_validateUri(this); | ||
} | ||
@@ -330,4 +330,3 @@ } | ||
*/ | ||
URI.parse = function (value, _strict) { | ||
if (_strict === void 0) { _strict = false; } | ||
URI.parse = function (value) { | ||
var match = _regexp.exec(value); | ||
@@ -337,3 +336,3 @@ if (!match) { | ||
} | ||
return new _URI(match[2] || _empty, decodeURIComponent(match[4] || _empty), decodeURIComponent(match[5] || _empty), decodeURIComponent(match[7] || _empty), decodeURIComponent(match[9] || _empty), _strict); | ||
return new _URI(match[2] || _empty, decodeURIComponent(match[4] || _empty), decodeURIComponent(match[5] || _empty), decodeURIComponent(match[7] || _empty), decodeURIComponent(match[9] || _empty)); | ||
}; | ||
@@ -340,0 +339,0 @@ /** |
@@ -5,4 +5,3 @@ import { URI, UriComponents } from 'vs/base/common/uri'; | ||
transformOutgoing(uri: URI): URI; | ||
transformOutgoing(uri: UriComponents): UriComponents; | ||
} | ||
export declare const DefaultURITransformer: IURITransformer; |
@@ -99,13 +99,6 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultURITransformer = new /** @class */ (function () { | ||
function class_1() { | ||
} | ||
class_1.prototype.transformIncoming = function (uri) { | ||
return uri; | ||
}; | ||
class_1.prototype.transformOutgoing = function (uri) { | ||
return uri; | ||
}; | ||
return class_1; | ||
}()); | ||
exports.DefaultURITransformer = { | ||
transformIncoming: function (uri) { return uri; }, | ||
transformOutgoing: function (uri) { return uri; }, | ||
}; | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
@@ -112,0 +105,0 @@ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); |
@@ -109,11 +109,5 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
})(); | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(93), __webpack_require__(94), __webpack_require__(95), __webpack_require__(96)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors_1, lifecycle_1, platform_1, winjs_polyfill_promise_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(93), __webpack_require__(94), __webpack_require__(95)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors_1, lifecycle_1, platform_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var global = self; | ||
// When missing, polyfill the native promise | ||
// with our winjs-based polyfill | ||
if (typeof global.Promise === 'undefined') { | ||
global.Promise = winjs_polyfill_promise_1.PolyfillPromise; | ||
} | ||
var INITIALIZE = '$initialize'; | ||
@@ -432,11 +426,4 @@ var webWorkerWarningLogged = false; | ||
/***/ }), | ||
/***/ 96: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../winjs.polyfill.promise"); | ||
/***/ }) | ||
/******/ }))); |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 97); | ||
/******/ return __webpack_require__(__webpack_require__.s = 96); | ||
/******/ }) | ||
@@ -93,3 +93,3 @@ /************************************************************************/ | ||
module.exports = require("path"); | ||
module.exports = require("./../common/objects"); | ||
@@ -101,3 +101,3 @@ /***/ }), | ||
module.exports = require("./../common/objects"); | ||
module.exports = require("./../common/event"); | ||
@@ -109,3 +109,3 @@ /***/ }), | ||
module.exports = require("./../common/event"); | ||
module.exports = require("./../common/json"); | ||
@@ -117,3 +117,3 @@ /***/ }), | ||
module.exports = require("./../common/json"); | ||
module.exports = require("./extfs"); | ||
@@ -125,9 +125,2 @@ /***/ }), | ||
module.exports = require("./extfs"); | ||
/***/ }), | ||
/***/ 105: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/platform"); | ||
@@ -137,3 +130,3 @@ | ||
/***/ 97: | ||
/***/ 96: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -145,3 +138,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99), __webpack_require__(100), __webpack_require__(101), __webpack_require__(98), __webpack_require__(102), __webpack_require__(103), __webpack_require__(104), __webpack_require__(105)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, path_1, objects, lifecycle_1, event_1, json, extfs, platform_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98), __webpack_require__(99), __webpack_require__(100), __webpack_require__(97), __webpack_require__(101), __webpack_require__(102), __webpack_require__(103), __webpack_require__(104)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, path_1, objects, lifecycle_1, event_1, json, extfs, platform_1) { | ||
"use strict"; | ||
@@ -323,3 +316,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 98: | ||
/***/ 97: | ||
/***/ (function(module, exports) { | ||
@@ -331,3 +324,3 @@ | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -337,4 +330,11 @@ | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }) | ||
/******/ }))); |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 106); | ||
/******/ return __webpack_require__(__webpack_require__.s = 105); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 106: | ||
/***/ 105: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,3 +98,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(107)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, uri_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(106)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, uri_1) { | ||
"use strict"; | ||
@@ -206,3 +206,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 107: | ||
/***/ 106: | ||
/***/ (function(module, exports) { | ||
@@ -209,0 +209,0 @@ |
@@ -1,1 +0,2 @@ | ||
export declare function checksum(path: string, sha1hash: string): Promise<void>; | ||
import { TPromise } from 'vs/base/common/winjs.base'; | ||
export declare function checksum(path: string, sha1hash: string): TPromise<void>; |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 108); | ||
/******/ return __webpack_require__(__webpack_require__.s = 107); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 108: | ||
/***/ 107: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,7 +98,7 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99), __webpack_require__(109), __webpack_require__(110)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, crypto, functional_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98), __webpack_require__(108), __webpack_require__(109), __webpack_require__(110)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, crypto, winjs_base_1, functional_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function checksum(path, sha1hash) { | ||
var promise = new Promise(function (c, e) { | ||
var promise = new winjs_base_1.TPromise(function (c, e) { | ||
var input = fs.createReadStream(path); | ||
@@ -125,5 +125,5 @@ var hash = crypto.createHash('sha1'); | ||
if (hash !== sha1hash) { | ||
return Promise.reject(new Error('Hash mismatch')); | ||
return winjs_base_1.TPromise.wrapError(new Error('Hash mismatch')); | ||
} | ||
return Promise.resolve(); | ||
return winjs_base_1.TPromise.as(void 0); | ||
}); | ||
@@ -138,3 +138,3 @@ } | ||
/***/ 109: | ||
/***/ 108: | ||
/***/ (function(module, exports) { | ||
@@ -146,2 +146,9 @@ | ||
/***/ 109: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/winjs.base"); | ||
/***/ }), | ||
/***/ 110: | ||
@@ -154,3 +161,3 @@ /***/ (function(module, exports) { | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -157,0 +164,0 @@ |
@@ -11,3 +11,3 @@ /// <reference types="node" /> | ||
minBytesRequiredForDetection?: number; | ||
overwriteEncoding?(detectedEncoding: string | null): string; | ||
overwriteEncoding?(detectedEncoding: string): string; | ||
} | ||
@@ -24,7 +24,7 @@ export declare function toDecodeStream(readable: Readable, options: IDecodeStreamOptions): Promise<{ | ||
export declare function encodingExists(encoding: string): boolean; | ||
export declare function decodeStream(encoding: string | null): NodeJS.ReadWriteStream; | ||
export declare function decodeStream(encoding: string): NodeJS.ReadWriteStream; | ||
export declare function encodeStream(encoding: string, options?: { | ||
addBOM?: boolean; | ||
}): NodeJS.ReadWriteStream; | ||
export declare function detectEncodingByBOMFromBuffer(buffer: Buffer | null, bytesRead: number): string | null; | ||
export declare function detectEncodingByBOMFromBuffer(buffer: Buffer, bytesRead: number): string | null; | ||
/** | ||
@@ -34,7 +34,7 @@ * Detects the Byte Order Mark in a given file. | ||
*/ | ||
export declare function detectEncodingByBOM(file: string): Promise<string | null>; | ||
export declare function detectEncodingByBOM(file: string): Promise<string>; | ||
/** | ||
* Guesses the encoding from buffer. | ||
*/ | ||
export declare function guessEncodingByBuffer(buffer: Buffer): Promise<string | null>; | ||
export declare function guessEncodingByBuffer(buffer: Buffer): Promise<string>; | ||
/** | ||
@@ -47,3 +47,3 @@ * The encodings that are allowed in a settings file don't match the canonical encoding labels specified by WHATWG. | ||
export interface IDetectedEncodingResult { | ||
encoding: string | null; | ||
encoding: string; | ||
seemsBinary: boolean; | ||
@@ -50,0 +50,0 @@ } |
@@ -102,3 +102,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/***/ 105: | ||
/***/ 104: | ||
/***/ (function(module, exports) { | ||
@@ -130,3 +130,3 @@ | ||
})(); | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(114), __webpack_require__(115), __webpack_require__(105), __webpack_require__(116), __webpack_require__(117)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, stream, iconv, platform_1, child_process_1, stream_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(114), __webpack_require__(115), __webpack_require__(104), __webpack_require__(116), __webpack_require__(117)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, stream, iconv, platform_1, child_process_1, stream_1) { | ||
"use strict"; | ||
@@ -185,5 +185,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}, options.guessEncoding)).then(function (detected) { | ||
if (options.overwriteEncoding) { | ||
detected.encoding = options.overwriteEncoding(detected.encoding); | ||
} | ||
detected.encoding = options.overwriteEncoding(detected.encoding); | ||
_this._decodeStream = decodeStream(detected.encoding); | ||
@@ -249,3 +247,3 @@ for (var _i = 0, _a = _this._buffer; _i < _a.length; _i++) { | ||
function toNodeEncoding(enc) { | ||
if (enc === exports.UTF8_with_bom || enc === null) { | ||
if (enc === exports.UTF8_with_bom) { | ||
return exports.UTF8; // iconv does not distinguish UTF 8 with or without BOM, so we need to help it | ||
@@ -297,3 +295,3 @@ } | ||
function guessEncodingByBuffer(buffer) { | ||
return new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(152)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }).then(function (jschardet) { | ||
return new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(151)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }).then(function (jschardet) { | ||
jschardet.Constants.MINIMUM_THRESHOLD = MINIMUM_THRESHOLD; | ||
@@ -369,3 +367,3 @@ var guessed = jschardet.detect(buffer); | ||
var seemsBinary = false; | ||
if (encoding !== exports.UTF16be && encoding !== exports.UTF16le && buffer) { | ||
if (encoding !== exports.UTF16be && encoding !== exports.UTF16le) { | ||
var couldBeUTF16LE = true; // e.g. 0xAA 0x00 | ||
@@ -413,3 +411,3 @@ var couldBeUTF16BE = true; // e.g. 0x00 0xAA | ||
// Auto guess encoding if configured | ||
if (autoGuessEncoding && !seemsBinary && !encoding && buffer) { | ||
if (autoGuessEncoding && !seemsBinary && !encoding) { | ||
return guessEncodingByBuffer(buffer.slice(0, bytesRead)).then(function (guessedEncoding) { | ||
@@ -532,3 +530,3 @@ return { | ||
/***/ 152: | ||
/***/ 151: | ||
/***/ (function(module, exports) { | ||
@@ -535,0 +533,0 @@ |
@@ -7,3 +7,3 @@ /// <reference types="node" /> | ||
export declare function readdirSync(path: string): string[]; | ||
export declare function readdir(path: string, callback: (error: Error | null, files: string[]) => void): void; | ||
export declare function readdir(path: string, callback: (error: Error, files: string[]) => void): void; | ||
export interface IStatAndLink { | ||
@@ -13,10 +13,10 @@ stat: fs.Stats; | ||
} | ||
export declare function statLink(path: string, callback: (error: Error | null, statAndIsLink: IStatAndLink | null) => void): void; | ||
export declare function copy(source: string, target: string, callback: (error: Error | null) => void, copiedSourcesIn?: { | ||
export declare function statLink(path: string, callback: (error: Error, statAndIsLink: IStatAndLink) => void): void; | ||
export declare function copy(source: string, target: string, callback: (error: Error) => void, copiedSources?: { | ||
[path: string]: boolean; | ||
}): void; | ||
export declare function mkdirp(path: string, mode?: number, token?: CancellationToken): TPromise<boolean>; | ||
export declare function del(path: string, tmpFolder: string, callback: (error: Error | null) => void, done?: (error: Error | null) => void): void; | ||
export declare function del(path: string, tmpFolder: string, callback: (error: Error) => void, done?: (error: Error) => void): void; | ||
export declare function delSync(path: string): void; | ||
export declare function mv(source: string, target: string, callback: (error: Error | null) => void): void; | ||
export declare function mv(source: string, target: string, callback: (error: Error) => void): void; | ||
export interface IWriteFileOptions { | ||
@@ -41,6 +41,6 @@ mode?: number; | ||
*/ | ||
export declare function realcaseSync(path: string): string | null; | ||
export declare function realcaseSync(path: string): string; | ||
export declare function realpathSync(path: string): string; | ||
export declare function realpath(path: string, callback: (error: Error | null, realpath: string) => void): void; | ||
export declare function realpath(path: string, callback: (error: Error, realpath: string) => void): void; | ||
export declare function watch(path: string, onChange: (type: string, path?: string) => void, onError: (error: string) => void): IDisposable; | ||
export declare function sanitizeFilePath(candidate: string, cwd: string): string; |
@@ -89,13 +89,13 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/***/ 100: | ||
/***/ 104: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
module.exports = require("./../common/platform"); | ||
/***/ }), | ||
/***/ 105: | ||
/***/ 109: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/platform"); | ||
module.exports = require("./../common/winjs.base"); | ||
@@ -111,3 +111,3 @@ /***/ }), | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99), __webpack_require__(100), __webpack_require__(120), __webpack_require__(121), __webpack_require__(105), __webpack_require__(119), __webpack_require__(122), __webpack_require__(123), __webpack_require__(124), __webpack_require__(98), __webpack_require__(125)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, paths, async_1, normalization_1, platform, strings, uuid, encoding_1, flow, lifecycle_1, winjs_base_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98), __webpack_require__(99), __webpack_require__(120), __webpack_require__(121), __webpack_require__(104), __webpack_require__(119), __webpack_require__(122), __webpack_require__(123), __webpack_require__(124), __webpack_require__(97), __webpack_require__(109)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs, paths, async_1, normalization_1, platform, strings, uuid, encoding_1, flow, lifecycle_1, winjs_base_1) { | ||
"use strict"; | ||
@@ -131,3 +131,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (error) { | ||
return callback(error, []); | ||
return callback(error, null); | ||
} | ||
@@ -156,4 +156,6 @@ return callback(null, children.map(function (c) { return normalization_1.normalizeNFC(c); })); | ||
exports.statLink = statLink; | ||
function copy(source, target, callback, copiedSourcesIn) { | ||
var copiedSources = copiedSourcesIn ? copiedSourcesIn : Object.create(null); | ||
function copy(source, target, callback, copiedSources) { | ||
if (!copiedSources) { | ||
copiedSources = Object.create(null); | ||
} | ||
fs.stat(source, function (error, stat) { | ||
@@ -173,3 +175,3 @@ if (error) { | ||
loop(files, function (file, clb) { | ||
copy(paths.join(source, file), paths.join(target, file), function (error) { return clb(error, []); }, copiedSources); | ||
copy(paths.join(source, file), paths.join(target, file), function (error) { return clb(error, void 0); }, copiedSources); | ||
}, callback); | ||
@@ -518,3 +520,3 @@ }); | ||
// Open the file with same flags and mode as fs.writeFile() | ||
fs.open(path, typeof options.flag === 'string' ? options.flag : 'r', options.mode, function (openError, fd) { | ||
fs.open(path, options.flag, options.mode, function (openError, fd) { | ||
if (openError) { | ||
@@ -550,3 +552,3 @@ return callback(openError); | ||
// Open the file with same flags and mode as fs.writeFile() | ||
var fd = fs.openSync(path, typeof options.flag === 'string' ? options.flag : 'r', options.mode); | ||
var fd = fs.openSync(path, options.flag, options.mode); | ||
try { | ||
@@ -664,3 +666,3 @@ // It is valid to pass a fd handle to fs.writeFile() and this will keep the handle open! | ||
watcher_1.on('change', function (type, raw) { | ||
var file; | ||
var file = null; | ||
if (raw) { // https://github.com/Microsoft/vscode/issues/38191 | ||
@@ -769,6 +771,6 @@ file = raw.toString(); | ||
/***/ 125: | ||
/***/ 97: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/winjs.base"); | ||
module.exports = require("./../common/lifecycle"); | ||
@@ -780,3 +782,3 @@ /***/ }), | ||
module.exports = require("./../common/lifecycle"); | ||
module.exports = require("fs"); | ||
@@ -788,3 +790,3 @@ /***/ }), | ||
module.exports = require("fs"); | ||
module.exports = require("path"); | ||
@@ -791,0 +793,0 @@ /***/ }) |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 126); | ||
/******/ return __webpack_require__(__webpack_require__.s = 125); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 126: | ||
/***/ 125: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,3 +98,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(127)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, assert) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(126)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, assert) { | ||
"use strict"; | ||
@@ -246,3 +246,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 127: | ||
/***/ 126: | ||
/***/ (function(module, exports) { | ||
@@ -249,0 +249,0 @@ |
@@ -97,3 +97,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 128); | ||
/******/ return __webpack_require__(__webpack_require__.s = 127); | ||
/******/ }) | ||
@@ -103,3 +103,3 @@ /************************************************************************/ | ||
/***/ 109: | ||
/***/ 108: | ||
/***/ (function(module, exports) { | ||
@@ -118,3 +118,3 @@ | ||
/***/ 128: | ||
/***/ 127: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -126,3 +126,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(129), __webpack_require__(122), __webpack_require__(130), __webpack_require__(131)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors, uuid, os_1, map_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(128), __webpack_require__(122), __webpack_require__(129), __webpack_require__(130)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, errors, uuid, os_1, map_1) { | ||
"use strict"; | ||
@@ -199,3 +199,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
return new Promise(function (resolve) { | ||
Promise.all([new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(109)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }), new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(153)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]).then(function (_a) { | ||
Promise.all([new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(108)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }), new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(152)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]).then(function (_a) { | ||
var crypto = _a[0], getmac = _a[1]; | ||
@@ -228,3 +228,3 @@ try { | ||
/***/ 129: | ||
/***/ 128: | ||
/***/ (function(module, exports) { | ||
@@ -236,3 +236,3 @@ | ||
/***/ 130: | ||
/***/ 129: | ||
/***/ (function(module, exports) { | ||
@@ -244,3 +244,3 @@ | ||
/***/ 131: | ||
/***/ 130: | ||
/***/ (function(module, exports) { | ||
@@ -252,3 +252,3 @@ | ||
/***/ 153: | ||
/***/ 152: | ||
/***/ (function(module, exports) { | ||
@@ -255,0 +255,0 @@ |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 132); | ||
/******/ return __webpack_require__(__webpack_require__.s = 131); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 132: | ||
/***/ 131: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,7 +98,7 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(133)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, amd_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(132)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, amd_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var pathsPath = amd_1.getPathFromAmdModule(__webpack_require__(134), 'paths'); | ||
var paths = __webpack_require__(134).__$__nodeRequire(pathsPath); | ||
var pathsPath = amd_1.getPathFromAmdModule(__webpack_require__(133), 'paths'); | ||
var paths = __webpack_require__(133).__$__nodeRequire(pathsPath); | ||
exports.getAppDataPath = paths.getAppDataPath; | ||
@@ -112,3 +112,3 @@ exports.getDefaultUserDataPath = paths.getDefaultUserDataPath; | ||
/***/ 133: | ||
/***/ 132: | ||
/***/ (function(module, exports) { | ||
@@ -120,3 +120,3 @@ | ||
/***/ 134: | ||
/***/ 133: | ||
/***/ (function(module, exports) { | ||
@@ -132,3 +132,3 @@ | ||
module.exports = webpackEmptyContext; | ||
webpackEmptyContext.id = 134; | ||
webpackEmptyContext.id = 133; | ||
@@ -135,0 +135,0 @@ /***/ }) |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 135); | ||
/******/ return __webpack_require__(__webpack_require__.s = 134); | ||
/******/ }) | ||
@@ -90,13 +90,13 @@ /************************************************************************/ | ||
/***/ 100: | ||
/***/ 101: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
module.exports = require("./../common/event"); | ||
/***/ }), | ||
/***/ 102: | ||
/***/ 103: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/event"); | ||
module.exports = require("./extfs"); | ||
@@ -108,10 +108,10 @@ /***/ }), | ||
module.exports = require("./extfs"); | ||
module.exports = require("./../common/platform"); | ||
/***/ }), | ||
/***/ 105: | ||
/***/ 109: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/platform"); | ||
module.exports = require("./../common/winjs.base"); | ||
@@ -127,12 +127,5 @@ /***/ }), | ||
/***/ 125: | ||
/***/ 129: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/winjs.base"); | ||
/***/ }), | ||
/***/ 130: | ||
/***/ (function(module, exports) { | ||
module.exports = require("os"); | ||
@@ -142,3 +135,3 @@ | ||
/***/ 135: | ||
/***/ 134: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -150,3 +143,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(104), __webpack_require__(100), __webpack_require__(120), __webpack_require__(99), __webpack_require__(130), __webpack_require__(105), __webpack_require__(102), __webpack_require__(125)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, extfs, path_1, async_1, fs, os, platform, event_1, winjs_base_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(103), __webpack_require__(99), __webpack_require__(120), __webpack_require__(98), __webpack_require__(129), __webpack_require__(104), __webpack_require__(101), __webpack_require__(109)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, extfs, path_1, async_1, fs, os, platform, event_1, winjs_base_1) { | ||
"use strict"; | ||
@@ -309,3 +302,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
clearInterval(interval); | ||
c(void 0); | ||
c(null); | ||
} | ||
@@ -328,3 +321,3 @@ }); | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -334,4 +327,11 @@ | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }) | ||
/******/ }))); |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 136); | ||
/******/ return __webpack_require__(__webpack_require__.s = 135); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 136: | ||
/***/ 135: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,3 +98,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(137)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, net) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(136)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, net) { | ||
"use strict"; | ||
@@ -176,3 +176,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 137: | ||
/***/ 136: | ||
/***/ (function(module, exports) { | ||
@@ -179,0 +179,0 @@ |
/// <reference types="node" /> | ||
import * as cp from 'child_process'; | ||
import { TPromise, TValueCallback, ErrorCallback } from 'vs/base/common/winjs.base'; | ||
import { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, TerminateResponseCode, Executable } from 'vs/base/common/processes'; | ||
export { CommandOptions, ForkOptions, SuccessData, Source, TerminateResponse, TerminateResponseCode }; | ||
export declare type ValueCallback<T> = (value?: T | Thenable<T>) => void; | ||
export declare type ErrorCallback = (error?: any) => void; | ||
export declare type ProgressCallback<T> = (progress: T) => void; | ||
export declare type TProgressCallback<T> = (progress: T) => void; | ||
export interface LineData { | ||
@@ -20,3 +19,3 @@ line: string; | ||
private childProcess; | ||
protected childProcessPromise: Promise<cp.ChildProcess> | null; | ||
protected childProcessPromise: TPromise<cp.ChildProcess> | null; | ||
private pidResolve?; | ||
@@ -28,10 +27,10 @@ protected terminateRequested: boolean; | ||
getSanitizedCommand(): string; | ||
start(pp: ProgressCallback<TProgressData>): Promise<SuccessData>; | ||
protected abstract handleExec(cc: ValueCallback<SuccessData>, pp: ProgressCallback<TProgressData>, error: Error | null, stdout: Buffer, stderr: Buffer): void; | ||
protected abstract handleSpawn(childProcess: cp.ChildProcess, cc: ValueCallback<SuccessData>, pp: ProgressCallback<TProgressData>, ee: ErrorCallback, sync: boolean): void; | ||
protected handleClose(data: any, cc: ValueCallback<SuccessData>, pp: ProgressCallback<TProgressData>, ee: ErrorCallback): void; | ||
start(pp: TProgressCallback<TProgressData>): TPromise<SuccessData>; | ||
protected abstract handleExec(cc: TValueCallback<SuccessData>, pp: TProgressCallback<TProgressData>, error: Error | null, stdout: Buffer, stderr: Buffer): void; | ||
protected abstract handleSpawn(childProcess: cp.ChildProcess, cc: TValueCallback<SuccessData>, pp: TProgressCallback<TProgressData>, ee: ErrorCallback, sync: boolean): void; | ||
protected handleClose(data: any, cc: TValueCallback<SuccessData>, pp: TProgressCallback<TProgressData>, ee: ErrorCallback): void; | ||
private static readonly regexp; | ||
private ensureQuotes; | ||
readonly pid: Promise<number>; | ||
terminate(): Promise<TerminateResponse>; | ||
readonly pid: TPromise<number>; | ||
terminate(): TPromise<TerminateResponse>; | ||
private useExec; | ||
@@ -44,5 +43,5 @@ } | ||
constructor(cmd: string, args: string[], shell: boolean, options: CommandOptions); | ||
protected handleExec(cc: ValueCallback<SuccessData>, pp: ProgressCallback<LineData>, error: Error, stdout: Buffer, stderr: Buffer): void; | ||
protected handleSpawn(childProcess: cp.ChildProcess, cc: ValueCallback<SuccessData>, pp: ProgressCallback<LineData>, ee: ErrorCallback, sync: boolean): void; | ||
protected handleClose(data: any, cc: ValueCallback<SuccessData>, pp: ProgressCallback<LineData>, ee: ErrorCallback): void; | ||
protected handleExec(cc: TValueCallback<SuccessData>, pp: TProgressCallback<LineData>, error: Error, stdout: Buffer, stderr: Buffer): void; | ||
protected handleSpawn(childProcess: cp.ChildProcess, cc: TValueCallback<SuccessData>, pp: TProgressCallback<LineData>, ee: ErrorCallback, sync: boolean): void; | ||
protected handleClose(data: any, cc: TValueCallback<SuccessData>, pp: TProgressCallback<LineData>, ee: ErrorCallback): void; | ||
} | ||
@@ -53,4 +52,1 @@ export interface IQueuedSender { | ||
export declare function createQueuedSender(childProcess: cp.ChildProcess): IQueuedSender; | ||
export declare namespace win32 { | ||
function findExecutable(command: string, cwd?: string, paths?: string[]): string; | ||
} |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 138); | ||
/******/ return __webpack_require__(__webpack_require__.s = 137); | ||
/******/ }) | ||
@@ -93,17 +93,17 @@ /************************************************************************/ | ||
module.exports = require("path"); | ||
module.exports = require("./../common/objects"); | ||
/***/ }), | ||
/***/ 101: | ||
/***/ 104: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/objects"); | ||
module.exports = require("./../common/platform"); | ||
/***/ }), | ||
/***/ 105: | ||
/***/ 109: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/platform"); | ||
module.exports = require("./../common/winjs.base"); | ||
@@ -119,3 +119,3 @@ /***/ }), | ||
/***/ 133: | ||
/***/ 132: | ||
/***/ (function(module, exports) { | ||
@@ -127,3 +127,3 @@ | ||
/***/ 134: | ||
/***/ 133: | ||
/***/ (function(module, exports) { | ||
@@ -139,7 +139,7 @@ | ||
module.exports = webpackEmptyContext; | ||
webpackEmptyContext.id = 134; | ||
webpackEmptyContext.id = 133; | ||
/***/ }), | ||
/***/ 138: | ||
/***/ 137: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -164,3 +164,3 @@ | ||
})(); | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(100), __webpack_require__(99), __webpack_require__(116), __webpack_require__(28), __webpack_require__(139), __webpack_require__(101), __webpack_require__(140), __webpack_require__(105), __webpack_require__(141), __webpack_require__(133)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, path, fs, cp, nls, Types, Objects, TPath, Platform, decoder_1, amd_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99), __webpack_require__(116), __webpack_require__(28), __webpack_require__(109), __webpack_require__(138), __webpack_require__(100), __webpack_require__(139), __webpack_require__(104), __webpack_require__(140), __webpack_require__(132)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, path, cp, nls, winjs_base_1, Types, Objects, TPath, Platform, decoder_1, amd_1) { | ||
"use strict"; | ||
@@ -197,3 +197,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
try { | ||
var cmd = amd_1.getPathFromAmdModule(__webpack_require__(134), 'vs/base/node/terminateProcess.sh'); | ||
var cmd = amd_1.getPathFromAmdModule(__webpack_require__(133), 'vs/base/node/terminateProcess.sh'); | ||
var result = cp.spawnSync(cmd, [process.pid.toString()]); | ||
@@ -261,3 +261,3 @@ if (result.error) { | ||
if (Platform.isWindows && ((this.options && this.options.cwd && TPath.isUNC(this.options.cwd)) || !this.options && TPath.isUNC(process.cwd()))) { | ||
return Promise.reject(new Error(nls.localize('TaskRunner.UNC', 'Can\'t execute a shell command on a UNC drive.'))); | ||
return winjs_base_1.TPromise.wrapError(new Error(nls.localize('TaskRunner.UNC', 'Can\'t execute a shell command on a UNC drive.'))); | ||
} | ||
@@ -267,3 +267,3 @@ return this.useExec().then(function (useExec) { | ||
var ee; | ||
var result = new Promise(function (c, e) { | ||
var result = new winjs_base_1.TPromise(function (c, e) { | ||
cc = c; | ||
@@ -349,3 +349,3 @@ ee = e; | ||
_this.childProcess = childProcess; | ||
_this.childProcessPromise = Promise.resolve(childProcess); | ||
_this.childProcessPromise = winjs_base_1.TPromise.as(childProcess); | ||
if (_this.pidResolve) { | ||
@@ -392,3 +392,3 @@ _this.pidResolve(Types.isNumber(childProcess.pid) ? childProcess.pid : -1); | ||
else { | ||
return new Promise(function (resolve) { | ||
return new winjs_base_1.TPromise(function (resolve) { | ||
_this.pidResolve = resolve; | ||
@@ -404,3 +404,3 @@ }); | ||
if (!this.childProcessPromise) { | ||
return Promise.resolve({ success: true }); | ||
return winjs_base_1.TPromise.as({ success: true }); | ||
} | ||
@@ -420,3 +420,3 @@ return this.childProcessPromise.then(function (childProcess) { | ||
var _this = this; | ||
return new Promise(function (c, e) { | ||
return new winjs_base_1.TPromise(function (c, e) { | ||
if (!_this.shell || !Platform.isWindows) { | ||
@@ -532,53 +532,2 @@ c(false); | ||
exports.createQueuedSender = createQueuedSender; | ||
var win32; | ||
(function (win32) { | ||
function findExecutable(command, cwd, paths) { | ||
// If we have an absolute path then we take it. | ||
if (path.isAbsolute(command)) { | ||
return command; | ||
} | ||
if (cwd === void 0) { | ||
cwd = process.cwd(); | ||
} | ||
var dir = path.dirname(command); | ||
if (dir !== '.') { | ||
// We have a directory and the directory is relative (see above). Make the path absolute | ||
// to the current working directory. | ||
return path.join(cwd, command); | ||
} | ||
if (paths === void 0 && Types.isString(process.env.PATH)) { | ||
paths = process.env.PATH.split(path.delimiter); | ||
} | ||
// No PATH environment. Make path absolute to the cwd. | ||
if (paths === void 0 || paths.length === 0) { | ||
return path.join(cwd, command); | ||
} | ||
// We have a simple file name. We get the path variable from the env | ||
// and try to find the executable on the path. | ||
for (var _i = 0, paths_1 = paths; _i < paths_1.length; _i++) { | ||
var pathEntry = paths_1[_i]; | ||
// The path entry is absolute. | ||
var fullPath = void 0; | ||
if (path.isAbsolute(pathEntry)) { | ||
fullPath = path.join(pathEntry, command); | ||
} | ||
else { | ||
fullPath = path.join(cwd, pathEntry, command); | ||
} | ||
if (fs.existsSync(fullPath)) { | ||
return fullPath; | ||
} | ||
var withExtension = fullPath + '.com'; | ||
if (fs.existsSync(withExtension)) { | ||
return withExtension; | ||
} | ||
withExtension = fullPath + '.exe'; | ||
if (fs.existsSync(withExtension)) { | ||
return withExtension; | ||
} | ||
} | ||
return path.join(cwd, command); | ||
} | ||
win32.findExecutable = findExecutable; | ||
})(win32 = exports.win32 || (exports.win32 = {})); | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
@@ -590,3 +539,3 @@ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ 139: | ||
/***/ 138: | ||
/***/ (function(module, exports) { | ||
@@ -598,3 +547,3 @@ | ||
/***/ 140: | ||
/***/ 139: | ||
/***/ (function(module, exports) { | ||
@@ -606,3 +555,3 @@ | ||
/***/ 141: | ||
/***/ 140: | ||
/***/ (function(module, exports) { | ||
@@ -624,3 +573,3 @@ | ||
module.exports = require("fs"); | ||
module.exports = require("path"); | ||
@@ -627,0 +576,0 @@ /***/ }) |
@@ -97,3 +97,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 142); | ||
/******/ return __webpack_require__(__webpack_require__.s = 141); | ||
/******/ }) | ||
@@ -103,3 +103,3 @@ /************************************************************************/ | ||
/***/ 139: | ||
/***/ 138: | ||
/***/ (function(module, exports) { | ||
@@ -111,3 +111,3 @@ | ||
/***/ 142: | ||
/***/ 141: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -154,3 +154,3 @@ | ||
}; | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(143), __webpack_require__(139)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, url_1, types_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(142), __webpack_require__(138)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, url_1, types_1) { | ||
"use strict"; | ||
@@ -190,7 +190,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (!(requestURL.protocol === 'http:')) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(154)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); })]; | ||
return [4 /*yield*/, new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(153)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); })]; | ||
case 1: | ||
_a = _b.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: return [4 /*yield*/, new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(155)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]; | ||
case 2: return [4 /*yield*/, new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(154)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]; | ||
case 3: | ||
@@ -213,3 +213,3 @@ _a = _b.sent(); | ||
/***/ 143: | ||
/***/ 142: | ||
/***/ (function(module, exports) { | ||
@@ -221,3 +221,3 @@ | ||
/***/ 154: | ||
/***/ 153: | ||
/***/ (function(module, exports) { | ||
@@ -229,3 +229,3 @@ | ||
/***/ 155: | ||
/***/ 154: | ||
/***/ (function(module, exports) { | ||
@@ -232,0 +232,0 @@ |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 144); | ||
/******/ return __webpack_require__(__webpack_require__.s = 143); | ||
/******/ }) | ||
@@ -97,3 +97,3 @@ /************************************************************************/ | ||
/***/ 133: | ||
/***/ 132: | ||
/***/ (function(module, exports) { | ||
@@ -105,3 +105,3 @@ | ||
/***/ 134: | ||
/***/ 133: | ||
/***/ (function(module, exports) { | ||
@@ -117,7 +117,7 @@ | ||
module.exports = webpackEmptyContext; | ||
webpackEmptyContext.id = 134; | ||
webpackEmptyContext.id = 133; | ||
/***/ }), | ||
/***/ 144: | ||
/***/ 143: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -129,3 +129,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(116), __webpack_require__(133)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, child_process_1, amd_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(116), __webpack_require__(132)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, child_process_1, amd_1) { | ||
"use strict"; | ||
@@ -298,3 +298,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
// JSON.stringify is needed to escape spaces, https://github.com/nodejs/node/issues/6803 | ||
var cmd = JSON.stringify(amd_1.getPathFromAmdModule(__webpack_require__(134), 'vs/base/node/cpuUsage.sh')); | ||
var cmd = JSON.stringify(amd_1.getPathFromAmdModule(__webpack_require__(133), 'vs/base/node/cpuUsage.sh')); | ||
cmd += ' ' + pids_1.join(' '); | ||
@@ -301,0 +301,0 @@ child_process_1.exec(cmd, {}, function (err, stdout, stderr) { |
@@ -97,3 +97,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 145); | ||
/******/ return __webpack_require__(__webpack_require__.s = 144); | ||
/******/ }) | ||
@@ -103,3 +103,3 @@ /************************************************************************/ | ||
/***/ 101: | ||
/***/ 100: | ||
/***/ (function(module, exports) { | ||
@@ -111,3 +111,3 @@ | ||
/***/ 129: | ||
/***/ 128: | ||
/***/ (function(module, exports) { | ||
@@ -119,3 +119,3 @@ | ||
/***/ 139: | ||
/***/ 138: | ||
/***/ (function(module, exports) { | ||
@@ -127,3 +127,3 @@ | ||
/***/ 143: | ||
/***/ 142: | ||
/***/ (function(module, exports) { | ||
@@ -135,3 +135,3 @@ | ||
/***/ 145: | ||
/***/ 144: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -178,3 +178,3 @@ | ||
}; | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(139), __webpack_require__(143), __webpack_require__(99), __webpack_require__(101), __webpack_require__(146), __webpack_require__(129)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, types_1, url_1, fs_1, objects_1, zlib_1, errors_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(138), __webpack_require__(142), __webpack_require__(98), __webpack_require__(100), __webpack_require__(145), __webpack_require__(128)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, types_1, url_1, fs_1, objects_1, zlib_1, errors_1) { | ||
"use strict"; | ||
@@ -190,7 +190,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (!(endpoint.protocol === 'https:')) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(156)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); })]; | ||
return [4 /*yield*/, new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(155)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); })]; | ||
case 1: | ||
_a = _b.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: return [4 /*yield*/, new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(157)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]; | ||
case 2: return [4 /*yield*/, new Promise(function (resolve_2, reject_2) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(156)]; (resolve_2).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_2.bind(this)); })]; | ||
case 3: | ||
@@ -323,3 +323,3 @@ _a = _b.sent(); | ||
/***/ 146: | ||
/***/ 145: | ||
/***/ (function(module, exports) { | ||
@@ -331,3 +331,3 @@ | ||
/***/ 156: | ||
/***/ 155: | ||
/***/ (function(module, exports) { | ||
@@ -339,3 +339,3 @@ | ||
/***/ 157: | ||
/***/ 156: | ||
/***/ (function(module, exports) { | ||
@@ -347,3 +347,3 @@ | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -350,0 +350,0 @@ |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 147); | ||
/******/ return __webpack_require__(__webpack_require__.s = 146); | ||
/******/ }) | ||
@@ -90,12 +90,5 @@ /************************************************************************/ | ||
/***/ 100: | ||
/***/ 102: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }), | ||
/***/ 103: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/json"); | ||
@@ -105,3 +98,3 @@ | ||
/***/ 147: | ||
/***/ 146: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -148,3 +141,3 @@ | ||
}; | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99), __webpack_require__(100), __webpack_require__(103)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs_1, path_1, json_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98), __webpack_require__(99), __webpack_require__(102)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs_1, path_1, json_1) { | ||
"use strict"; | ||
@@ -333,3 +326,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -339,4 +332,11 @@ | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }) | ||
/******/ }))); |
@@ -56,4 +56,4 @@ import { Disposable, IDisposable } from 'vs/base/common/lifecycle'; | ||
export interface IUpdateRequest { | ||
readonly insert?: Map<string, string>; | ||
readonly delete?: Set<string>; | ||
insert?: Map<string, string>; | ||
delete?: Set<string>; | ||
} | ||
@@ -60,0 +60,0 @@ export declare class SQLiteStorageImpl { |
@@ -97,3 +97,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 148); | ||
/******/ return __webpack_require__(__webpack_require__.s = 147); | ||
/******/ }) | ||
@@ -103,12 +103,5 @@ /************************************************************************/ | ||
/***/ 100: | ||
/***/ 101: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }), | ||
/***/ 102: | ||
/***/ (function(module, exports) { | ||
module.exports = require("./../common/event"); | ||
@@ -125,3 +118,3 @@ | ||
/***/ 131: | ||
/***/ 130: | ||
/***/ (function(module, exports) { | ||
@@ -133,3 +126,3 @@ | ||
/***/ 139: | ||
/***/ 138: | ||
/***/ (function(module, exports) { | ||
@@ -141,3 +134,3 @@ | ||
/***/ 148: | ||
/***/ 147: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -162,3 +155,3 @@ | ||
})(); | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98), __webpack_require__(102), __webpack_require__(120), __webpack_require__(139), __webpack_require__(131), __webpack_require__(100), __webpack_require__(149), __webpack_require__(150)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, lifecycle_1, event_1, async_1, types_1, map_1, path_1, performance_1, pfs_1) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(97), __webpack_require__(101), __webpack_require__(120), __webpack_require__(138), __webpack_require__(130), __webpack_require__(99), __webpack_require__(148), __webpack_require__(149)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, lifecycle_1, event_1, async_1, types_1, map_1, path_1, performance_1, pfs_1) { | ||
"use strict"; | ||
@@ -430,3 +423,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(158)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }).then(function (sqlite3) { | ||
new Promise(function (resolve_1, reject_1) { Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(157)]; (resolve_1).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(reject_1.bind(this)); }).then(function (sqlite3) { | ||
if (measureRequireDuration) { | ||
@@ -548,3 +541,3 @@ performance_1.mark('didRequireSQLite'); | ||
SQLiteStorageLogger.prototype.trace = function (msg) { | ||
if (this.logTrace && this.options && this.options.logTrace) { | ||
if (this.logTrace) { | ||
this.options.logTrace(msg); | ||
@@ -554,3 +547,3 @@ } | ||
SQLiteStorageLogger.prototype.error = function (error) { | ||
if (this.logError && this.options && this.options.logError) { | ||
if (this.logError) { | ||
this.options.logError(error); | ||
@@ -604,3 +597,3 @@ } | ||
/***/ 149: | ||
/***/ 148: | ||
/***/ (function(module, exports) { | ||
@@ -612,3 +605,3 @@ | ||
/***/ 150: | ||
/***/ 149: | ||
/***/ (function(module, exports) { | ||
@@ -620,3 +613,3 @@ | ||
/***/ 158: | ||
/***/ 157: | ||
/***/ (function(module, exports) { | ||
@@ -628,3 +621,3 @@ | ||
/***/ 98: | ||
/***/ 97: | ||
/***/ (function(module, exports) { | ||
@@ -634,4 +627,11 @@ | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
module.exports = require("path"); | ||
/***/ }) | ||
/******/ }))); |
@@ -84,3 +84,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 151); | ||
/******/ return __webpack_require__(__webpack_require__.s = 150); | ||
/******/ }) | ||
@@ -90,3 +90,3 @@ /************************************************************************/ | ||
/***/ 151: | ||
/***/ 150: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -98,3 +98,3 @@ | ||
*--------------------------------------------------------------------------------------------*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(99)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(98)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, fs) { | ||
"use strict"; | ||
@@ -202,3 +202,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
/***/ 99: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -205,0 +205,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
18
2136065
51716