提交 f7eefb63 编写于 作者: D Daniel Imms

Add files.useExperimentalFileWatcher setting

上级 50657045
......@@ -538,7 +538,7 @@ export interface IFilesConfiguration {
autoSaveDelay: number;
eol: string;
hotExit: string;
useNsfwFileWatcher: boolean;
useExperimentalFileWatcher: boolean;
};
}
......
......@@ -275,10 +275,10 @@ configurationRegistry.registerConfiguration({
],
'description': nls.localize('hotExit', "Controls whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.", HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE)
},
'files.useNsfwFileWatcher': {
'files.useExperimentalFileWatcher': {
'type': 'boolean',
'default': false,
'description': nls.localize('useNsfwFileWatcher', "Use the new experimental file watcher utilizing the nsfw library.")
'description': nls.localize('useExperimentalFileWatcher', "Use the new experimental file watcher.")
},
'files.defaultLanguage': {
'type': 'string',
......
......@@ -85,7 +85,7 @@ export class FileService implements IFileService {
encodingOverride,
watcherIgnoredPatterns,
verboseLogging: environmentService.verbose,
useNsfwFileWatcher: configuration.files.useNsfwFileWatcher
useExperimentalFileWatcher: configuration.files.useExperimentalFileWatcher
};
// create service
......
......@@ -53,7 +53,7 @@ export interface IFileServiceOptions {
watcherIgnoredPatterns?: string[];
disableWatcher?: boolean;
verboseLogging?: boolean;
useNsfwFileWatcher?: boolean;
useExperimentalFileWatcher?: boolean;
}
function etag(stat: fs.Stats): string;
......@@ -127,7 +127,7 @@ export class FileService implements IFileService {
}
if (this.basePath && !this.options.disableWatcher) {
if (this.options.useNsfwFileWatcher) {
if (this.options.useExperimentalFileWatcher) {
this.setupNsfwWorkspceWatching();
} else {
if (isWindows) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册