Serhioromano / vscode-st

Extension for VS Code to support Structured Text language.

Home Page:https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st#overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exclude files/directories from st language support

rbastens opened this issue · comments

Is it a possibility to add a setting to exclude the ST language support from different files or directories.

Welcome!

Thank you for finding time to write an issue and make this extension better. I`ll appreciate if you find some time to rate this extension here.

I`ll get back to your ASAP.

This extension does not parse files that are not opened. Please explain your case. You have file extension that match this extension?

My apologies for the late response. I was on vacation!

I am using Simatic AX. This is an engineering environment from Siemens that uses Visual Studio Code. Programming is done in .st files and Siemens has its own ST language support extension.

Siemens only allows programming in one specific directory “src/”. So, only this folder is compiled and downloaded to the PLC (S7-1500). Only our software can be used in different type of PLCs, where the language support of Siemens cannot handle the language support of these other PLCs. But we want to program all this in Simatic AX IDE, since it uses Visual Studio Code anyway. So for this, we created another directory, so that we don't get problems with the ST language support from Siemens.

But now for this other directory we don't have ST language support and for this we would like to use this ST language support. But when we use this extension, it also overrides the ST language support from Siemens in this “src/” directory. Therefore, we would like to use a setting to exclude this “src/” directory from this ST language support.

You have an option right now in the status bar to change file language and switch what language support extension will handle it. I'll look into it that is possible to add exclude folder.

You have an option right now in the status bar change file language and switch what language support extension will handle it. Looks like there is no way. No easy way. It is not clear to me how to do that. Because VS Code do it all itself. I only set a file extension. SO fo you only way is to switch language.