CON-1067: fixes from testing
This commit is contained in:
parent
344b23d663
commit
4ae128f277
3 changed files with 3 additions and 4 deletions
|
|
@ -150,7 +150,6 @@ export class CodebaseIndexer {
|
|||
console.warn(
|
||||
`Error updating the ${codebaseIndex.artifactId} index: ${e}`,
|
||||
);
|
||||
yield { progress: 1, desc: "error updating index" }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ export class VsCodeExtension {
|
|||
this.ide
|
||||
.getWorkspaceDirs()
|
||||
.then((dirs) => this.refreshCodebaseIndex(dirs, context));
|
||||
context.globalState.update("continue.indexingFailed", false)
|
||||
});
|
||||
this.webviewProtocol.on("index/indexingProgressBarInitialized", (msg) => {
|
||||
// Triggered when progress bar is initialized. Purpose: To relay global state values to the progress bar
|
||||
|
|
@ -277,7 +276,8 @@ export class VsCodeExtension {
|
|||
|
||||
private async refreshCodebaseIndex(dirs: string[], context: vscode.ExtensionContext) {
|
||||
//reset all state variables
|
||||
this.webviewProtocol?.request("indexProgress", {progress:0, desc: "", failed:false});
|
||||
console.log("Codebase indexing starting up")
|
||||
this.webviewProtocol?.request("indexProgress", {progress: 0, desc: "", failed:false});
|
||||
context.globalState.update("continue.indexingFailed", false)
|
||||
context.globalState.update("continue.indexingProgress", 0)
|
||||
context.globalState.update("continue.indexingDesc", "")
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ const IndexingProgressBar = ({
|
|||
return (
|
||||
<div
|
||||
onClick={() => {
|
||||
if (completed < total && completed >= 0) {
|
||||
if (!indexingFailed && completed < total && completed >= 0) {
|
||||
setExpanded((prev) => !prev);
|
||||
} else {
|
||||
postToIde("index/forceReIndex", undefined);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue