-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: extension gets activated in both web worker extension host and remote extension host #183901
Comments
Potentially related: #183921 |
@connor4312 The linked issue is not related as it's reported using stable version. This regression is from the work on the remote resolvers api in this iteration #180263, so it would be good to fix it before releasing version 1.79 |
Reopening this because it is not merged into release branch yet. |
To verify, please check out the release branch and run from sources with the following patch: patchdiff --git a/src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts b/src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts
index 27f37ac508b..8ef9dcbf68e 100644
--- a/src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts
+++ b/src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts
@@ -84,7 +84,130 @@ export class BuiltinExtensionsScannerService implements IBuiltinExtensionsScanne
}
async scanBuiltinExtensions(): Promise<IExtension[]> {
- return [...await Promise.all(this.builtinExtensionsPromises)];
+ const r = [...await Promise.all(this.builtinExtensionsPromises)];
+ const manifest: any = {
+ 'name': 'git-base',
+ 'displayName': '%displayName%',
+ 'description': '%description%',
+ 'version': '1.0.0',
+ 'publisher': 'vscode',
+ 'license': 'MIT',
+ 'engines': {
+ 'vscode': '0.10.x'
+ },
+ 'categories': [
+ 'Other'
+ ],
+ 'activationEvents': [
+ '*'
+ ],
+ 'main': './out/extension.js',
+ 'browser': './dist/browser/extension.js',
+ 'icon': 'resources/icons/git.png',
+ 'scripts': {
+ 'compile': 'gulp compile-extension:git-base',
+ 'watch': 'gulp watch-extension:git-base',
+ 'update-grammar': 'node ./build/update-grammars.js'
+ },
+ 'capabilities': {
+ 'virtualWorkspaces': true,
+ 'untrustedWorkspaces': {
+ 'supported': true
+ }
+ },
+ 'contributes': {
+ 'commands': [
+ {
+ 'command': 'git-base.api.getRemoteSources',
+ 'title': '%command.api.getRemoteSources%',
+ 'category': 'Git Base API'
+ }
+ ],
+ 'menus': {
+ 'commandPalette': [
+ {
+ 'command': 'git-base.api.getRemoteSources',
+ 'when': 'false'
+ }
+ ]
+ },
+ 'languages': [
+ {
+ 'id': 'git-commit',
+ 'aliases': [
+ 'Git Commit Message',
+ 'git-commit'
+ ],
+ 'filenames': [
+ 'COMMIT_EDITMSG',
+ 'MERGE_MSG'
+ ],
+ 'configuration': './languages/git-commit.language-configuration.json'
+ },
+ {
+ 'id': 'git-rebase',
+ 'aliases': [
+ 'Git Rebase Message',
+ 'git-rebase'
+ ],
+ 'filenames': [
+ 'git-rebase-todo'
+ ],
+ 'filenamePatterns': [
+ '**/rebase-merge/done'
+ ],
+ 'configuration': './languages/git-rebase.language-configuration.json'
+ },
+ {
+ 'id': 'ignore',
+ 'aliases': [
+ 'Ignore',
+ 'ignore'
+ ],
+ 'extensions': [
+ '.gitignore_global',
+ '.gitignore'
+ ],
+ 'configuration': './languages/ignore.language-configuration.json'
+ }
+ ],
+ 'grammars': [
+ {
+ 'language': 'git-commit',
+ 'scopeName': 'text.git-commit',
+ 'path': './syntaxes/git-commit.tmLanguage.json'
+ },
+ {
+ 'language': 'git-rebase',
+ 'scopeName': 'text.git-rebase',
+ 'path': './syntaxes/git-rebase.tmLanguage.json'
+ },
+ {
+ 'language': 'ignore',
+ 'scopeName': 'source.ignore',
+ 'path': './syntaxes/ignore.tmLanguage.json'
+ }
+ ]
+ },
+ 'devDependencies': {
+ '@types/node': '16.x'
+ },
+ 'repository': {
+ 'type': 'git',
+ 'url': 'https://github.com/microsoft/vscode.git'
+ }
+ };
+ r.push({
+ type: ExtensionType.System,
+ isBuiltin: true,
+ identifier: { id: 'vscode.git-base' },
+ manifest,
+ location: URI.parse('http://localhost/oss-dev/static/extensions/git-base'),
+ targetPlatform: TargetPlatform.WEB,
+ isValid: true,
+ validations: [],
+ });
+ return r;
}
private async localizeManifest(extensionId: string, manifest: IExtensionManifest, fallbackTranslations: ITranslations): Promise<IExtensionManifest> {
@jeanp413 Could you please also give it a try? Thank you! |
This is the related bug that I think @connor4312 meant |
@alexdima yep it's fixed 馃憤 |
Steps to Reproduce:
builtinExtensionsScannerService.ts
that can run in web and remote, e.g. git-baseCode pointer
vscode/src/vs/workbench/services/extensions/browser/extensionService.ts
Lines 246 to 254 in fa8eefd
cc @alexdima
The text was updated successfully, but these errors were encountered: