Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshsaini committed Sep 20, 2024
1 parent 3136bac commit f2c6a3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CodeiumVS/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
// highlight the selected codeblock
TextHighlighter? highlighter = TextHighlighter.GetInstance(docView.TextView);
highlighter?.AddHighlight(snapshotLine.Extent);

var dialog = RefactorCodeDialogWindow.GetOrCreate();
string? prompt =
await dialog.ShowAndGetPromptAsync(languageInfo, selectionScreenPos.X, selectionScreenPos.Y);
Expand Down
6 changes: 4 additions & 2 deletions CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,11 @@ private async Task InitializeTrackedWorkspaceAsync()
{
try
{
if (!string.IsNullOrEmpty(project.FullName))
string projectFullName = project.FullName;
await _package.LogAsync($"Project Full Name: {projectFullName}");
if (!string.IsNullOrEmpty(projectFullName))
{
string projectDir = Path.GetDirectoryName(project.FullName);
string projectDir = Path.GetDirectoryName(projectFullName);
await _package.LogAsync($"Project Dir: {projectDir}");
AddTrackedWorkspaceResponse response = await AddTrackedWorkspaceAsync(projectDir);
if (response != null)
Expand Down

0 comments on commit f2c6a3c

Please sign in to comment.