mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -1454,7 +1454,7 @@ class InlayHintsAdapter {
|
||||
result.label = hint.label;
|
||||
} else {
|
||||
result.label = hint.label.map(part => {
|
||||
let result: languages.InlayHintLabelPart = { label: part.value };
|
||||
const result: languages.InlayHintLabelPart = { label: part.value };
|
||||
result.tooltip = typeConvert.MarkdownString.fromStrict(part.tooltip);
|
||||
if (Location.isLocation(part.location)) {
|
||||
result.location = typeConvert.location.from(part.location);
|
||||
@@ -2508,7 +2508,7 @@ export class ExtHostLanguageFeatures implements extHostProtocol.ExtHostLanguageF
|
||||
}
|
||||
|
||||
setLanguageConfiguration(extension: IExtensionDescription, languageId: string, configuration: vscode.LanguageConfiguration): vscode.Disposable {
|
||||
let { wordPattern } = configuration;
|
||||
const { wordPattern } = configuration;
|
||||
|
||||
// check for a valid word pattern
|
||||
if (wordPattern && regExpLeadsToEndlessLoop(wordPattern)) {
|
||||
|
||||
Reference in New Issue
Block a user