Skip to content

Commit 2317ba9

Browse files
committed
ccdb do not lint diet files
diet files will not appear in the compile_commands.json file. So no need to trigger the lint for these files.
1 parent ccc1871 commit 2317ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/served/extension.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ void onDidSaveDocument(DidSaveTextDocumentParams params)
11381138
lint(document);
11391139
}
11401140
}, {
1141-
if (config.d.enableCcdbLinting)
1141+
if (config.d.enableCcdbLinting && document.languageId == "d")
11421142
{
11431143
import served.linters.ccdb;
11441144

0 commit comments

Comments
 (0)