Skip to content

Commit

Permalink
fix: Tune copilot (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson-Shaar authored Jan 15, 2025
1 parent b64c635 commit c4dd717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion copilot/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def text_document_did_open(params: DidOpenTextDocumentParams):
except requests.RequestException as e:
raise HTTPException(status_code=500, detail=str(e))

@async_debounce(0.65)
@async_debounce(0.3)
async def text_document_did_change(params):
global copilot_enabled
global copilot_doc_open
Expand Down
2 changes: 1 addition & 1 deletion zt_frontend/src/components/CodeComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export default {
python(),
...(this.isDarkMode ? [oneDark] : []), // Add only when in dark mode
indentUnit.of(" "),
inlineSuggestion({ fetchFn: fetchSuggestion, delay: 400 }),
inlineSuggestion({ fetchFn: fetchSuggestion, delay: 500 }),
autocompletion({ override: [customCompletionSource] }),
customLinter,
].filter(Boolean) as Extension[];
Expand Down

0 comments on commit c4dd717

Please sign in to comment.