-
Notifications
You must be signed in to change notification settings - Fork 13
refactor: move security at inception ls #1043
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
base: main
Are you sure you want to change the base?
Conversation
|
| Status | Scanner | Total (0) | ||||
|---|---|---|---|---|---|---|
| Open Source Security | 0 | 0 | 0 | 0 | See details | |
| Licenses | 0 | 0 | 0 | 0 | See details | |
| ✅ | Code Security | 0 | 0 | 0 | 0 | 0 issues |
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.
# Conflicts: # application/config/config.go # application/server/configuration_test.go
| c.engine = engine | ||
| } | ||
|
|
||
| c.engine.SetUserInterface(util.NewLsUserInterface(c.logger)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is needed, since LS will use CLI UserInterface by default, which will always output to stdout which will break LS stdio stream
# Conflicts: # application/config/config.go # application/server/configuration.go # internal/types/lsp.go
| isLSPInitialized bool | ||
| cachedOriginalPath string | ||
| userSettingsPath string | ||
| autoConfigureMcpEnabled bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure it's the same name
| mcpConfig.Set(mcp.ToolNameParam, c.IdeName()) | ||
| mcpConfig.Set(mcp.IdeConfigPathParam, c.IdeName()) | ||
| mcpConfig.Set(mcp.TrustedFoldersParam, trustedFoldersStr) | ||
| if c.GetSecureAtInceptionExecutionFrequency() == "Smart Scan" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make const
| mcp "github.com/snyk/studio-mcp/shared" | ||
| ) | ||
|
|
||
| func CallMcpConfigWorkflow(c *config.Config, notifier notification.Notifier, configureMcp bool, configureRules bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this all must be a go routine
| RequiredProtocolVersion string `json:"requiredProtocolVersion,omitempty"` | ||
| HoverVerbosity *int `json:"hoverVerbosity,omitempty"` | ||
| OutputFormat *string `json:"outputFormat,omitempty"` | ||
| AutoConfigureSnykMcpServer string `json:"autoConfigureSnykMcpServer,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check the name here
| } | ||
|
|
||
| func NewLsUserInterface(logger *zerolog.Logger) *LsUserInterface { | ||
| return &LsUserInterface{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add handlers + options functions for output handler + input handler, error handler, progress handler, etc
Description
Waiting on: snyk/studio-mcp#7
Checklist
make generate)make lint-fix)