Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Apr 5, 2020
1 parent 16cbd97 commit 5afb2df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
16 changes: 10 additions & 6 deletions src/goDebugConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,19 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
if (debugConfiguration.request === 'launch' && debugConfiguration['mode'] === 'remote') {
this.showWarning(
'ignoreDebugLaunchRemoteWarning',
`Request type of 'launch' with mode 'remote' is deprecated, please use request type 'attach' with mode 'remote' instead.`);
`Request type of 'launch' with mode 'remote' is deprecated, please use request type 'attach' with mode 'remote' instead.`
);
}

if (debugConfiguration.request === 'attach'
&& debugConfiguration['mode'] === 'remote'
&& debugConfiguration['program']) {
if (
debugConfiguration.request === 'attach' &&
debugConfiguration['mode'] === 'remote' &&
debugConfiguration['program']
) {
this.showWarning(
'ignoreUsingRemotePathAndProgramWarning',
`Request type of 'attach' with mode 'remote' does not work with 'program' attribute, please use 'cwd' attribute instead.`);
`Request type of 'attach' with mode 'remote' does not work with 'program' attribute, please use 'cwd' attribute instead.`
);
}
return debugConfiguration;
}
Expand All @@ -132,7 +136,7 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
return;
}

const neverAgain = { title: 'Don\'t Show Again' };
const neverAgain = { title: "Don't Show Again" };
vscode.window.showWarningMessage(warningMessage, neverAgain).then((result) => {
if (result === neverAgain) {
updateGlobalState(ignoreWarningKey, true);
Expand Down
2 changes: 1 addition & 1 deletion src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export function activate(ctx: vscode.ExtensionContext): void {
vscode.window
.showInputBox({
prompt: 'Enter the path to the coverage profile for current package',
value: lastCoverProfilePath,
value: lastCoverProfilePath
})
.then((coverProfilePath) => {
if (!coverProfilePath) {
Expand Down
6 changes: 4 additions & 2 deletions test/integration/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ encountered.
expected.length,
labels.length,
`expected number of completions: ${expected.length} Actual: ${
labels.length
labels.length
} at position(${position.line + 1},${position.character + 1}) ${labels}`
);
expected.forEach((entry, index) => {
Expand Down Expand Up @@ -1482,7 +1482,9 @@ encountered.
'check without buildtags failed. Unexpected errors found'
);
const errMsg = diagnostics[0].errors[0].msg;
assert.equal(errMsg.includes(`can't load package: package test/testfixture/buildTags`) || errMsg.includes(`build constraints exclude all Go files`),
assert.equal(
errMsg.includes(`can't load package: package test/testfixture/buildTags`) ||
errMsg.includes(`build constraints exclude all Go files`),
true,
`check without buildtags failed. Go files not excluded. ${diagnostics[0].errors[0].msg}`
);
Expand Down

0 comments on commit 5afb2df

Please sign in to comment.