Skip to content
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

Workspace completion #5714

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Workspace completion #5714

wants to merge 15 commits into from

Conversation

STetsing
Copy link
Collaborator

The user workspace is indexed in a regular time period. More context file is used for creating suggestions

@STetsing STetsing added the WIP label Jan 29, 2025
Copy link

netlify bot commented Jan 29, 2025

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit e3a3dff
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/67a4c7920e38df0007b374cb
😎 Deploy Preview https://deploy-preview-5714--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

});

// listen for file changes
this.props.on('fileManager', 'fileRemoved', (path) => { this.indexed.isIndexed = false; });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you already have this line 54

this.codebase = this.loadCodebase(codebasePath);
async getDcocuments() {
const documents: Document[] = [];
const dirs = await this.props.call('fileManager', 'dirList', '/');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you try to call await plugin.call('fileManager', 'copyFolderToJson', '/') if should returns a JSON value with all the files.

async getContextFiles(prompt) {
try {
if (!this.indexed.isIndexed) {
this.indexWorkspace();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need await here?

);
};

export default DynamicButtons;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That slipped in from other work (adding context in chat)

package.json Outdated
@@ -153,6 +153,7 @@
"express-ws": "^5.0.2",
"file-path-filter": "^3.0.2",
"file-saver": "^2.0.5",
"flexsearch": "^0.7.43",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need that dependency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually no, these are the bunch of alternative I tried out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants