Skip to content

Conversation

@MikhailArkhipov
Copy link

Fixes #527 #524 #522

protected abstract getExecutionInfo(moduleName: string, resource?: vscode.Uri): Promise<ExecutionInfo>;

private async isPathWritableAsync(directoryPath: string): Promise<boolean> {
const filePath = `${directoryPath}${path.sep}___vscpTest___`;

Choose a reason for hiding this comment

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

Something to be moved into IFileSystem interface?

Copy link
Author

Choose a reason for hiding this comment

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

I am a bit concerned that if it is inside FileSystem and uses same file name for all requests (possibly concurrent), it can give false results. To be inside the FS it would need unique names per request.

Choose a reason for hiding this comment

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

Or we generate a random name everytime.
But we can do that the next time this will be used elsewhere.

@codecov
Copy link

codecov bot commented Jan 4, 2018

Codecov Report

Merging #532 into master will decrease coverage by 0.01%.
The diff coverage is 48.21%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #532      +/-   ##
=========================================
- Coverage   56.42%   56.4%   -0.02%     
=========================================
  Files         212     212              
  Lines        9968   10018      +50     
  Branches     1755    1762       +7     
=========================================
+ Hits         5624    5651      +27     
- Misses       4340    4362      +22     
- Partials        4       5       +1
Impacted Files Coverage Δ
src/client/formatters/baseFormatter.ts 66.1% <0%> (ø) ⬆️
src/client/common/helpers.ts 92.85% <100%> (ø) ⬆️
src/client/common/terminal/types.ts 100% <100%> (ø) ⬆️
src/client/common/configSettings.ts 91.39% <100%> (+0.05%) ⬆️
src/client/common/serviceRegistry.ts 100% <100%> (ø) ⬆️
src/client/common/installer/moduleInstaller.ts 50% <42.85%> (-41.67%) ⬇️
src/client/debugger/Main.ts 0% <0%> (ø) ⬆️
src/client/workspaceSymbols/generator.ts 35.84% <0%> (+1.3%) ⬆️
src/client/common/platform/fileSystem.ts 17.94% <0%> (+2.56%) ⬆️
src/client/providers/lintProvider.ts 82.89% <0%> (+2.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4372809...57afa7f. Read the comment docs.

@brettcannon
Copy link
Member

Would you mind changing the title so it explained more of what the PR was doing? I assume this has something to do with permission elevation or something?

@MikhailArkhipov MikhailArkhipov changed the title Elev Introduce per user installation of modules and elevated global install as an option Jan 4, 2018
@MikhailArkhipov
Copy link
Author

Lol of course. Not sure where did that come from... Branch name probably

@MikhailArkhipov MikhailArkhipov merged commit 321e204 into microsoft:master Jan 5, 2018
@MikhailArkhipov MikhailArkhipov deleted the elev branch January 5, 2018 22:44
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install tools using --user when not in an environment

3 participants