Drop needless pubs

This commit is contained in:
Aleksey Kladov 2019-12-31 17:28:27 +01:00
parent 433000be34
commit 76f283108b

View File

@ -16,25 +16,25 @@ export interface CargoFeatures {
} }
export class Config { export class Config {
public highlightingOn = true; highlightingOn = true;
public rainbowHighlightingOn = false; rainbowHighlightingOn = false;
public enableEnhancedTyping = true; enableEnhancedTyping = true;
public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server';
public lruCapacity: null | number = null; lruCapacity: null | number = null;
public displayInlayHints = true; displayInlayHints = true;
public maxInlayHintLength: null | number = null; maxInlayHintLength: null | number = null;
public excludeGlobs = []; excludeGlobs = [];
public useClientWatching = true; useClientWatching = true;
public featureFlags = {}; featureFlags = {};
// for internal use // for internal use
public withSysroot: null | boolean = null; withSysroot: null | boolean = null;
public cargoWatchOptions: CargoWatchOptions = { cargoWatchOptions: CargoWatchOptions = {
enable: true, enable: true,
arguments: [], arguments: [],
command: '', command: '',
allTargets: true, allTargets: true,
}; };
public cargoFeatures: CargoFeatures = { cargoFeatures: CargoFeatures = {
noDefaultFeatures: false, noDefaultFeatures: false,
allFeatures: true, allFeatures: true,
features: [], features: [],
@ -50,7 +50,7 @@ export class Config {
this.userConfigChanged(); this.userConfigChanged();
} }
public userConfigChanged() { userConfigChanged() {
const config = vscode.workspace.getConfiguration('rust-analyzer'); const config = vscode.workspace.getConfiguration('rust-analyzer');
let requireReloadMessage = null; let requireReloadMessage = null;