Skip to content

Commit 7613bb2

Browse files
committed
fix(vscode): restart the language server if a change is detected in a .gitignore or .robotignore file
1 parent 4fe0bd0 commit 7613bb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vscode-client/languageclientsmanger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export class LanguageClientsManager {
178178
public readonly pythonManager: PythonManager,
179179
public readonly outputChannel: vscode.OutputChannel,
180180
) {
181-
const fileWatcher1 = vscode.workspace.createFileSystemWatcher(`**/{pyproject.toml,robot.toml,.robot.toml}`);
181+
const fileWatcher1 = vscode.workspace.createFileSystemWatcher(
182+
`**/{pyproject.toml,robot.toml,.robot.toml,.gitignore,.robotignore}`,
183+
);
182184
fileWatcher1.onDidCreate((uri) => this.restart(vscode.workspace.getWorkspaceFolder(uri)?.uri));
183185
fileWatcher1.onDidDelete((uri) => this.restart(vscode.workspace.getWorkspaceFolder(uri)?.uri));
184186
fileWatcher1.onDidChange((uri) => this.restart(vscode.workspace.getWorkspaceFolder(uri)?.uri));

0 commit comments

Comments
 (0)