diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..705fd1b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,37 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension (Copilot Bridge)", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: compile", + "env": { + "BRIDGE_VERBOSE": "1" + } + }, + { + "name": "Run Extension + Attach Debug Server", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: watch", + "env": { + "BRIDGE_VERBOSE": "1" + } + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..69fa6ac --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,21 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "compile", + "group": "build", + "problemMatcher": ["$tsc"], + "label": "npm: compile" + }, + { + "type": "npm", + "script": "watch", + "isBackground": true, + "problemMatcher": [ + "$tsc-watch" + ], + "label": "npm: watch" + } + ] +} diff --git a/package.json b/package.json index bb8bac5..7cb4887 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "name": "copilot-bridge", "displayName": "Copilot Bridge", "description": "Local OpenAI-compatible chat endpoint (inference) bridging to GitHub Copilot via the VS Code Language Model API.", - "version": "0.2.1", + "version": "0.2.2", "publisher": "thinkability", "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index cbfe1c2..a0001ce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,8 @@ "rootDir": "src", "strict": true, "sourceMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "types": ["node", "vscode"] }, "include": ["src/**/*.ts"]