Skip to content

Commit

Permalink
Added setting for config Gauge formatter and send the settings to Gau…
Browse files Browse the repository at this point in the history
…ge server.

Signed-off-by: Jens Johansson <[email protected]>
  • Loading branch information
jensakejohansson committed Feb 3, 2025
1 parent 2df26bc commit fbe4e23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "Gauge support for VScode.",
"author": "ThoughtWorks",
"license": "MIT",
"version": "0.1.6",
"version": "0.1.7",
"publisher": "getgauge",
"engines": {
"vscode": "^1.71.0"
Expand Down Expand Up @@ -288,6 +288,11 @@
"Ignore"
],
"description": "Gauge recommended settings are shown/ignored based on the given value."
},
"gauge.formatting.skipEmptyLineInsertions": {
"type": "boolean",
"default": false,
"description": "If true, skip adding empty lines during formatting."
}
}
},
Expand Down Expand Up @@ -486,4 +491,4 @@
"vscode-languageclient": "~8.1.0",
"xmlbuilder": "^15.1.1"
}
}
}
4 changes: 4 additions & 0 deletions src/gaugeWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export class GaugeWorkspace extends Disposable {
diagnosticCollectionName: 'gauge',
outputChannel: this._outputChannel,
revealOutputChannelOn: RevealOutputChannelOn.Never,
synchronize: {
configurationSection: 'gauge'
},

};
clientOptions.workspaceFolder = workspace.getWorkspaceFolder(Uri.file(folder));
let languageClient = new LanguageClient('gauge', 'Gauge', serverOptions, clientOptions);
Expand Down

0 comments on commit fbe4e23

Please sign in to comment.