mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Implement a no sync rule (#7216)
* implement a no sync rule * fix linting disable * fix unused imports * exclude more testing * clean up fs usage * clean up more fs usage * remove duplicate of code * fix compile errors
This commit is contained in:
@@ -26,10 +26,12 @@ export class PlatformService implements IPlatformService {
|
||||
}
|
||||
|
||||
copyFile(source: string, target: string): void {
|
||||
// tslint:disable-next-line:no-sync
|
||||
fs.copyFileSync(source, target);
|
||||
}
|
||||
|
||||
fileExists(file: string): boolean {
|
||||
// tslint:disable-next-line:no-sync
|
||||
return fs.existsSync(file);
|
||||
}
|
||||
|
||||
@@ -44,4 +46,4 @@ export class PlatformService implements IPlatformService {
|
||||
isNotebookNameUsed(title: string): boolean {
|
||||
return (azdata.nb.notebookDocuments.findIndex(doc => doc.isUntitled && doc.fileName === title) > -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user