Skip to content

Commit

Permalink
Run format post prettier dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Apr 20, 2020
1 parent 28e2d9f commit 893c23e
Show file tree
Hide file tree
Showing 12 changed files with 556 additions and 565 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.json
Expand Up @@ -2,5 +2,6 @@
"printWidth": 120,
"singleQuote": true,
"arrowParens": "always",
"quoteProps": "consistent"
"quoteProps": "consistent",
"trailingComma": "none"
}
15 changes: 4 additions & 11 deletions src/debugAdapter/goDebug.ts
Expand Up @@ -24,7 +24,7 @@ import {
StackFrame,
StoppedEvent,
TerminatedEvent,
Thread,
Thread
} from 'vscode-debugadapter';
import { DebugProtocol } from 'vscode-debugprotocol';
import {
Expand Down Expand Up @@ -1399,16 +1399,9 @@ class GoDebugSession extends LoggingDebugSession {
}

if (i) {
localPath =
llist
.reverse()
.slice(0, -i)
.join(this.localPathSeparator) + this.localPathSeparator;
localPath = llist.reverse().slice(0, -i).join(this.localPathSeparator) + this.localPathSeparator;
args.remotePath =
rlist
.reverse()
.slice(0, -i)
.join(this.remotePathSeparator) + this.remotePathSeparator;
rlist.reverse().slice(0, -i).join(this.remotePathSeparator) + this.remotePathSeparator;
} else if (
args.remotePath.length > 1 &&
(args.remotePath.endsWith('\\') || args.remotePath.endsWith('/'))
Expand Down Expand Up @@ -1720,7 +1713,7 @@ class GoDebugSession extends LoggingDebugSession {
// TODO(polina): validate the assumption in this code that the first goroutine
// is the current one. So far it appears to me that this is always the main goroutine
// with id 1.
this.delve.call<DebugGoroutine[] | ListGoroutinesOut>('ListGoroutines', [{count: 1}], (err, out) => {
this.delve.call<DebugGoroutine[] | ListGoroutinesOut>('ListGoroutines', [{ count: 1 }], (err, out) => {
if (err) {
this.logDelveError(err, 'Failed to get threads');
}
Expand Down
58 changes: 29 additions & 29 deletions src/goBaseCodelens.ts
@@ -1,29 +1,29 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------*/

import vscode = require('vscode');

export abstract class GoBaseCodeLensProvider implements vscode.CodeLensProvider {
protected enabled: boolean = true;
private onDidChangeCodeLensesEmitter = new vscode.EventEmitter<void>();

public get onDidChangeCodeLenses(): vscode.Event<void> {
return this.onDidChangeCodeLensesEmitter.event;
}

public setEnabled(enabled: false): void {
if (this.enabled !== enabled) {
this.enabled = enabled;
this.onDidChangeCodeLensesEmitter.fire();
}
}

public provideCodeLenses(
document: vscode.TextDocument,
token: vscode.CancellationToken
): vscode.ProviderResult<vscode.CodeLens[]> {
return [];
}
}
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------*/

import vscode = require('vscode');

export abstract class GoBaseCodeLensProvider implements vscode.CodeLensProvider {
protected enabled: boolean = true;
private onDidChangeCodeLensesEmitter = new vscode.EventEmitter<void>();

public get onDidChangeCodeLenses(): vscode.Event<void> {
return this.onDidChangeCodeLensesEmitter.event;
}

public setEnabled(enabled: false): void {
if (this.enabled !== enabled) {
this.enabled = enabled;
this.onDidChangeCodeLensesEmitter.fire();
}
}

public provideCodeLenses(
document: vscode.TextDocument,
token: vscode.CancellationToken
): vscode.ProviderResult<vscode.CodeLens[]> {
return [];
}
}

0 comments on commit 893c23e

Please sign in to comment.