Enable extension in the web & move to @types/vscode

* adds a browser entry point
* adds the ability to test in the browser
* moves to @types/vscode
* Updates readme now that the v3 setting is removed
This commit is contained in:
Tyler James Leonhardt 2022-12-19 18:44:46 +00:00 коммит произвёл GitHub
Родитель 2bf5744499
Коммит 8292f28dbd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 2427 добавлений и 249 удалений

4
.gitignore поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
.vscode-test-web
node_modules
keybindings.md
*.vsix
*.vsix

14
.vscode/launch.json поставляемый
Просмотреть файл

@ -9,8 +9,18 @@
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"sourceMaps": true,
"stopOnEntry": false
"sourceMaps": true
},
{
"name": "Run Web Extension in VS Code",
"type": "extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"outFiles": ["${workspaceFolder}/extension.js"]
}
]
}

9
.vscodeignore Normal file
Просмотреть файл

@ -0,0 +1,9 @@
.github
.vscode
.vscode-test-web
build
node_modules
.gitignore
jsconfig.json
keybindings-markdown.js
package-lock.json

Просмотреть файл

@ -10,9 +10,6 @@ This extension ports popular Atom keyboard shortcuts to Visual Studio Code. Afte
All of these features make VS Code more "Atom like." The changes to your User Settings file are as followed.
```javascript
// Controls whether the prompt will show
"atomKeymap.promptV3Features": true,
// Changes the multi cursor mouse binding
"editor.multiCursorModifier": "ctrlCmd",
@ -20,8 +17,6 @@ All of these features make VS Code more "Atom like." The changes to your User Se
"editor.formatOnPaste": true
```
>**Tip:** If you want to see the prompt again simply change `atomKeymap.promptV3Features` to `false` and restart VS Code.
## Why don't some Atom commands work?
This is because VS Code has not implemented those features. Head on over to this [GitHub issue](https://github.com/microsoft/vscode/issues/14316) and let the VS Code team know what you'd like to see.

2633
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -2,10 +2,10 @@
"name": "atom-keybindings",
"displayName": "Atom Keymap",
"description": "Popular Atom keybindings for Visual Studio Code",
"version": "3.1.0",
"version": "3.2.0",
"publisher": "ms-vscode",
"engines": {
"vscode": "^1.22.0"
"vscode": "^1.30.0"
},
"license": "MIT",
"categories": [
@ -25,6 +25,7 @@
"workspace"
],
"main": "./extension",
"browser": "./extension",
"capabilities": {
"untrustedWorkspaces": {
"supported": true
@ -556,11 +557,11 @@
}
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install"
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. ."
},
"devDependencies": {
"vscode": "^1.1.37",
"typescript": "^3.8.3"
"@types/vscode": "^1.30.0",
"@vscode/test-web": "^0.0.33"
},
"repository": {
"type": "git",