Use constant
This commit is contained in:
parent
c5944491c0
commit
027da88563
1 changed files with 3 additions and 2 deletions
|
@ -7,9 +7,10 @@ import * as vscode from 'vscode';
|
||||||
import type * as Proto from '../protocol';
|
import type * as Proto from '../protocol';
|
||||||
import { ITypeScriptServiceClient } from '../typescriptService';
|
import { ITypeScriptServiceClient } from '../typescriptService';
|
||||||
import API from '../utils/api';
|
import API from '../utils/api';
|
||||||
|
import { Disposable } from '../utils/dispose';
|
||||||
|
import * as fileSchemes from '../utils/fileSchemes';
|
||||||
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
import { isTypeScriptDocument } from '../utils/languageModeIds';
|
||||||
import { ResourceMap } from '../utils/resourceMap';
|
import { ResourceMap } from '../utils/resourceMap';
|
||||||
import { Disposable } from '../utils/dispose';
|
|
||||||
|
|
||||||
|
|
||||||
function objsAreEqual<T>(a: T, b: T): boolean {
|
function objsAreEqual<T>(a: T, b: T): boolean {
|
||||||
|
@ -185,7 +186,7 @@ export default class FileConfigurationManager extends Disposable {
|
||||||
return {
|
return {
|
||||||
quotePreference: this.getQuoteStylePreference(config),
|
quotePreference: this.getQuoteStylePreference(config),
|
||||||
importModuleSpecifierPreference: getImportModuleSpecifierPreference(config),
|
importModuleSpecifierPreference: getImportModuleSpecifierPreference(config),
|
||||||
allowTextChangesInNewFiles: document.uri.scheme === 'file',
|
allowTextChangesInNewFiles: document.uri.scheme === fileSchemes.file,
|
||||||
providePrefixAndSuffixTextForRename: config.get<boolean>('renameShorthandProperties', true),
|
providePrefixAndSuffixTextForRename: config.get<boolean>('renameShorthandProperties', true),
|
||||||
allowRenameOfImportPath: true,
|
allowRenameOfImportPath: true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue