Skip to content

Commit 98ef3aa

Browse files
committed
fix: formatting
1 parent 7526bfb commit 98ef3aa

File tree

9 files changed

+22
-39
lines changed

9 files changed

+22
-39
lines changed

CHANGELOG.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55

66
## [1.1.6](https://github.com/SAP/code-snippet/compare/v1.1.5...v1.1.6) (2022-05-15)
77

8-
98
### Bug Fixes
109

11-
* subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
12-
13-
14-
15-
10+
- subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
1611

1712
## [1.1.5](https://github.com/SAP/code-snippet/compare/v1.1.4...v1.1.5) (2022-04-26)
1813

examples/vscode-snippet-contrib/CHANGELOG.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55

66
## [1.1.6](https://github.com/SAP/code-snippet/compare/v1.1.5...v1.1.6) (2022-05-15)
77

8-
98
### Bug Fixes
109

11-
* subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
12-
13-
14-
15-
10+
- subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
1611

1712
## [1.1.3](https://github.com/SAP/code-snippet/compare/v1.1.2...v1.1.3) (2021-09-29)
1813

lerna.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"packages": [
3-
"packages/*",
4-
"examples/*"
5-
],
2+
"packages": ["packages/*", "examples/*"],
63
"useWorkspaces": true,
74
"npmClient": "yarn",
85
"command": {

packages/backend/CHANGELOG.md

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package code-snippet
99

10-
11-
12-
13-
1410
## [1.1.5](https://github.com/SAP/code-snippet/compare/v1.1.4...v1.1.5) (2022-04-26)
1511

1612
### Bug Fixes

packages/backend/src/code-snippet.ts

+13-8
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ export class CodeSnippet {
114114
handler: Function
115115
): void {
116116
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
117-
let entry: Map<string, Function> =
118-
this.customQuestionEventHandlers.get(questionType);
117+
let entry: Map<string, Function> = this.customQuestionEventHandlers.get(
118+
questionType
119+
);
119120
if (entry === undefined) {
120121
this.customQuestionEventHandlers.set(questionType, new Map());
121122
entry = this.customQuestionEventHandlers.get(questionType);
@@ -180,8 +181,10 @@ export class CodeSnippet {
180181
relevantQuestion.guiType
181182
);
182183
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
183-
const customQuestionEventHandler: Function =
184-
this.getCustomQuestionEventHandler(guiType, methodName);
184+
const customQuestionEventHandler: Function = this.getCustomQuestionEventHandler(
185+
guiType,
186+
methodName
187+
);
185188
return _.isUndefined(customQuestionEventHandler)
186189
? await relevantQuestion[methodName].apply(this.gen, params)
187190
: await customQuestionEventHandler.apply(this.gen, params);
@@ -222,8 +225,9 @@ export class CodeSnippet {
222225
questions: TerminalAdapter.Questions<any>
223226
): Promise<inquirer.Answers> {
224227
this.currentQuestions = questions;
225-
const mappedQuestions: TerminalAdapter.Questions<any> =
226-
this.normalizeFunctions(questions);
228+
const mappedQuestions: TerminalAdapter.Questions<any> = this.normalizeFunctions(
229+
questions
230+
);
227231
if (_.isEmpty(mappedQuestions)) {
228232
return {};
229233
}
@@ -238,8 +242,9 @@ export class CodeSnippet {
238242
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
239243
): Function {
240244
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
241-
const entry: Map<string, Function> =
242-
this.customQuestionEventHandlers.get(questionType);
245+
const entry: Map<string, Function> = this.customQuestionEventHandlers.get(
246+
questionType
247+
);
243248
if (entry !== undefined) {
244249
return entry.get(methodName);
245250
}

packages/backend/src/logger/logger-wrapper.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ function initLoggerWrapper(newLogger: any) {
106106
function createExtensionLogger(context: vscode.ExtensionContext) {
107107
const contextLogPath = context.logPath;
108108
const logLevelSetting: LogLevel = getLoggingLevelSetting();
109-
const sourceLocationTrackingSettings: boolean =
110-
getSourceLocationTrackingSetting();
109+
const sourceLocationTrackingSettings: boolean = getSourceLocationTrackingSetting();
111110
const logOutputChannel = vscode.window.createOutputChannel(CODE_SNIPPET);
112111

113112
//TODO: const meta = require(resolve(context.extensionPath, PACKAGE_JSON));

packages/backend/src/panels/AbstractWebviewPanel.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ export abstract class AbstractWebviewPanel {
143143
const scriptPathOnDisk = vscode.Uri.file(
144144
path.join(this.mediaPath, path.sep)
145145
);
146-
const scriptUri =
147-
this.webViewPanel.webview.asWebviewUri(scriptPathOnDisk);
146+
const scriptUri = this.webViewPanel.webview.asWebviewUri(
147+
scriptPathOnDisk
148+
);
148149

149150
// TODO: very fragile: assuming double quotes and src is first attribute
150151
// specifically, doesn't work when building vue for development (vue-cli-service build --mode development)

packages/frontend/CHANGELOG.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55

66
## [1.1.6](https://github.com/SAP/code-snippet/compare/v1.1.5...v1.1.6) (2022-05-15)
77

8-
98
### Bug Fixes
109

11-
* subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
12-
13-
14-
15-
10+
- subtitle backgound css ([#200](https://github.com/SAP/code-snippet/issues/200)) ([2f79231](https://github.com/SAP/code-snippet/commit/2f79231bdd7a66cc7e18cf77103fc37d22909b5a))
1611

1712
## [1.1.5](https://github.com/SAP/code-snippet/compare/v1.1.4...v1.1.5) (2022-04-26)
1813

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -11337,7 +11337,7 @@ npm-registry-fetch@^9.0.0:
1133711337
minizlib "^2.0.0"
1133811338
npm-package-arg "^8.0.0"
1133911339

11340-
11340+
npm-run-all@^4.1.5:
1134111341
version "4.1.5"
1134211342
resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.1.5.tgz#04476202a15ee0e2e214080861bff12a51d98fba"
1134311343
integrity sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==

0 commit comments

Comments
 (0)