Skip to content

Commit

Permalink
Rename config function
Browse files Browse the repository at this point in the history
  • Loading branch information
badsyntax committed Apr 29, 2020
1 parent cb3b1a2 commit 92c79d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getConfigJavaHome(): string | null {
.get<string | null>('home', null);
}

export function getConfigImportGradleUserHome(): string | null {
export function getConfigJavaImportGradleUserHome(): string | null {
return vscode.workspace
.getConfiguration('java')
.get<string | null>('import.gradle.user.home', null);
Expand Down
6 changes: 3 additions & 3 deletions extension/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ConfigTaskPresentationOptionsPanelKind,
ConfigTaskPresentationOptions,
getConfigTaskPresentationOptions,
getConfigImportGradleUserHome,
getConfigJavaImportGradleUserHome,
} from './config';
import { logger } from './logger';
import { GradleTasksClient } from './client';
Expand Down Expand Up @@ -221,7 +221,7 @@ export class GradleTaskProvider implements vscode.TaskProvider {
projectFolder: vscode.WorkspaceFolder,
buildFile: vscode.Uri
): Promise<GradleBuild | void> {
const gradleUserHome = getConfigImportGradleUserHome();
const gradleUserHome = getConfigJavaImportGradleUserHome();
const build = await this.client?.getBuild(
projectFolder.uri.fsPath,
gradleUserHome
Expand Down Expand Up @@ -413,7 +413,7 @@ class CustomBuildTaskTerminal implements vscode.Pseudoterminal {
try {
const javaDebugEnabled = this.task.definition.javaDebug;
const javaDebugPort = javaDebugEnabled ? await getPort() : null;
const gradleUserHome = getConfigImportGradleUserHome();
const gradleUserHome = getConfigJavaImportGradleUserHome();
const runTask = this.client.runTask(
this.projectFolder,
this.task,
Expand Down

0 comments on commit 92c79d4

Please sign in to comment.