Skip to content

Commit 11d4d7c

Browse files
Fix a few issues reported by tslint
1 parent 57ffb02 commit 11d4d7c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/omnisharp/launcher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function launchOmniSharp(cwd: string, args: string[], kind: LaunchTargetK
144144
.then(result => {
145145
// async error - when target not not ENEOT
146146
result.process.on('error', err => {
147-
reject(err)
147+
reject(err);
148148
});
149149

150150
// success after a short freeing event loop
@@ -243,9 +243,9 @@ function launchNixMono(launchPath: string, cwd: string, args: string[]): Promise
243243
return canLaunchMono()
244244
.then(() => {
245245
let argsCopy = args.slice(0); // create copy of details args
246-
args.unshift(launchPath);
246+
argsCopy.unshift(launchPath);
247247

248-
let process = spawn('mono', args, {
248+
let process = spawn('mono', argsCopy, {
249249
detached: false,
250250
cwd: cwd
251251
});

src/omnisharp/requestQueue.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { Logger } from '../logger';
7-
import * as protocol from './protocol';
87
import * as prioritization from './prioritization';
98

109
export interface Request {
@@ -109,7 +108,6 @@ class RequestQueue {
109108
}
110109

111110
export class RequestQueueCollection {
112-
private _logger: Logger;
113111
private _isProcessing: boolean;
114112
private _priorityQueue: RequestQueue;
115113
private _normalQueue: RequestQueue;

src/omnisharp/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { Options } from './options';
1111
import { Logger } from '../logger';
1212
import { DelayTracker } from './delayTracker';
1313
import { LaunchTarget, findLaunchTargets } from './launcher';
14-
import { PlatformInformation } from '../platform';
1514
import { Request, RequestQueueCollection } from './requestQueue';
1615
import TelemetryReporter from 'vscode-extension-telemetry';
1716
import * as path from 'path';
@@ -58,7 +57,6 @@ const TelemetryReportingDelay = 2 * 60 * 1000; // two minutes
5857
export class OmniSharpServer {
5958

6059
private static _nextId = 1;
61-
private static StartupTimeout = 1000 * 60;
6260

6361
private _debugMode: boolean = false;
6462

@@ -455,7 +453,7 @@ export class OmniSharpServer {
455453
let listener: vscode.Disposable;
456454

457455
// Convert the timeout from the seconds to milliseconds, which is required by setTimeout().
458-
const timeoutDuration = this._options.projectLoadTimeout * 1000
456+
const timeoutDuration = this._options.projectLoadTimeout * 1000;
459457

460458
// timeout logic
461459
const handle = setTimeout(() => {

0 commit comments

Comments
 (0)