Skip to content

Commit 584f0b4

Browse files
committed
fix: formatting
1 parent 1a5edfe commit 584f0b4

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

packages/backend/src/code-snippet.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ 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> = this.customQuestionEventHandlers.get(
118-
questionType
119-
);
117+
let entry: Map<string, Function> =
118+
this.customQuestionEventHandlers.get(questionType);
120119
if (entry === undefined) {
121120
this.customQuestionEventHandlers.set(questionType, new Map());
122121
entry = this.customQuestionEventHandlers.get(questionType);
@@ -181,10 +180,8 @@ export class CodeSnippet {
181180
relevantQuestion.guiType
182181
);
183182
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
184-
const customQuestionEventHandler: Function = this.getCustomQuestionEventHandler(
185-
guiType,
186-
methodName
187-
);
183+
const customQuestionEventHandler: Function =
184+
this.getCustomQuestionEventHandler(guiType, methodName);
188185
return _.isUndefined(customQuestionEventHandler)
189186
? await relevantQuestion[methodName].apply(this.gen, params)
190187
: await customQuestionEventHandler.apply(this.gen, params);
@@ -225,9 +222,8 @@ export class CodeSnippet {
225222
questions: TerminalAdapter.Questions<any>
226223
): Promise<inquirer.Answers> {
227224
this.currentQuestions = questions;
228-
const mappedQuestions: TerminalAdapter.Questions<any> = this.normalizeFunctions(
229-
questions
230-
);
225+
const mappedQuestions: TerminalAdapter.Questions<any> =
226+
this.normalizeFunctions(questions);
231227
if (_.isEmpty(mappedQuestions)) {
232228
return {};
233229
}
@@ -242,9 +238,8 @@ export class CodeSnippet {
242238
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
243239
): Function {
244240
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
245-
const entry: Map<string, Function> = this.customQuestionEventHandlers.get(
246-
questionType
247-
);
241+
const entry: Map<string, Function> =
242+
this.customQuestionEventHandlers.get(questionType);
248243
if (entry !== undefined) {
249244
return entry.get(methodName);
250245
}

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

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

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

packages/backend/src/panels/AbstractWebviewPanel.ts

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

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

0 commit comments

Comments
 (0)