typescript-language-server
Advanced tools
Comparing version 0.1.7 to 0.1.8
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -3,0 +9,0 @@ return new (P || (P = Promise))(function (resolve, reject) { |
"use strict"; | ||
/* | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -3,0 +9,0 @@ const chai = require("chai"); |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -3,0 +9,0 @@ const fs = require("fs"); |
"use strict"; | ||
/* | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -3,0 +9,0 @@ const chai = require("chai"); |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -14,2 +14,5 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
const uri = vscode_uri_1.default.parse(stringUri); | ||
if (uri.scheme !== 'file') { | ||
return stringUri; | ||
} | ||
return uri.fsPath; | ||
@@ -19,2 +22,5 @@ } | ||
function pathToUri(p) { | ||
if (p.indexOf(':') !== -1) { | ||
return p; | ||
} | ||
return 'file://' + (utils_1.isWindows() ? '/' + p.replace(/\//g, '/') : p); | ||
@@ -21,0 +27,0 @@ } |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
export declare class Deferred<T> { | ||
private operation; | ||
private timer; | ||
constructor(operation: string, timeout?: number); | ||
@@ -4,0 +5,0 @@ resolve: (value?: T) => void; |
"use strict"; | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* Copyright (C) 2017, 2018 TypeFox and others. | ||
* | ||
@@ -9,2 +9,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const timers_1 = require("timers"); | ||
class Deferred { | ||
@@ -14,6 +15,12 @@ constructor(operation, timeout) { | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = resolve; | ||
this.reject = reject; | ||
this.resolve = obj => { | ||
timers_1.clearTimeout(this.timer); | ||
resolve(obj); | ||
}; | ||
this.reject = obj => { | ||
timers_1.clearTimeout(this.timer); | ||
reject(obj); | ||
}; | ||
}); | ||
setTimeout(() => { | ||
this.timer = setTimeout(() => { | ||
this.reject(new Error(this.operation + " timeout")); | ||
@@ -20,0 +27,0 @@ }, timeout || 20000); |
{ | ||
"name": "typescript-language-server", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Language Server Protocol (LSP) implementation for TypeScript using tsserver", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157874
60
2147