mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 413396: Language cannot be determined for files without extension.
Change-Id: I31579f0eb33f0797dd09dab0c2de9de88967fd4d Signed-off-by: Markus Schorn <markus.schorn@windriver.com> Reviewed-on: https://git.eclipse.org/r/22362 Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com> IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com> Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
This commit is contained in:
parent
ce1620f8cc
commit
4f2fe55e90
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ public class LanguageManager {
|
|||
IPath location = file.getLocation();
|
||||
String filename;
|
||||
if (location != null) {
|
||||
filename = location.toString();
|
||||
filename = location.lastSegment();
|
||||
} else {
|
||||
filename = file.getName();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue