File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extension/src/language/legacy Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import vscode = require('vscode');
12
12
import { getGoConfig } from '../../config' ;
13
13
import { toolExecutionEnvironment } from '../../goEnv' ;
14
14
import { promptForMissingTool , promptForUpdatingTool } from '../../goInstallTools' ;
15
- import { getBinPath } from '../../util' ;
15
+ import { getBinPath , resolvePath } from '../../util' ;
16
16
import { killProcessTree } from '../../utils/processUtils' ;
17
17
18
18
export class GoDocumentFormattingEditProvider implements vscode . DocumentFormattingEditProvider {
@@ -144,7 +144,7 @@ export function getFormatTool(goConfig: { [key: string]: any }): string {
144
144
return 'goimports' ;
145
145
}
146
146
if ( formatTool === 'custom' ) {
147
- return goConfig [ 'alternateTools' ] [ 'customFormatter' ] || 'goimports' ;
147
+ return resolvePath ( goConfig [ 'alternateTools' ] [ 'customFormatter' ] || 'goimports' ) ;
148
148
}
149
149
return formatTool ;
150
150
}
You can’t perform that action at this time.
0 commit comments