Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set Release Condition
id: check_release
run: |
$isRelease = "${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/enterprise-release-v') && (github.actor == 'saranshsaini' || github.actor == 'fortenforge') }}"
$isRelease = "${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/enterprise-release-v') && (github.actor == 'edwardpark97' || github.actor == 'saranshsaini' || github.actor == 'fortenforge') }}"
echo "IS_RELEASE=$isRelease" | Out-File -FilePath $env:GITHUB_ENV -Append
if ($isRelease -eq 'true') {
$tag = "${{ github.ref_name }}"
Expand Down
27 changes: 21 additions & 6 deletions CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ private async Task GetLanguageServerInfoAsync()
{
_languageServerVersion = version;
}
// Only pin to 1.50.100 for specific portal URLs
if (portalUrl.Contains(".windsurf.com") || portalUrl.Contains("dstart.com"))
{
_languageServerVersion = "1.50.100";
}
}
catch (Exception)
{
Expand Down Expand Up @@ -725,8 +730,18 @@ private void LSP_OnPipeDataReceived(object sender, DataReceivedEventArgs e)
return JsonConvert.DeserializeObject<T>(await rq.Content.ReadAsStringAsync());
}

await _package.LogAsync(
$"Error: Failed to send request to {url}, status code: {rq.StatusCode}");
// If auth failed, sign out and show login prompt
if (rq.StatusCode == HttpStatusCode.Forbidden ||
rq.StatusCode == HttpStatusCode.Unauthorized)
{
await _package.LogAsync("Session expired - please sign in again");
await SignOutAsync();
}
else
{
await _package.LogAsync(
$"Error: Failed to send request to {url}, status code: {rq.StatusCode}");
}
}
catch (OperationCanceledException)
{
Expand Down Expand Up @@ -881,7 +896,7 @@ async Task AddFilesToIndexLists(EnvDTE.Project project)
remainingToFind -= 1;
remainingProjectsToIndexPath.Add(dir);
}

processedProjects.Add(project.Name);
}

Expand All @@ -908,7 +923,7 @@ async Task AddFilesToIndexLists(EnvDTE.Project project)
{
await AddFilesToIndexLists(project);
}
catch (Exception ex)
catch (Exception ex)
{
await _package.LogAsync($"Failed to process open project: {ex.Message}");
continue;
Expand All @@ -924,12 +939,12 @@ async Task AddFilesToIndexLists(EnvDTE.Project project)
{
await AddFilesToIndexLists(project);
}
catch (Exception ex)
catch (Exception ex)
{
await _package.LogAsync($"Failed to process remaining project: {ex.Message}");
continue;
}
if (remainingToFind <=0)
if (remainingToFind <= 0)
{
break;
}
Expand Down