Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenko committed Apr 19, 2024
1 parent f2dbed8 commit c3b5910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apicurioVersionsExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ export class ApicurioVersionsExplorerProvider implements vscode.TreeDataProvider
}
}

// Mamage document
// Manage document
const wsDirPath = this.getWorkspaceDirPath();
let fileName: string = `${data.groupId}--${data.id}--${data.version}.${extention}`;
if (isString(wsDirPath)) {
fileName = `${wsDirPath}/${fileName}`;
} else {
vscode.window.showWarningMessage(`Could not determine full workspace path for file '${fileName}`);
vscode.window.showWarningMessage(`Could not determine full workspace path for file '${fileName}'.`);
}
const newUri = vscode.Uri.file(fileName).with({ scheme: 'untitled', path: fileName });
vscode.workspace.openTextDocument(newUri).then(
Expand Down Expand Up @@ -248,7 +248,7 @@ export class ApicurioVersionsExplorerProvider implements vscode.TreeDataProvider
if (workspaces.length === 1) {
return workspaces[0];
}
if (lastOpenFilePath != undefined && workspaces.length > 1) {
if (lastOpenFilePath !== undefined && workspaces.length > 1) {
return workspaces.filter((fsPath) => lastOpenFilePath.startsWith(fsPath))[0];
}
}
Expand Down

0 comments on commit c3b5910

Please sign in to comment.