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

58 Коммитов

Автор SHA1 Сообщение Дата
Alex Ma ce974b7f6b
Added fix to path for localization (using last index replace) (#17814)
* Added fix to path for localization (using last index replace)

* remove unnecessary separator
2023-09-19 15:37:07 -07:00
Alan Ren 31a3a7d314
support linux-arm64 runtime (#17639)
* support arm64 linux

* fix display name

* new sts
2023-03-22 21:18:16 -07:00
Alan Ren b6d9dbd535
use native arm64 STS bits (#17613)
* use native arm64 STS bits

* revert package.json change

* fix error

* fix tests

* Resolve with higher version of 'lru-cache'

* Revert "Resolve with higher version of 'lru-cache'"

This reverts commit 7f98b177f6.

* vbump STS

* fix typo

* update sts

---------

Co-authored-by: Cheena Malhotra <cmalhotra@microsoft.com>
2023-03-13 11:20:39 -07:00
Charles Gagnon 76bf831b45
Remove gulp-json-editor (#17584)
* Remove gulp-json-editor

* Fix config path
2023-03-07 14:06:27 -08:00
Cheena Malhotra 945c7a5b00
Replace deprecated API: new Buffer() (#17486) 2022-11-29 11:08:16 -08:00
Lewis Sanchez e62b224a1c
Includes ts files in coverage report (#17421)
* Includes ts files in coverage report

* Revert "Includes ts files in coverage report"

This reverts commit 92a146247d.

* Adds ts files to coverage report

* Removes commented out code

* Revert "Removes commented out code"

This reverts commit ac7668f51f.

* Revert "Adds ts files to coverage report"

This reverts commit bb189a2236.

* Adds ts files to coverage report using remapIstanbul

* Revert "Adds ts files to coverage report using remapIstanbul"

This reverts commit 0e8885048d.

* coverage-final.json contains typescript files

* Revert "coverage-final.json contains typescript files"

This reverts commit bcfa07e332.

* Adds separate step to remap coverage files to ts.

* Configures remapIstanbul to generate a coverage report with HTML

* update remap-istanbul

* cleanup

* cleanup

Co-authored-by: Hai Cao <hacao@microsoft.com>
2022-08-17 14:18:06 -07:00
Aasim Khan 2d90ae08c0
Changing to new lib for xmldom (#17389) 2022-07-14 16:14:46 -07:00
Aditya Bist b51351e750
Fix tests and add to pipeline (#17312)
* fixed all tests

* test code coverage

* update process exit code to success

* change tasks

* remove extra cover

* generate report

* update comment
2022-04-27 10:58:48 -07:00
Charles Gagnon c560e96b74
Update windows RIDs (#17289)
* Update Windows RIDs

* Fix runtime comparisons

* Fix
2022-03-07 10:53:55 -08:00
Alex Ma 433c93c44c
Added correct key for nls.generation and endline (#17239) 2022-02-10 10:30:13 -08:00
Alex Ma ee6558b064
Add task to generate package.nls.json from English package xlf (#17233)
* Fix for paths of package.nls.*.json

* added function to generate package.nls.json file from localizedPackage.json.enu.xlf

* added generate-eng-package.nls

* removed console.log from task

* added message for build task needing to be run twice

* moved require package to inside gulp task

* remove duplicate message

* added suggested changes

* removed unused function

* added comment

* added detailed explanation comments and consolidation
2022-02-08 15:55:45 -08:00
Charles Gagnon 9b8f4644ad
spaces -> tabs (#17206) 2022-01-12 11:01:57 -08:00
Alex Ma 922e10f32b
Change en to enu (#17193) 2022-01-10 11:50:04 -08:00
Aditya Bist 19f9d38060
Remove dependencies and move to yarn (#1500)
* removed rxjs and ws from dependencies

* remove dependencies and mode to yarn package manager

* update node version

* remove unused images

* add build files to ignore

* lgtm fixes

* more cleanup
2019-11-20 12:15:27 -08:00
Aditya Bist 556e3a9d2b
Add more tests for new features (#1344)
* change create session test to use deferred promises

* fix test timeout

* add sqlcmd test

* add file for scripting tests

* added some node tests

* added oe utils tests

* merged master and fixed test

* fix coverage path

* test coverage

* remove out from coverage

* fix coverage site

* try new coverage path

* fix coverage report path

* add out to ignore patterns

* test new reporting style

* fix test report path

* remove html report

* try without final json

* add tests for credential store

* add tree info testing

* add more tests

* fix test

* added test for metadata

* fix tests
2019-10-16 14:48:35 -07:00
Aditya Bist cc76ea6070
Bug fixes/customer asks (WIP) (#1290)
* add command to focus on results grid

* show connection info in results view as well

* added context menu option for just copying headers

* fixed bug where moving to text editor and refreshibng would show resutls twice

* added use statement for OE query context menu actions

* show xml in results pane

* re-enable code coverage on travis CI

* run tasks only for master branch
2019-09-17 10:34:29 -07:00
Aditya Bist 356762a08d
Web View API and project restructure (#1282)
* webview apis

* got it working

* working with no compile errors

* data not coming yet

* data coming in

* fix styling

* fixed theme styling

* cleaned code

* removed unnecessary files

* fix context menu positioning

* fixed folder structure and compilation

* removed unnecessary refresh mechanism

* added content security policy tags

* added copyright headers

* fixed closing of webviews

* added fixed theming without explicit css, need refresh

* fixed tab switching

* fix bug where changing focus would re-run

* reuse query controller for queries in the panel

* fixed theming changes

* fix conext menu position using angular instead of jquery

* fixed batch linking from resultset

* access denied, need to add to local resource uri

* grid showing without results

* make into one project, needs cleaning

* remove changes for angular

* fix rxjs version

* fixed query runner tests

* fix sqloutput tests

* fixed cancel query

* added webviewpanel controller tests

* added OE to new proj

* fixed all tests

* remove borwser tests from the pipeline

* fix html order

* initial code review comments

* removed commented code

* fix packaged builds

* fix angular package version

* fix the test reports location
2019-09-13 10:53:37 -07:00
Charles Gagnon fc326ce7bb
Move rulesDirectory from JSON to tasks (#1225)
This is so TSA scans can use the same tslint JSON file (they download the rule additions to a different directory)
2019-04-23 17:43:40 -07:00
Charles Gagnon 85dcd83072
Clean up linting errors and add in SDL-required rules (#1222)
* Clean up linting errors and add in SDL-required rules.

* Remove unnecessary line

* Add linting for files under js folder - there are typescript files there that should be included.

* Add naming check rules
2019-04-22 16:29:20 -07:00
Emad Alashi a4fc5d50b2 Use correct tag for gulp package (#1154)
* Use correct tag for gulp package

For new machine setup, running
pm install errors because the tag used for the gulp package does not exist (4.0), it should be (v4.0.0).

* Don't use typings of the parent folder
2018-11-09 13:10:17 -08:00
Matt Irvine 7e187aa35e
Fall back to English for untranslated constants (#1083) 2018-04-09 14:22:47 -07:00
Leila Lali b09e8c3e36
replacing double quots with single ones when generating package.nls.json files (#1042) 2017-12-07 12:04:11 -08:00
Leila Lali 63fdf92351 Using the localized texts in UI (#979)
* Making the constants used in views and also the commands and settings localizable
2017-09-07 10:45:49 -07:00
Anthony Dresser 05ea585fa4 change slickgrid plugins to ts (#872) 2017-05-18 14:01:43 -07:00
Anthony Dresser 484fdb1a3e Revert "changes slickgrid plugins to typescript files"
This reverts commit 6ed231647b.
2017-05-11 18:58:43 -07:00
Anthony Dresser 6ed231647b changes slickgrid plugins to typescript files 2017-05-11 18:49:41 -07:00
Kevin Cunnane 1fdf1ee7fb Bump package version to prepare for GA release (#840)
* VBump for GA Release
- Fixes #828
- Fixes #829

Updated package version, added release notes and changelog data. Note: did not update SqlToolsService as we're working to get a 1.0 build with all bits uploaded to GitHub. That will be done in a separate PR.
2017-04-27 05:16:38 -07:00
Raymond Martin 447e3e2855 Fix for RESX with multiple targets and sources (#701) 2017-02-16 16:50:36 -08:00
Raymond Martin bab31c23f9 Task: localization for the extension (#675)
* i18n examples and gulp file mods

* cleaning up changes and adding localize calls

* removing unneeded files

* adding new lines to constants i18n files

* fixing failing tests

* cleaned up gulp file

* added applyLocalization property wtih false default

* setup constants folder and changed all imports

* automation scripts started

* adding xlf format and conversion to json logic

* added locale cli to send to sqltoolsservice

* adding option config

* adding newlines to xliff files

* adding more formatting related newlines

* adding full xlif enu file

* gulp script update

* uncommenting localize calls

* xlf format update

* adding tests and test constant

* spelling correction

* build automation scripts

* escaping qoute characters

* depending on fork and ignoring problem logs

* linking localized sqltoolsservice build
2017-02-09 16:52:31 -08:00
Kevin Cunnane 214a686f3b Support Copy&Paste of Messages (#656)
Fixes #385. Added keyboard shortcut Ctrl+C and context menu support for copying from the Messages section. To do this:

Messages have a context menu handler with a single option of Copy.
Added use of the Rangy library which simplifies selection and text range manipulation, including pretty print support for copying as text. We need to copy as text since the HTML includes our anchor links to the current page and in dark mode the text is copied as black text on a black background

- Copy works with validation that only messages are copied
- Using Rangy's text() function to get correctly formatted text. This ensures it is tab delimited which is copiable into Excel and text editors in the expected format
- Copy shortcut key supports copying Messages
2017-02-01 13:32:05 -08:00
Raymond Martin 4ca4a1a26a Upgrading TypeScript to 2.1.5 (#639)
* fixes for typescript 2.5.1 and gulp-typescript 3.1.4

* simplifying changes
2017-01-20 14:38:26 -08:00
Leila Lali 1f90cb0c1d Added support for Windows x86 platform (#630) 2017-01-19 13:54:35 -08:00
Anthony Dresser 104fec7c66 fixed coverage; fixed chrome not launching; fixed jenkins test task (#611)
Merging at this fixes errors during build on Jenkins
2017-01-17 13:09:11 -08:00
Anthony Dresser 5ccfccf39a SlickGrid plugin tests (#526)
* added basic selection tests

* added coverage based on config; added coverage for js plugins

* updated which coverage file was being used

* added check for config file

* fix karma errors
2017-01-03 10:16:34 -08:00
Anthony Dresser 0ceafb8bd0 Travis CI, Coveralls, AppVeyor (#463) 2016-12-05 18:13:15 -08:00
Anthony Dresser ab96184b9b Update slickgrid (#432)
* updated to work with 1.2

* updated tests to work with refactor
2016-12-01 12:23:21 -08:00
Karl Burtram 85192cc57e Publish docs during build. (#423) 2016-11-28 14:08:02 -08:00
Leila Lali 3ac8451a03 Added support for more platforms (#400)
* Added support for more platforms
2016-11-22 17:04:18 -08:00
Anthony Dresser 5660413644 Web app side tests (#369)
* adding tests

* karma setup

* got tests working

* mocking working

* set up coverage

* cleaned up commit

* moved tasks to appropriate places

* added task for jenkins

* change jenkins to cproc

* testing jenkins build

* testing builds

* combined testing

* finished build error

* fixed testing reporting

* added tests for coverage up to ~70%

* up to 85% coverage

* finished testing and clean up karma setup

* reverted unintended changes

* moved tests; added extraction function
2016-11-20 21:52:42 -08:00
Anthony Dresser 2e24ff2c17 Front end testing (#336)
* adding tests

* karma setup

* got tests working

* mocking working

* set up coverage

* cleaned up commit

* moved tasks to appropriate places

* added task for jenkins

* change jenkins to cproc

* testing jenkins build

* testing builds

* combined testing

* finished build error

* fixed testing reporting
2016-11-17 10:35:52 -08:00
Kevin Cunnane e5767fdfb9 Support Cobertura reports in coverage (#300)
- Added Cobertura reporting and moved logic to the coverconfig.json so it can easily be changed on demand
- Clean up the coverage folder on each coverage run, and no longer create a new json file for each run
2016-11-07 17:24:04 -08:00
Kevin Cunnane 152fccff2a Support code coverage for our VSCode extension. (#273)
- Included a new launch config that supports running with code coverage.
- Coverage is stored in a coverage folder as both LCOV file and HTML report (in sub folder)
- Added new scripts in our build machine to run with code coverage. Will enable a run that uses code coverage once this is merged
- To view code coverage while developing, install the LCOV VSCode extension, enable it and then hit F1 -> LCOV Menu -> Enable Decorations. This will highlight covered / missed lines in green and red.

Note: The HTMLContent codebase is not currently covered. With recent changes to minify this it breaks the remapping tool we use.

Detailed notes
- Coverage uses a config file to load settings. This is copied at the start of each task
- If tests fail, the process exit code will be 1. We should still write out code coverage in these cases as this is a useful detail even on runs with some test failures.

- On Windows, the extension is loaded (pulling in all source files via require) before the test runner is configured. Since instrumentation happens by hooking the require call, this meant that instrumentation never happened on Windows. To resolve this, we invalidate the Module cache for our source files so they are reloaded the next time anything requires them. At this point they are instrumented as expected. There is a minor risk to this if we had some global state or deeper integration test, but this doesn't impact any existing unit tests and is needed to unblock code coverage

* Skip coverage of HTMLContent due to crash
- With the latest HTMLContent changes to minify & uglify the code, the remap-istanbul component responsible for js -> ts remapping crashes trying to parse the sourceMap entries in the file. This is due to lack of whitespace between code which it expects - basically, it's not set up to run against such compact code
- Disabling coverage of this part of the code until this issue is resolved
2016-11-07 12:56:10 -08:00
Anthony Dresser 0fa65d9491 Factor out slickgrid (#252)
* added node_module

* removed slickgrid and updated dependencies

* changed dependency to microsoft

* clean up commit

* fixed npm naming
2016-11-07 10:30:21 -08:00
Anthony Dresser e636981736 added css min; minified the source code more (#233)
* added css min; minified the source code more

* added embedded svgs

* added comment comments
2016-11-01 14:35:45 -07:00
Anthony Dresser 0659bc4263 remove unnecessary logs 2016-10-28 11:48:29 -07:00
Anthony Dresser cf629fca5c fixed build on windows and linux 2016-10-28 11:46:39 -07:00
Anthony Dresser 59e4ed70c1 Feature/html bundle (#193)
* added bundling

* added minify

* removed unnecessary npm packages

* removes unecessary file
2016-10-26 15:01:40 -07:00
Anthony Dresser 04cc6a1506 added animation to executing query statement (#172) 2016-10-20 11:02:45 -07:00
Anthony Dresser 262e7d7bf4 Feature/grid nav and colors (#171)
* fixed grid nav; refactored shortcuts out; added coloring

* changed coloring

* fixed shift select after grid nav

* removed file
2016-10-20 11:01:32 -07:00
Anthony Dresser acb006d0ac added collapsable panes (#106)
* added collapsable panes

* added icons on header bar; changed collapse icon to svg

* added icons to each slickgrid

* fixed lint error

* fixed lint errors

* made look like vscode; fixed grid size issues

* fixed bugs in rendering

* fixes flex grow

* refactored html to work with flex box; added resize on message tab; fixed bug in slickgrid styles

* added color themes; fixes resize

* fixed light theme colors
2016-10-04 11:04:19 -07:00