Skip to content

Commit 987ea42

Browse files
committed
fix(listener): add 'robocop.toml' to monitored project files to allow detection of changes in robocop configuration
1 parent 7cb7b18 commit 987ea42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

intellij-client/src/main/kotlin/dev/robotcode/robotcode4ij/listeners/RobotCodeVirtualFileListener.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import dev.robotcode.robotcode4ij.restartAll
77

88
class RobotCodeVirtualFileListener(private val project: Project) : AsyncFileListener {
99
companion object {
10-
val PROJECT_FILES = arrayOf("robot.toml", ".robot.toml", "pyproject.toml")
10+
val PROJECT_FILES = arrayOf("robot.toml", ".robot.toml", "pyproject.toml", "robocop.toml")
1111
}
12-
12+
1313
override fun prepareChange(events: List<VFileEvent>): AsyncFileListener.ChangeApplier? {
1414
return object : AsyncFileListener.ChangeApplier {
1515
override fun afterVfsChange() {

vscode-client/extension/languageclientsmanger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class LanguageClientsManager {
207207
public readonly outputChannel: vscode.OutputChannel,
208208
) {
209209
const fileWatcher1 = vscode.workspace.createFileSystemWatcher(
210-
`**/{pyproject.toml,robot.toml,.robot.toml,robocop.toml,.gitignore,.robotignore}`,
210+
`**/{pyproject.toml,robot.toml,.robot.toml,robocop.toml,.gitignore,.robotignore,robocop.toml}`,
211211
);
212212
fileWatcher1.onDidCreate((uri) => this.restart(vscode.workspace.getWorkspaceFolder(uri)?.uri));
213213
fileWatcher1.onDidDelete((uri) => this.restart(vscode.workspace.getWorkspaceFolder(uri)?.uri));

0 commit comments

Comments
 (0)