Skip to content

Commit 36f1d70

Browse files
committed
jsdoc and comment cleanup
1 parent a040237 commit 36f1d70

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/workbench/services/files/node/fileService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ export class FileService implements IFileService {
458458
}
459459

460460
public backupFile(resource: uri, content: string): TPromise<IFileStat> {
461-
// TODO: This should not backup unless necessary. Currently this is called for each file on close to ensure the files are backed up.
462461
let registerResourcePromise: TPromise<void>;
463462
if (resource.scheme === 'file') {
464463
registerResourcePromise = this.backupService.registerResourceForBackup(resource);

src/vs/workbench/services/textfile/common/textFileEditorModel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,10 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
265265
diag('load() - created text editor model', this.resource, new Date());
266266

267267
if (this.restoreResource) {
268-
// TODO: De-duplicate code
269268
this.createTextEditorModelPromise = this.textFileService.resolveTextContent(this.restoreResource, { acceptTextOnly: true, etag: etag, encoding: this.preferredEncoding }).then((restoreContent) => {
270269
return this.createTextEditorModel(restoreContent.value, content.resource).then(() => {
271270
this.createTextEditorModelPromise = null;
272271

273-
// TODO: This does not set the dirty indicator immediately, making it look like the file is not actually dirty
274272
this.setDirty(true);
275273
this.toDispose.push(this.textEditorModel.onDidChangeRawContent((e: IModelContentChangedEvent) => this.onModelContentChanged(e)));
276274

src/vs/workbench/services/textfile/common/textfiles.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,12 @@ export interface ITextFileService extends IDisposable {
322322
*/
323323
confirmSave(resources?: URI[]): ConfirmResult;
324324

325-
// TODO: Doc
325+
/**
326+
* Backs up the provided file to a temporary directory to be used by the hot
327+
* exit feature and crash recovery.
328+
*
329+
* @param resource The resource to backup.
330+
*/
326331
backup(resource: URI): void;
327332

328333
/**

0 commit comments

Comments
 (0)