Skip to content

Commit

Permalink
SLVSCODE-799 Register FS watcher for Helm-related files
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed Aug 9, 2024
1 parent 855990c commit bec23f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,18 @@ export async function activate(context: VSCode.ExtensionContext) {
const serverOptions = () => runJavaServer(context);

const pythonWatcher = VSCode.workspace.createFileSystemWatcher('**/*.py');
const helmWatcher = VSCode.workspace.createFileSystemWatcher('**/*.{y?ml,tpl,txt,toml}');
const sharedConnectedModeConfigurationWatcher = VSCode.workspace.createFileSystemWatcher('**/.sonarlint/*.json');
context.subscriptions.push(pythonWatcher);
context.subscriptions.push(helmWatcher);
context.subscriptions.push(sharedConnectedModeConfigurationWatcher);

// Options to control the language client
const clientOptions: LanguageClientOptions = {
documentSelector: DOCUMENT_SELECTOR,
synchronize: {
configurationSection: 'sonarlint',
fileEvents: [pythonWatcher, sharedConnectedModeConfigurationWatcher]
fileEvents: [pythonWatcher, helmWatcher, sharedConnectedModeConfigurationWatcher]
},
uriConverters: {
code2Protocol: code2ProtocolConverter,
Expand Down

0 comments on commit bec23f7

Please sign in to comment.