Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coder/vscode-coder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.8
Choose a base ref
...
head repository: coder/vscode-coder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 11,049 additions and 3,976 deletions.
  1. +4 −2 .editorconfig
  2. +58 −43 .eslintrc.json
  3. +20 −0 .github/dependabot.yml
  4. +10 −6 .github/workflows/ci.yaml
  5. +4 −3 .github/workflows/release.yaml
  6. +2 −1 .gitignore
  7. +9 −0 .prettierignore
  8. +0 −16 .prettierrc
  9. +10 −10 .vscode/launch.json
  10. +2 −4 .vscode/tasks.json
  11. +311 −2 CHANGELOG.md
  12. +26 −0 CLAUDE.md
  13. +106 −14 CONTRIBUTING.md
  14. +20 −661 LICENSE
  15. +20 −4 README.md
  16. +3 −0 fixtures/bin.bash
  17. +8 −0 fixtures/bin.old.bash
  18. +19 −0 fixtures/tls/chain-intermediate.crt
  19. +28 −0 fixtures/tls/chain-intermediate.key
  20. +20 −0 fixtures/tls/chain-leaf.crt
  21. +28 −0 fixtures/tls/chain-leaf.key
  22. +18 −0 fixtures/tls/chain-root.crt
  23. +28 −0 fixtures/tls/chain-root.key
  24. +57 −0 fixtures/tls/chain.crt
  25. +28 −0 fixtures/tls/chain.key
  26. +134 −0 fixtures/tls/generate.bash
  27. +20 −0 fixtures/tls/no-signing.crt
  28. +28 −0 fixtures/tls/no-signing.key
  29. +19 −0 fixtures/tls/self-signed.crt
  30. +28 −0 fixtures/tls/self-signed.key
  31. +58 −0 flake.lock
  32. +20 −0 flake.nix
  33. +335 −140 package.json
  34. +55 −0 src/api-helper.ts
  35. +313 −0 src/api.ts
  36. +148 −0 src/cliManager.test.ts
  37. +171 −0 src/cliManager.ts
  38. +779 −210 src/commands.ts
  39. +254 −0 src/error.test.ts
  40. +178 −0 src/error.ts
  41. +396 −91 src/extension.ts
  42. +30 −0 src/featureSet.test.ts
  43. +33 −0 src/featureSet.ts
  44. +150 −0 src/headers.test.ts
  45. +114 −0 src/headers.ts
  46. +104 −0 src/inbox.ts
  47. +114 −0 src/proxy.ts
  48. +1,014 −567 src/remote.ts
  49. +654 −109 src/sshConfig.test.ts
  50. +274 −125 src/sshConfig.ts
  51. +110 −0 src/sshSupport.test.ts
  52. +107 −0 src/sshSupport.ts
  53. +617 −406 src/storage.ts
  54. +36 −15 src/typings/vscode.proposed.resolvers.d.ts
  55. +125 −0 src/util.test.ts
  56. +149 −0 src/util.ts
  57. +223 −0 src/workspaceMonitor.ts
  58. +523 −0 src/workspacesProvider.ts
  59. +12 −12 tsconfig.json
  60. +43 −41 webpack.config.js
  61. +2,842 −1,494 yarn.lock
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
root = true

[*]
indent_style = space
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
101 changes: 58 additions & 43 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,60 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:md/prettier",
"prettier"
],
"overrides": [{
"files": ["*.md"],
"parser": "markdown-eslint-parser"
}],
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"no-console": "error",
"prettier/prettier": "error",
"import/order": ["error", {
"alphabetize": {
"order": "asc"
},
"groups": [["builtin", "external", "internal"], "parent", "sibling"]
}],
"import/no-unresolved": ["error", {
"ignore": ["vscode"]
}]
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:md/prettier",
"prettier"
],
"overrides": [
{
"files": ["*.md"],
"parser": "markdown-eslint-parser"
}
],
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"no-console": "error",
"prettier/prettier": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"groups": [["builtin", "external", "internal"], "parent", "sibling"]
}
],
"import/no-unresolved": [
"error",
{
"ignore": ["vscode"]
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_"
}
],
"md/remark": [
"error",
{
"no-duplicate-headings": {
"sublings_only": true
}
}
]
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "@types/vscode"
# These versions must match the versions specified in coder/coder exactly.
- dependency-name: "@types/ua-parser-js"
- dependency-name: "ua-parser-js"
16 changes: 10 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -14,25 +14,29 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

- run: yarn prettier --check .

- run: yarn lint

- run: yarn build

test:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -14,11 +14,11 @@ jobs:
package:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

@@ -28,5 +28,6 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
*.vsix
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -4,4 +4,5 @@
/.vscode-test/
/.nyc_output/
/coverage/
*.vsix
*.vsix
yarn-error.log
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/dist/
/node_modules/
/out/
/.vscode-test/
/.nyc_output/
/coverage/
*.vsix
flake.lock
yarn-error.log
16 changes: 0 additions & 16 deletions .prettierrc

This file was deleted.

20 changes: 10 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}
6 changes: 2 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -4,11 +4,9 @@
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
],
"problemMatcher": ["$tsc"],
"group": "build",
"label": "tsc: build"
}
]
}
}
Loading