Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added setting for config Gauge formatter and send the settings to Gauge server. #1038

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"
}
}
}
5 changes: 3 additions & 2 deletions src/gaugeWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ 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 Expand Up @@ -229,6 +232,4 @@ export class GaugeWorkspace extends Disposable {
}
});
}


}
Loading