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
Copy file name to clipboardExpand all lines: src/extension.ts
+57-7Lines changed: 57 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,9 @@ export class ClangDocumentFormattingEditProvider implements vscode.DocumentForma
59
59
60
60
61
61
parser.onopentag=(tag)=>{
62
-
if(currentEdit){reject("Malformed output");}
62
+
if(currentEdit){
63
+
reject("Malformed output");
64
+
}
63
65
64
66
switch(tag.name){
65
67
case"replacements":
@@ -161,7 +163,9 @@ export class ClangDocumentFormattingEditProvider implements vscode.DocumentForma
161
163
vscode.window.showInformationMessage("The '"+formatCommandBinPath+"' command is not available. Please check your clang.formatTool user setting and ensure it is installed.");
162
164
returnresolve(null);
163
165
}
164
-
if(err)returnreject("Cannot format due to syntax errors.");
166
+
if(err){
167
+
returnreject("Cannot format due to syntax errors.");
168
+
}
165
169
166
170
vardummyProcessor=(value: string)=>{
167
171
debugger;
@@ -201,23 +205,69 @@ export class ClangDocumentFormattingEditProvider implements vscode.DocumentForma
0 commit comments