extension/src/experiments/webview/messages.ts
File messages.ts
has 534 lines of code (exceeds 300 allowed). Consider refactoring. Open
Open
import { commands, Uri, ViewColumn, window } from 'vscode'
import { StudioLinkType, TableData } from './contract'
import {
RegisteredCliCommands,
RegisteredCommands
Function handleMessageFromWebview
has 125 lines of code (exceeds 40 allowed). Consider refactoring. Open
Open
public handleMessageFromWebview(message: MessageFromWebview) {
// eslint-disable-next-line sonarjs/max-switch-cases
switch (message.type) {
case MessageFromWebviewType.REORDER_COLUMNS:
return this.setColumnOrder(message.payload)
Function getWebviewData
has 56 lines of code (exceeds 40 allowed). Consider refactoring. Open
Open
private async getWebviewData(): Promise<TableData> {
const [
changes,
cliError,
columnOrder,