mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(ui): improve Docker Compose autocomplete formatting
- Add space after colon in Docker Compose service options - Remove unnecessary console.log statement
This commit is contained in:
@@ -75,7 +75,7 @@ const dockerComposeServiceOptions = [
|
||||
].map((opt) => ({
|
||||
...opt,
|
||||
apply: (view: EditorView, completion: Completion) => {
|
||||
const insert = `${completion.label}:`;
|
||||
const insert = `${completion.label}: `;
|
||||
view.dispatch({
|
||||
changes: {
|
||||
from: view.state.selection.main.from,
|
||||
@@ -99,7 +99,6 @@ function dockerComposeComplete(
|
||||
const line = context.state.doc.lineAt(context.pos);
|
||||
const indentation = /^\s*/.exec(line.text)?.[0].length || 0;
|
||||
|
||||
console.log(indentation);
|
||||
if (indentation === 0) {
|
||||
return {
|
||||
from: word.from,
|
||||
|
||||
Reference in New Issue
Block a user