mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 09:59:25 +00:00
make sure we only try and parse java files
This commit is contained in:
@@ -46,6 +46,11 @@ let documents = new TextDocuments({
|
|||||||
create(uri, languageId, version, content) {
|
create(uri, languageId, version, content) {
|
||||||
trace(`document create ${uri}:${version}`);
|
trace(`document create ${uri}:${version}`);
|
||||||
|
|
||||||
|
// sanity-check - we only support Java source files
|
||||||
|
if (!/\.java$/i.test(uri)) {
|
||||||
|
return { uri };
|
||||||
|
}
|
||||||
|
|
||||||
// add the document to the set
|
// add the document to the set
|
||||||
liveParsers.set(uri, new JavaDocInfo(uri, content, version));
|
liveParsers.set(uri, new JavaDocInfo(uri, content, version));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user