Polish
This commit is contained in:
parent
008a52e298
commit
4a5d3623c0
|
@ -971,7 +971,7 @@ export abstract class AbstractSettingRenderer extends Disposable implements ITre
|
|||
if (content.startsWith('#')) {
|
||||
const e: ISettingLinkClickEvent = {
|
||||
source: element,
|
||||
targetKey: content.substr(1)
|
||||
targetKey: content.substring(1)
|
||||
};
|
||||
this._onDidClickSettingLink.fire(e);
|
||||
} else {
|
||||
|
|
|
@ -507,8 +507,8 @@ export function settingKeyToDisplayFormat(key: string, groupId = ''): { category
|
|||
const lastDotIdx = key.lastIndexOf('.');
|
||||
let category = '';
|
||||
if (lastDotIdx >= 0) {
|
||||
category = key.substr(0, lastDotIdx);
|
||||
key = key.substr(lastDotIdx + 1);
|
||||
category = key.substring(0, lastDotIdx);
|
||||
key = key.substring(lastDotIdx + 1);
|
||||
}
|
||||
|
||||
groupId = groupId.replace(/\//g, '.');
|
||||
|
|
|
@ -199,7 +199,7 @@ export class ConfigurationEditingService {
|
|||
}
|
||||
}
|
||||
|
||||
private async updateConfiguration(operation: IConfigurationEditOperation, model: ITextModel, formattingOptions: FormattingOptions): Promise<any> {
|
||||
private async updateConfiguration(operation: IConfigurationEditOperation, model: ITextModel, formattingOptions: FormattingOptions): Promise<void> {
|
||||
if (this.hasParseErrors(model.getValue(), operation)) {
|
||||
throw this.toConfigurationEditingError(ConfigurationEditingErrorCode.ERROR_INVALID_CONFIGURATION, operation.target, operation);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue