Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
Andrew Hall 44a659ca70
Add conditional skip for integration tests (#8811)
Add an attribute that uses an environment variable to allow the test to run, and add the environment variable to our regularly scheduled integration runs that are on a rolling cadence in the dart lab
2023-06-07 10:32:05 -07:00
Thays Grazia 27f87a4f0a Removing more code related to blazorwasmdebuggingextension 2023-02-09 23:01:07 -03:00
N. Taylor Mullen 432e93657d
Fix bootability of VSCode with Razor dev assets. (#3306)
* Fix bootability of VSCode with Razor dev assets.

- Updated launch.json and tasks.json to not be platform specific. As part of this it does add the requirement that VSCode is booted via an activated command line (this is what we require for VS anyhow).
- Moved the debugging extension from eslint -> tslint so that it's consistent with the rest of the VSCode projects. Updated the corresponding files to reflect the tslint requirements.
- Added an npmproj for the debugging extension so that it can be built transitively when trying to run VSCode

Part of dotnet/aspnetcore#30834

* Only activate on linux
2021-03-18 20:25:43 +00:00
Safia Abdalla f21b320a28
Add support for launching debugging proxy from UI extension (#3013)
* Adds BlazorWasmCompanion extension
* Updates debugging configuration to use companion extension
2021-01-31 18:20:45 -08:00
Tanay Parikh 8602978087
Razor Code Actions Prep (#2407)
* Add `Razor.sln` as default project for O#

* Guard for unknown supported kinds

* ExtendableClientCapabilities

Support for experimental capabilities

* JsonFileDeserializer Refactor

* Handle CSSVirtualDocument

* Models Refactor

* Update projection provider position
2020-08-19 10:37:32 -07:00
Ryan Brandenburg dbe92776e9
Semantic colorization (#1651)
Semantic colorization
2020-03-12 17:02:35 -07:00
Mattias Karlsson 8c2ef149b1 ms-vscode.csharp to ms-dotnettools.csharp 2020-03-10 14:02:30 -07:00
Ajay Bhargav B 0c6b611305
Run vscode functional tests on PRs (#1613)
* Run vscode functional tests on PRs
2020-02-25 13:48:09 -08:00
N. Taylor Mullen b51b3c92c1
Added ability to run single VSCode functional test. (#1562)
- In VSCode only (F5) you are now prompted with a test file filter that will be applied to the entire list of functional tests.
- This does not impact command line runs.

dotnet/aspnetcore#17045
2020-02-11 12:40:48 -08:00
Ryan Brandenburg 21f96a76a1
Find all References (#1355)
Add find all references support
2019-12-05 12:18:38 -08:00
N. Taylor Mullen 9531f19509 Add infrastructure for us test our own Razor VSCode grammar.
- In order to programatically parse anything with the Razor grammar we need to reconstruct an environment that's similar to VSCode where grammar's for C#, HTML, JavaScript and CSS exist. To do this I grabbed all of Razor's embedded language grammars to ensure we can construct a valid Razor TextMate grammar parser.
- Copied existing unit test boiler plate (jest.config.js etc.) to a new `Microsoft.AspNetCore.Razor.VSCode.Grammar.Test` project.
- Added VSCode utilities to enable running and debugging of grammar tests directly in Visual Studio code.
- Built test utilities to:
  1. Tokenize a content with Razor's grammar.
  2. Generate snapshot contents (a serialized form of tokenized content).
- Used Jest's [built-in snapshot testing](https://jestjs.io/docs/en/snapshot-testing) to build a simple testing suite that Tokenizes Razor content -> Serializes it -> Compares it to a baseline (or updates).
- Ensured that command line testing works as expected as well via `yarn jest` to run tests and `yarn jest -u` to update snapshots for tests.
- Added an escaped transitions grammar test as an example to show how all future tests will be constructed.

aspnet/AspNetCore#14287
2019-11-27 22:56:17 -08:00
N. Taylor Mullen aabba3ab28 Add infrastructure for us to ship our own Razor VSCode grammar.
- Used the suggested yml format to write our grammar given it will definitely grow in complexity. See [VSCode's guidance](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#using-yaml-to-write-a-grammar) for more info. One thing to note, the utility to go from YAML to JSON was already a dependency of our extension.
- Added a compile TextMate task to VSCode to enable easy Run Extension -> Edit grammar -> Re-compile text mate -> reload Experiemental instance dev flows.
- Replaced the existing Razor grammar (yes this means we will lack coloring for a period of time) to ensure we can catch bugs with the in-progress grammar quicker.
- Updated the VSCode's yml settings to have the proper tab size.
- Added a simple grammar to start (escaped Razor transitions).
- Eventually this grammar will need to live in its own repo but until we get it into a reasonable state we're going to group the grammar along side the extension to ease development.

aspnet/AspNetCore#14287
2019-11-27 22:56:17 -08:00
N. Taylor Mullen ec2727d7c0 Change "RunExtension" to watch Razor library.
- With this change there's no reason to repeatedly run the VSCode extension. Instead you can make changes in the library and then just ctrl + r to reload the experimental instance and see the changes.
- VSCode's tasks support is limited when it comes to background commands (npm watch) because it typically will wait for a command to exit. Due to its limitations a background task must be the top level task that is called so that it's the "last" task that's in the pipeline; this way VSCode knows when to do the final launch command. In our case this means I had to add a `WatchLibraryAndCompileExtension` that in the background watched the library and then dependently compiled the extension (can't do both).
2019-11-14 11:25:38 -08:00
Ryan Brandenburg 6ad962ea1a
Go to definition (#1313)
Go to definition
2019-11-13 15:36:20 -08:00
N. Taylor Mullen 66e4e8a169 Integrate Razor VSCode extension functional tests into src/Razor.
- Added the `.vscode-test` to `.gitignore` because that's the VSCode folder that gets created when dynamically downloading VSCode for CI purposes.
- Migrated functional tests to use the non-deprecated VSCode functional testing APIs. This involved creating a runTest file to control downloading VSCode and passing in appropriate parameters as well as creating an index that discovers tests that should be run.
- Changed functional tests to operate on the existing Razor testapps (instead of the old ones).
- Updated the "default" completion tests to be latest Razor/Blazor.
- Added VSCode launch configurations to enable easy debugging via F5.

aspnet/AspNetCore#13494
2019-09-20 11:44:08 -07:00
N. Taylor Mullen 99f004c64e Add Razor VSCode extension unit tests.
- For simplicity put the unit tests in the test folder to align with all other types of test projects.
- Converted unit tests to use `yarn` and `jest`.
- Added a `Run Unit Tests` launch configuration so we can F5 in VSCode to easily debug Razor VSCode unit tests.
- Hooked new npmproj test projects into the build.

aspnet/AspNetCore#13494
2019-09-20 11:44:08 -07:00
N. Taylor Mullen c28c3fc6f5 Integrate Razor.VSCode extension src into src/Razor.
- This changeset adds the following:
	- src/Razor/src/Microsoft.AspNetCore.Razor.VSCode - Razor VSCode extension library
	- src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.Extension - Razor VSCode extension bootstrapper
- Added a `README.md` into the `Microsoft.AspNetCore.Razor.VSCode.Extension` to describe its purpose.
- Moved old Razor VSCode project bits from `npm` to `yarn`
- Added a global .vscode folder to allow having VSCode open at AspNetCore-Tooling root yet still be able to ctrl + f5 the extension
- Expanded the bootstrapper extension project (`Microsoft.AspNetCore.Razor.VSCode.Extension`) to have new commands to make working with projects in experiemental instances easy. Prior to this we relied on a node.js script that were unsupported to magically wire things together. As part of the merging of this repo I had to find an alternate route to do that.
- Added a Razor global tslint file which each VSCode project inherits from
- Added a Razor global tsconfig file which each VSCode project inherits from
- Updated npmproj's to ensure build incrementalism works.

aspnet/AspNetCore#13494
2019-09-20 11:44:08 -07:00