-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
PTVS engine update + handling of the interpreter change #1613
Conversation
[skip ci]
@@ -100,7 +127,7 @@ export class AnalysisExtensionActivator implements IExtensionActivator { | |||
} | |||
|
|||
if (downloadPackage) { | |||
const downloader = new AnalysisEngineDownloader(this.services, analysisEngineFolder); | |||
this.appShell.showWarningMessage('.NET Runtime is not found, platform-specific Python Analysis Engine will be downloaded.'); |
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.
Shouldn't this be an information message, instead of a warning?
@@ -194,12 +222,15 @@ export class AnalysisExtensionActivator implements IExtensionActivator { | |||
} | |||
} | |||
|
|||
// tslint:disable-next-line:no-string-literal | |||
properties['DatabasePath'] = path.join(context.extensionPath, analysisEngineFolder); |
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.
No need to change, but you can avoid the linter messages if you define properties as follows:
const properties: {[key: string]:string} = {};
} | ||
|
||
private async downloadFile(location: string, fileName: string, title: string): Promise<string> { | ||
const uri = `${location}/${fileName}`; | ||
this.output.append(`Downloading ${uri}... `); | ||
const tempFile = await createTemporaryFile(downloadFileExtension); | ||
|
||
const deferred = createDeferred(); |
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.
This deferred
is not used
@@ -96,4 +97,24 @@ export class FileSystem implements IFileSystem { | |||
}); | |||
}); | |||
} | |||
|
|||
public copyFileAsync(src: string, dest: string): Promise<void> { |
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.
Please remove Async
suffix.
return deferred.promise; | ||
} | ||
|
||
public deleteFileAsync(filename: string): Promise<void> { |
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.
Please remove Async
suffix.
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.
Should we remove them all from IFileSystem? Currently we [sort of] follow node's 'fs' which has plain and Sync
src/client/common/platform/types.ts
Outdated
@@ -44,4 +44,6 @@ export interface IFileSystem { | |||
// tslint:disable-next-line:unified-signatures | |||
appendFileSync(filename: string, data: {}, options?: { encoding?: string; mode?: string; flag?: string }): void; | |||
getRealPathAsync(path: string): Promise<string>; | |||
copyFileAsync(src: string, dest: string): Promise<void>; |
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.
Please remove Async
suffix.
news/2 Fixes/1354.md
Outdated
@@ -0,0 +1 @@ | |||
Multiple fixes to format on type |
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.
I can't see any fixes for format on type
or am I missing something.
Codecov Report
@@ Coverage Diff @@
## master #1613 +/- ##
==========================================
- Coverage 71.62% 71.25% -0.37%
==========================================
Files 277 273 -4
Lines 12816 12759 -57
Branches 2299 2293 -6
==========================================
- Hits 9179 9092 -87
- Misses 3502 3526 +24
- Partials 135 141 +6
Continue to review full report at Codecov.
|
(Multiroot WS issue is still open in #1149)
This pull request: