Skip to content

Commit

Permalink
Add activation event for builtin library (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Jan 20, 2025
1 parent 39999f5 commit 590e081
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion hugo/content/docs/recipes/builtin-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,14 @@ clientOptions: LanguageClientOptions = {
],
}
```
**Warning:** It is discouraged to set `scheme` to `'*'`, as, for example, we do not want to build a Git revision when performing a Git diff.

> **Warning:** It is discouraged to set `scheme` to `'*'`, as, for example, we do not want to build a Git revision when performing a Git diff.
Finally, to ensure that this file system provider is registered even before any DSL file is opened, the extension should be activated when any of the library files are opened.
To do that, use the following `activationEvents` in the `package.json` of your VS Code extension:

```json
"activationEvents": [
"onFileSystem:builtin"
]
```

0 comments on commit 590e081

Please sign in to comment.