openFile fix for codespaces

This commit is contained in:
Nate Sesti 2023-06-02 17:54:17 -04:00
parent 6acf607cac
commit 20a388db56
3 changed files with 6 additions and 3 deletions

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.0.13",
"version": "0.0.14",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.0.13",
"version": "0.0.14",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "Refine code 10x faster",
"version": "0.0.13",
"version": "0.0.14",
"publisher": "Continue",
"engines": {
"vscode": "^1.74.0"

View file

@ -135,6 +135,9 @@ export function openEditorAndRevealRange(
): Promise<vscode.TextEditor> {
return new Promise((resolve, _) => {
// Check if the editor is already open
if (editorFilename.startsWith("file://")) {
editorFilename = editorFilename.slice(7);
}
vscode.workspace.openTextDocument(editorFilename).then((doc) => {
vscode.window
.showTextDocument(