Skip to content
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

Normalize slashes for paths in watch events #57968

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Conversation

sheetalkamat
Copy link
Member

No description provided.

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick to release-5.4

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 27, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick to release-5.4 ✅ Started ❌ Results

@typescript-bot
Copy link
Collaborator

Hey, @DanielRosenwasser! I was unable to cherry-pick this PR.

Check the logs at: https://github.com/microsoft/TypeScript/actions/runs/8458595699

@@ -93,8 +93,8 @@ describe("unittests:: tsserver:: events:: watchEvents", () => {
function updateFileOnHost(session: TestSession, file: string, log: string, content?: string) {
// Change b.ts
session.logger.log(`${log}: ${file}`);
if (content) session.host.appendFile(file, content);
else session.host.writeFile(file, session.host.readFile("/user/username/projects/myproject/a.ts")!);
if (content && session.host.fileExists(file)) session.host.appendFile(file, content);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is just testing, but is there technically an issue here with if content is an empty string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but its for testing so just simplified it

@sheetalkamat sheetalkamat merged commit 54504fc into main Mar 27, 2024
25 checks passed
@sheetalkamat sheetalkamat deleted the normalizeWatchevents branch March 27, 2024 21:16
@sheetalkamat
Copy link
Member Author

@DanielRosenwasser conflict for picking up comes because #57967 is not merged

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick to release-5.4

@typescript-bot
Copy link
Collaborator

typescript-bot commented Mar 27, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick to release-5.4 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @DanielRosenwasser! I've created #57970 for you.

DanielRosenwasser pushed a commit that referenced this pull request Mar 28, 2024
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 5.4.32 milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants