File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1023,7 +1023,7 @@ export function getLanguageServerToolPath(): string {
1023
1023
// Check that all workspace folders are configured with the same GOPATH.
1024
1024
if ( ! allFoldersHaveSameGopath ( ) ) {
1025
1025
vscode . window . showInformationMessage (
1026
- ' The Go language server is currently not supported in a multi-root set-up with different GOPATHs.'
1026
+ ` The Go language server is currently not supported in a multi-root set-up with different GOPATHs ( ${ gopathsPerFolder ( ) } ).`
1027
1027
) ;
1028
1028
return ;
1029
1029
}
@@ -1057,6 +1057,14 @@ function allFoldersHaveSameGopath(): boolean {
1057
1057
return vscode . workspace . workspaceFolders . find ( ( x ) => tempGopath !== getCurrentGoPath ( x . uri ) ) ? false : true ;
1058
1058
}
1059
1059
1060
+ function gopathsPerFolder ( ) : string [ ] {
1061
+ const result : string [ ] = [ ] ;
1062
+ for ( const folder of vscode . workspace . workspaceFolders ) {
1063
+ result . push ( getCurrentGoPath ( folder . uri ) ) ;
1064
+ }
1065
+ return result ;
1066
+ }
1067
+
1060
1068
export async function shouldUpdateLanguageServer (
1061
1069
tool : Tool ,
1062
1070
cfg : LanguageServerConfig ,
You can’t perform that action at this time.
0 commit comments