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: Dart-Code/Flutter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.21.0
Choose a base ref
...
head repository: Dart-Code/Flutter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 3,367 additions and 176 deletions.
  1. +270 −0 .eslintrc.js
  2. +2 −0 .gitignore
  3. +1 −1 .vscode/settings.json
  4. +12 −4 .vscodeignore
  5. +1 −1 CHANGELOG.md
  6. +7 −8 README.md
  7. +3,052 −122 package-lock.json
  8. +19 −6 package.json
  9. +1 −1 src/commands/sdk.ts
  10. +1 −1 src/extension.ts
  11. +1 −4 tsconfig.json
  12. +0 −28 tslint.json
270 changes: 270 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
// Try to keep synced with Dart extension!
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"@typescript-eslint/tslint"
],
"rules": {
"arrow-body-style": "error",
"arrow-parens": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [
"error",
{
"allow": ["child_process"]
}
],
"comma-dangle": [
"error",
"always-multiline"
],
"complexity": "off",
"constructor-super": "error",
"curly": "off",
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": [
"error",
"always"
],
"guard-for-in": "error",
"id-blacklist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
],
"id-match": "error",
"import/order": "off",
"max-classes-per-file": "off",
"max-len": "off",
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "off",
"no-debugger": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-eval": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-shadow": [
"off",
{
"hoist": "all"
}
],
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true,
}
],
"no-unsafe-finally": "error",
// This triggers on things like "frame?.load(session, uri)"
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": [
"error",
"never"
],
"prefer-arrow-callback": [
"error"
],
"prefer-const": "error",
"quote-props": [
// TODO: Set back to error when fixed.
"off",
"consistent-as-needed"
],
"radix": "off",
"space-before-function-paren": "off",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"use-isnan": "error",
"valid-typeof": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": null,
}
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/explicit-function-return-type": "off",
// "@typescript-eslint/explicit-member-accessibility": [
// "error",
// {
// "accessibility": "explicit"
// }
// ],
// TODO: Enable this when fixed
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": [
"error",
"tab",
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"SwitchCase": 1
}
],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": [
// TODO: Set this back to "error" when fixed.
"off",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-floating-promises": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-unsafe-assignment": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-unsafe-call": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-unsafe-member-access": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-unsafe-return": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-parameter-properties": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
// TODO: Re-enable this when fixed.
"@typescript-eslint/prefer-includes": "off",
// TODO: Enable this when fixed
"@typescript-eslint/restrict-template-expressions": "off",
// TODO: Re-enable this when fixed.
"@typescript-eslint/require-await": "off",
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true,
}
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/tslint/config": [
"error",
{
"rules": {
"disallow-fspath": true,
"disallow-importing-non-shared-code": true,
"disallow-vscode": true,
"import-spacing": true,
"object-literal-sort-keys": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
},
"rulesDirectory": [
"lints/"
]
}
]
}
// TODO: no unused expression
// "max-line-length": false,
// "ordered-imports": false,
// "no-shadowed-variable": false
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.DS_Store
.dart_code_test_logs/
.dart_code_test_data_dir/
.dcud/
.dart_tool/
.flutter-plugins/
.nyc_output/
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"files.insertFinalNewline": true,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
}
16 changes: 12 additions & 4 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
.dart_code_test_data_dir/**
.dcud/**
.dart_code_test_logs/**
.eslintrc.js
.gitattributes
.github/
.gitignore
.gitmodules
.nyc_output/**
.travis.yml
.test_results/**
.vscode-test/**
.vscode/**
*.log
*.vsix
**/.git
**/.gitattributes
**/*.map
appveyor.yml
CONTRIBUTING.md
coverage/**
tool/**
lints/**
logs/**
media/screenshots/**
node_modules/**
out/test/**
out/tool/**
package-lock.json
src/**
test/**
tool/**
tsconfig.*.json
tsconfig.json
tslint.json
typings/**
webpack.config.js
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
For release notes see [dartcode.org/releases](https://dartcode.org/releases/).
For release notes see [dartcode.org/releases](https://dartcode.org/releases/latest/).
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
## Introduction

This [VS Code](https://code.visualstudio.com/) extension adds support for
effectively editing, refactoring, running, and reloading [Flutter](https://flutter.io/)
mobile apps, as well as support for the [Dart](https://www.dartlang.org/) programming
language.

![Flutter hot reload example](https://dartcode.org/images/marketplace/flutter_hot_reload.gif)
effectively editing, refactoring, running, and reloading [Flutter](https://flutter.dev/)
mobile apps. It depends on (and will automatically install) the
[Dart extension](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code)
for support for the [Dart](https://dart.dev/) programming language.

Note: Projects should be run using `F5` or the `Debug` menu for full debugging functionality. Running from the built-in terminal will not provide all features.

## Installation

[Install from the Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter) or by [searching within VS Code](https://code.visualstudio.com/docs/editor/extension-gallery#_search-for-an-extension).
[Install from the Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter) or by [searching within VS Code](https://code.visualstudio.com/docs/editor/extension-gallery#_search-for-an-extension). The Dart extension will be installed automatically, if not already installed.

## Documentation

Please see the [Flutter documentation for using VS Code](https://flutter.io/using-ide-vscode/).
Please see the [Flutter documentation for using VS Code](https://docs.flutter.dev/development/tools/vs-code).

## Reporting Issues

Issues should be reported in the [Dart-Code issue tracker](https://github.com/Dart-Code/Dart-Code/issues).
Issues for both Dart and Flutter extensions should be reported in the [Dart-Code issue tracker](https://github.com/Dart-Code/Dart-Code/issues).
Loading