Skip to content

Commit ca45dce

Browse files
committed
Remove "Open Widget Sample" command
This is being replaced with code-lens (see Dart-Code/Dart-Code#2151).
1 parent b6e3a67 commit ca45dce

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

‎package.json‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
],
3434
"icon": "media/flutter.png",
3535
"activationEvents": [
36-
"onCommand:flutter.createSampleProject",
3736
"onUri"
3837
],
3938
"extensionDependencies": [
@@ -42,18 +41,10 @@
4241
"main": "./out/src/extension",
4342
"contributes": {
4443
"commands": [
45-
{
46-
"command": "flutter.createSampleProject",
47-
"title": "Open Widget Sample",
48-
"category": "Flutter"
49-
}
5044
]
5145
},
5246
"menus": {
5347
"commandPalette": [
54-
{
55-
"command": "flutter.createSampleProject"
56-
}
5748
]
5849
},
5950
"scripts": {

‎src/commands/sdk.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export class SdkCommands {
44
// TODO: Find an easy way to share the API signature class.
55
constructor(context: vs.ExtensionContext, private dartExtensionApi: any) {
66

7-
context.subscriptions.push(vs.commands.registerCommand("flutter.createSampleProject",
8-
(_) => this.runFunctionIfSupported(dartExtensionApi.flutterCreateSampleProject)));
7+
// context.subscriptions.push(vs.commands.registerCommand("flutter.createSampleProject",
8+
// (_) => this.runFunctionIfSupported(dartExtensionApi.flutterCreateSampleProject)));
99
}
1010

1111
private async runFunctionIfSupported<T>(f: () => Promise<T>): Promise<T> {
@@ -18,6 +18,6 @@ export class SdkCommands {
1818
}
1919

2020
private showApiMismatchError(): void {
21-
vs.window.showErrorMessage("The installed version of the Dart extension does not support this feature. Please update the Dart extension.");
21+
vs.window.showErrorMessage("The installed version of the Dart extension does not support this feature.");
2222
}
2323
}

0 commit comments

Comments
 (0)