Skip to content

Commit 4fed028

Browse files
committed
fix: try to handle unknow documents as .robot files to support resources as .txt or .tsv files
1 parent eab71f8 commit 4fed028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robotcode/language_server/robotframework/parts/documents_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def __get_document_type(self, document: TextDocument) -> DocumentType:
131131
elif suffix == ".resource":
132132
return DocumentType.RESOURCE
133133
else:
134-
return DocumentType.UNKNOWN
134+
return DocumentType.GENERAL
135135

136136
async def get_tokens(self, document: TextDocument, data_only: bool = False) -> List[Token]:
137137
if data_only:

0 commit comments

Comments
 (0)