Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
njuCZ committed Jul 31, 2020
1 parent 2271df6 commit b8d7a9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ If you have multiple root modules in your workspace, you can configure the langu
}
```

If you want to automatically search root modules in your workspace and exclude some folders, you can configure the language server settings to identify them.
If you want to automatically search root modules in your workspace and exclude some folders, you can configure the language server settings to identify them.
```
{
"terraform-ls.rootModules-exclude": [
"terraform-ls.excludeRootModules": [
"/module3",
"/module4"
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"default": [],
"description": "Per-workspace list of module directories for the language server to read"
},
"terraform-ls.rootModules-exclude": {
"terraform-ls.excludeRootModules": {
"scope": "resource",
"type": "array",
"items": {
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ async function startLsClient(cmd: string, config: vscode.WorkspaceConfiguration)
const lsConfig = vscode.workspace.getConfiguration("terraform-ls");
const serverArgs: string[] = config.get("languageServer.args");
let serverOptions: ServerOptions;
let initializationOptions = {
let initializationOptions = {
rootModulePaths: lsConfig.get("rootModules"),
excludeModulePaths: lsConfig.get("rootModules-exclude"),
excludeModulePaths: lsConfig.get("excludeRootModules"),
};

const setup = vscode.window.createOutputChannel(binaryName);
Expand Down

0 comments on commit b8d7a9e

Please sign in to comment.