You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: nls.localize('unusualLineTerminators.title',"Unusual Line Terminators"),
90
-
message: nls.localize('unusualLineTerminators.message',"Detected unusual line terminators"),
91
-
detail: nls.localize('unusualLineTerminators.detail',"The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",basename(model.uri)),
92
-
primaryButton: nls.localize('unusualLineTerminators.fix',"Remove Unusual Line Terminators"),
// we're currently showing the dialog, which is async.
91
+
// avoid spamming the user
92
+
return;
93
+
}
94
+
95
+
letresult: IConfirmationResult;
96
+
try{
97
+
this._isPresentingDialog=true;
98
+
result=awaitthis._dialogService.confirm({
99
+
title: nls.localize('unusualLineTerminators.title',"Unusual Line Terminators"),
100
+
message: nls.localize('unusualLineTerminators.message',"Detected unusual line terminators"),
101
+
detail: nls.localize('unusualLineTerminators.detail',"The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",basename(model.uri)),
102
+
primaryButton: nls.localize('unusualLineTerminators.fix',"Remove Unusual Line Terminators"),
0 commit comments