-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows path fixes2 #1311
base: canary
Are you sure you want to change the base?
windows path fixes2 #1311
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 7ec3759 in 23 seconds
More details
- Looked at
88
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. typescript/vscode-ext/packages/language-server/src/lib/baml_project_manager.ts:215
- Draft comment:
Theget_file
method now correctly accepts aURI
object and usesfsPath
for file operations. Ensure all calls to this method pass aURI
object, as done inhandleHoverRequest
. - Reason this comment was not posted:
Confidence changes required:0%
The change fromURI.file(match.uri).toString()
toURI.file(match.uri)
in theget_file
method call is correct. However, theget_file
method itself should be updated to accept aURI
object instead of a string, which has already been done. This change ensures that thefsPath
property is used correctly for file operations.
2. typescript/vscode-ext/packages/language-server/src/lib/baml_project_manager.ts:380
- Draft comment:
The change to usepath.join(out_dir + '.tmp')
andpath.join(out_dir + '.bak')
simplifies directory creation and is correct. Ensure thatout_dir
is correctly defined before these operations. - Reason this comment was not posted:
Confidence changes required:0%
The change frompath.join(path.dirname(g.output_dir), path.basename(g.output_dir) + '.tmp')
topath.join(out_dir + '.tmp')
simplifies the code and is correct. The same applies to the backup directory. This change ensures that the temporary and backup directories are correctly created next to the output directory.
3. typescript/vscode-ext/packages/language-server/src/lib/baml_project_manager.ts:427
- Draft comment:
The try-catch block around therename
operation for backing up the directory is a good addition for error handling and logging. - Reason this comment was not posted:
Confidence changes required:0%
The try-catch block around therename
operation for backing up the directory is a good addition. It ensures that any errors during the backup process are logged, which aids in debugging and error handling.
Workflow ID: wflow_YxNUyBGmdwhSSMWZ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 2c0d80b in 12 seconds
More details
- Looked at
21
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. typescript/vscode-ext/packages/language-server/src/lib/baml_project_manager.ts:426
- Draft comment:
Fix indentation for better readability.
await rename(out_dir, backupDir)
- Reason this comment was not posted:
Confidence changes required:10%
The indentation issue is minor but should be corrected for consistency.
Workflow ID: wflow_WdGU9MjfxB9wQI4f
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Fixes Windows path handling and hover functionality in
baml_project_manager.ts
, with improved error logging.get_file()
by usingfile_path.fsPath
.get_file()
call inhandleHoverRequest()
.runGeneratorsWithoutDebounce()
.runGeneratorsWithoutDebounce()
.This description was created by for 2c0d80b. It will automatically update as commits are pushed.