Skip to content

Commit 1351eb8

Browse files
committed
fix: formatting
1 parent 1e0a371 commit 1351eb8

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

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)

0 commit comments

Comments
 (0)