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

feat: Upgrade requirement to 1.60.0 and apply folder-library icon #997

Merged
merged 5 commits into from
Sep 23, 2021

Conversation

CsCherrYY
Copy link
Collaborator

@CsCherrYY CsCherrYY commented Sep 10, 2021

fix #994
Since folder-library has been shipped with VSCode 1.60.0, we can apply it and update our requirement.

Screenshot 2021-09-10 104021

@CsCherrYY CsCherrYY added the enhancement New feature or request label Sep 10, 2021
@CsCherrYY CsCherrYY changed the title feat: Apply folder-library icon feat: Upgrade requirement to 1.60.0 and apply folder-library icon Sep 10, 2021
@CsCherrYY CsCherrYY added this to the 3.8.0 milestone Sep 10, 2021
console.error('Error running tests:', err.message);
} finally {
await fs.remove(tmpDir);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

there may be a bug between VSCode 1.60.0 (or maybe several versions older) and test-electron causing the user-dir is occupied after vscode instance exited in windows. Since we run the tests on pipeline, can we just remove the clean process here?

Copy link
Member

Choose a reason for hiding this comment

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

what if I want to run tests on my dev machine which is Windows?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A temporary folder will be created in os.tmpdir() to collect test logs. The size is about 80KB.

Copy link
Member

Choose a reason for hiding this comment

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

Will it affect next run?

BTW, what's the purpose to remove this block? Is there any side-effect for the moment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will it affect next run?

No. mkdtempSync() generates six random characters to be appended behind a required prefix to create a unique temporary directory. See

const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'vscode-user'));

BTW, what's the purpose to remove this block? Is there any side-effect for the moment?

Due to the bug in #997 (comment), the file is occupied, causing this remove() throws an error. You can see https://github.com/microsoft/vscode-gradle/runs/3582740912#step:15:382 for the reference.

Copy link
Member

Choose a reason for hiding this comment

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

Got it. I'm fine with it. Better open an issue to test-electron repo.

@@ -160,7 +160,7 @@ export class GradleTasksTreeDataProvider
vscode.TreeItemCollapsibleState.Collapsed,
element,
path.dirname(resourceUri.fsPath),
element.label || resourceUri.fsPath
typeof element.label === 'string' ? element.label : resourceUri.fsPath
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The TreeItem.label could be string | TreeItemLabel in new index.d.ts.

@CsCherrYY CsCherrYY added eng engineering work UX and removed enhancement New feature or request labels Sep 13, 2021
@CsCherrYY CsCherrYY merged commit 8750a4d into main Sep 23, 2021
@CsCherrYY CsCherrYY deleted the cs-folder-library branch September 23, 2021 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eng engineering work UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apply folder-library icon for dependency view
2 participants