Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Sep 15, 2019
1 parent 75631b1 commit f910a50
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
IStat,
IWatchOptions
} from 'vs/platform/files/common/files';
import { IProductService } from 'vs/platform/product/common/product';
import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
import { IWorkbenchContribution } from 'vs/workbench/common/contributions';
import { VSBuffer } from 'vs/base/common/buffer';

const TRUSTED_DOMAINS_SCHEMA = 'trustedDomains';

Expand Down Expand Up @@ -66,7 +66,8 @@ export class TrustedDomainsFileSystemProvider implements IFileSystemProvider, IW

const trustedDomainsContent = CONFIG_HELP_TEXT + JSON.stringify(trustedDomains, null, 2);

const buffer = Buffer.from(trustedDomainsContent, 'utf-8');

const buffer = VSBuffer.fromString(trustedDomainsContent).buffer;
return Promise.resolve(buffer);
}

Expand Down

0 comments on commit f910a50

Please sign in to comment.