Skip to content

Commit

Permalink
SLLS-221 make binding no-match error more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Aug 28, 2024
1 parent d2d9ffa commit e1d88c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ public AssistBindingResponse assistBinding(AssistBindingParams params, SonarLint
@Override
public void noBindingSuggestionFound(String projectKey) {
var messageRequestParams = new ShowMessageRequestParams();
messageRequestParams.setMessage("SonarLint couldn't match SonarQube project '" + projectKey + "' to any of the currently " +
"open workspace folders. Please open your project in VSCode and try again.");
messageRequestParams.setMessage("SonarLint couldn't match the server project '" + projectKey + "' to any of the currently " +
"open workspace folders. Please make sure the project is open in the workspace, or try configuring the binding manually.");
messageRequestParams.setType(MessageType.Error);
var learnMoreAction = new MessageActionItem("Learn more");
messageRequestParams.setActions(List.of(learnMoreAction));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void testNoBindingSuggestionFound() {

var projectKey = "projectKey";
var messageRequestParams = new ShowMessageRequestParams();
messageRequestParams.setMessage("SonarLint couldn't match SonarQube project '" + projectKey + "' to any of the currently open workspace folders. Please open your project in VSCode and try again.");
messageRequestParams.setMessage("SonarLint couldn't match the server project '" + projectKey + "' to any of the currently open workspace folders. Please make sure the project is open in the workspace, or try configuring the binding manually.");
messageRequestParams.setType(MessageType.Error);
var learnMoreAction = new MessageActionItem("Learn more");
messageRequestParams.setActions(List.of(learnMoreAction));
Expand Down

0 comments on commit e1d88c2

Please sign in to comment.