<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - clangd tries to index/syntax check MATLAB files (.m extension conflict)"
href="https://bugs.llvm.org/show_bug.cgi?id=41788">41788</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clangd tries to index/syntax check MATLAB files (.m extension conflict)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang-tools-extra
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>clangd
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lilbill39@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I've got clangd hooked up in VSCode and really like it. As part of my work I
also need to write MATLAB code for which I'm using the vscode-matlab extension
and have the extension .m bound to the language "matlab" in VSCode:
"files.associations": {"*.m": "matlab"}
However when I open a .m file in VSCode with clangd running, it validates the
file, likely as Objective-C, causing a bunch of errors to show up.
Can clangd indexing be based off of the language rather than the file
extension?
<a href="https://github.com/microsoft/vscode-extension-samples/blob/master/lsp-sample/package.json">https://github.com/microsoft/vscode-extension-samples/blob/master/lsp-sample/package.json</a>
shows binding with a language as well as their client:
<a href="https://github.com/microsoft/vscode-extension-samples/blob/master/lsp-sample/client/src/extension.ts">https://github.com/microsoft/vscode-extension-samples/blob/master/lsp-sample/client/src/extension.ts</a>
Using this mechanism allows users to perform the extension to language mapping
on their own.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>