openFile fix for codespaces
This commit is contained in:
parent
6acf607cac
commit
20a388db56
3 changed files with 6 additions and 3 deletions
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue