robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
182 stars 15 forks source link

Is it possible to associate *.txt files? #141

Closed jt3tucker closed 1 year ago

jt3tucker commented 1 year ago

Hi,

I just had a simple question. Is it possible to associate *.txt file with robotcode? Because I set the file association in my settings.json for VS Code, and it did not help the following error I am setting here..

(UnknownFileTypeError)robotcode.diagnostics(UnknownFileTypeError) Fatal: can't get model diagnostics 'Unknown file type...

Here are my desktop environment details.

d-biehl commented 1 year ago

Sorry, no this is not possible, at the moment only '.robot' and '.resource' are supported. Executing '.txt' files with Robot is an old deprecated way, so I did not implement this in RobotCode.

just rename your files with the corresponding file extension. That's also the proposed way of naming files in robotframework.

But can I ask you, why you want to execute '.txt' files?

jt3tucker commented 1 year ago

I am working on a really old personally project and wanted to know if I could. And I am just being lazy. I need update a bunch of stuff, so I need to stop taking shortcuts any way. Thx for the quick response.

d-biehl commented 1 year ago

Good luck! 😉