Skip to content

Commit

Permalink
feat: remove typescript extension patch (#7)
Browse files Browse the repository at this point in the history
* feat: remove patch typescript

* fix: remove command configuration

Co-authored-by: Rahul Kadyan <hi@znck.me>
  • Loading branch information
yoyo930021 and znck committed Apr 19, 2020
1 parent 214b8fa commit 08141a5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 136 deletions.
47 changes: 41 additions & 6 deletions extensions/vue-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"main": "dist/extension.js",
"activationEvents": [
"onLanguage:vue",
"onCommand:vue.patchTypeScript",
"onCommand:vue.openVirtualFile"
],
"scripts": {
Expand All @@ -37,10 +36,6 @@
{
"command": "vue.openVirtualFile",
"title": "Vue: Show virtual file"
},
{
"command": "vue.patchTypeScript",
"title": "Vue: Patch TypeScript extension"
}
],
"menus": {
Expand Down Expand Up @@ -84,7 +79,47 @@
"vue"
]
}
]
],
"configuration": {
"title": "Vue",
"properties": {
"typescript-plugins.suggest.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled/disable autocomplete suggestions.",
"scope": "resource"
},
"typescript-plugins.format.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable default TypeScript/JavaScript formatter.",
"scope": "window"
},
"typescript-plugins.implementationsCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface.",
"scope": "window"
},
"typescript-plugins.suggest.completeJSDocs": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion to complete JSDoc comments.",
"scope": "resource"
},
"typescript-plugins.referencesCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens in TypeScript/JavaScript files.",
"scope": "window"
},
"typescript-plugins.autoClosingTags": {
"type": "boolean",
"default": true,
"description": "Enable/disable automatic closing of JSX tags. Requires using TypeScript 3.0 or newer in the workspace."
}
}
}
},
"bugs": {
"url": "https://github.com/znck/vue-developer-experience/issues"
Expand Down
128 changes: 0 additions & 128 deletions extensions/vue-language-features/src/commands/patchTypeScript.ts

This file was deleted.

2 changes: 0 additions & 2 deletions extensions/vue-language-features/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Container } from 'inversify';
import { ConfigurationService } from '@vuedx/extensions-shared/services/configuration';
import { DocumentService } from '@vuedx/extensions-shared/services/documents';
import { OpenVirtualFileCommand } from './commands/openVirtualFile';
import { PatchTypeScriptCommand } from './commands/patchTypeScript';
import { VueVirtualDocumentProvider } from './scheme/vue';

export async function activate(context: vscode.ExtensionContext) {
Expand All @@ -16,7 +15,6 @@ export async function activate(context: vscode.ExtensionContext) {
container.get(ConfigurationService).install(),
container.get(VueVirtualDocumentProvider).install(),
container.get(OpenVirtualFileCommand).install(),
container.get(PatchTypeScriptCommand).install(),
// clean container.
new vscode.Disposable(() => container.unbindAll())
);
Expand Down

0 comments on commit 08141a5

Please sign in to comment.