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

66 Коммитов

Автор SHA1 Сообщение Дата
Don Jayamanne 6f6d235641
Ignore husky from builds (#10685) 2022-07-06 04:50:16 +10:00
Daniel Rodríguez 039cf29e3d
Localize using vscode-nls (#10361)
* wip

* all the API changes in localize.ts, I believe

* some of the file changes

* wip

* reinstating the .nls.*.json files

* kernel entries and other stuff

* typos

* Notebook Renderers

* wip

* webpack fixes

* changing the signature of localize, to match how webpack will replace it

* package.nls.json

* I do not think vscode-nls-dev actually works with localize( as a string, but only with the message string. Also, vscode-nls config

* restoring jupyter.runallcells.title

* fixed mistake in CLI command

* restoring jupyter.runallcellsabove.title

* restoring jupyter.runcellandallbelow.title

* restoring jupyter.selectjupyteruri.title

* fixing mistakes made by bad automation

* more improvements

* this change was unnecessary

* [Buildable PR copy] Localize using vscode-nls (#10382)

* wip

* all the API changes in localize.ts, I believe

* some of the file changes

* wip

* reinstating the .nls.*.json files

* kernel entries and other stuff

* typos

* Notebook Renderers

* wip

* webpack fixes

* changing the signature of localize, to match how webpack will replace it

* package.nls.json

* I do not think vscode-nls-dev actually works with localize( as a string, but only with the message string. Also, vscode-nls config

* restoring jupyter.runallcells.title

* fixed mistake in CLI command

* restoring jupyter.runallcellsabove.title

* restoring jupyter.runcellandallbelow.title

* restoring jupyter.selectjupyteruri.title

* fixing mistakes made by bad automation

* more improvements

* this change was unnecessary

* using the standard localize function directly

* Using the standard localize function directly (#10383)

* using the standard localize function directly

* conditional easier to the eyes

* an idea

* an idea (#10395)

* Fixing bundle destination paths (#10403)

* fixed webpack (#10406)

* moving the webpack config around (#10407)

* restoring the webpack step to be the first, this time with __dirname (#10408)

* returning to the old base file approach, but adding an exception on the .vscodeignore (#10411)

* Also allowing nls.metadata.header.json (#10412)

* adding the whole src to see if that makes a difference (#10414)

* Exception in .vscodeignore for nls.bundle.*.json (#10415)

* test without clean (#10421)

* Localization-tolerant gulp clean (#10423)

* Localization-tolerant gulp clean

* a bit more general

* much cleaner

* Better nls.*.json regexes (#10425)

* better comment

* package.nls.json now has object values -- this fixes localization in the browser

* test fix

* small changes for consistency

* consistent quotes

* undoing some unnecessary change

* This could be the fix

* some polishes that seemed reasonable to me

Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>
2022-06-13 12:27:18 -04:00
Rich Chiodo e810082778
Preliminary web extension (with a simple command) (#9580)
* Building

* More rules and manipulating configs

* Full building without warnings web with test modules

* Everything building again without referencing process

* Get extension loading in host

* Disable all commands

* Add support for a single command

* Dont use fsPath in non node

* Fix failing unit test

* Fix unit tests

* Fix vscode.tests running

* Fix linter and removed command

* Fix smoke running from debugger

* Fix normal smoke test to run

* Fix unit tests on linux

* Create framework for web smoke test

* More for web smoke test

* Smoke test partially working

* Add new linter rule and fixup any instances

* Add web smoke test

* Fix clearing the console on building

* Fix settings to not destroy itself

* Missed change

* Some review feedback

* Get rid of 'web' OS type and create function instead
2022-04-05 15:18:48 -07:00
Rich Chiodo 1455d0b25b
Finish refactoring folder changes (#9516)
* Remove platform/datascience folder
Consolidate webview stuff into webviews folder

* Get everything compiling

* Put back unintended replace

* Fix linter

* Add news entry

* Fix missing spot for file move

* Fixup after merge

* Fix telemetry generator

* Fix build after merge
2022-03-29 09:35:34 -07:00
Rich Chiodo 46f103d0f8
Create platform directory structure (#9439)
* Rename client to platform

* Move telemetry and fix registration issues

* Move telemetry too

* Fix root dir and missing registrations

* Add news entry

* Finish updating client from paths

* Put launch.json back

* Update telemetry file

* Update linter

* Package lock needs an update?

* More linting

* More linting

* Put package-lock.json back

* More linter fixes

* Insiders? change to add extra line to document text

* Review feedback

* Fix problem with python extension upgrade. Fix pipInstaller ctor

* Fix typo
2022-03-22 15:01:30 -07:00
Don Jayamanne 26acc0bdaa
Test for Slider IPyWidget (#8611)
Part of #5250

Architecture: (borrow from how @IanMatthewHuff enabled UI tests for the other webviews all inside VS Code)

Include a new controller script (js script loaded when ipynb is opened)
When rendering a widget, we will setup hooks exposed in the above script
The tests will set comms with the renderer (via the new custom script)
After we run a cell, we use the comms to send a message to renderer and check if an HTML element has been rendered by quering the DOM
Return value is sent from renderer using the comms (Notebook Messaging API).
This is still a first attempt, not sure I'll get this working, had a few issues.
Contains just one test to first get the framework setup.

Blocked by this issue #8617
Lot of the code was added for debugging (figure out why things weren't working) then came across #8617
2022-01-18 10:13:05 -08:00
Don Jayamanne 5f8c5c05a7
Upgrade notebook trust to VS Codes workspace trust feature (#6023) 2021-06-01 15:55:39 -07:00
Don Jayamanne e4446297ed
Ignore so files from vsix (#4884) 2021-02-19 17:44:21 -08:00
Rich Chiodo 08b8a44dde
Update main after release (#4860)
* PORT Variable view icon to release branch (#4748)

* update changelog (#4752)

* Cherry pick change for icon overflow (#4753)

* Change number of icons in notebook toolbar (#4747)

* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion

* Update change log

* PORT - variable context (#4770)

* Add new editor context for just if native notebook is active (#4762)

* update news

Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>

* Port control enter fix to release (#4774)

* Fix ctrl+enter and alt+enter by removing the redundant command. (#4769)

* Fix ctrl+enter and alt+enter by removing the redundant command.

* Code review feedback

* Update changelog

* port .NET fix to release (#4776)

* Fix .NET interactive to always use native (#4772)

* Fix .NET interactive

* Fix tests and linter

* Update changelog

* Port kernel finder change to release (#4799)

* Fix duplicate kernel generation (#4790)

* Fix duplicate kernel generation

* Fix functional tests

* Update changelog

* Actually use stable

* PORT - Port document dispose fix to release. (#4798)

* Only clean up editors on close not on Panel dispose (#4787)

* update changelog

Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>

* Port surveys (#4804)

* Refactor surveys and add a new one (#4794)

* Refactor surveys and add a new one

* add news and lint

* lint

* lint

* PR comments

* update changelog

* Fix IJupyterExtensionBanner service identifier (#4825)

Co-authored-by: Joyce Er <joyceerhuiling@gmail.com>

* PORT - Fix for top level save and undo commands (#4851)

* Update cache ignore

* Actually ignore .so files

* Update release plan

* Put back package.json changes

* Delete news entries

Co-authored-by: Ian Huff <ianhu@microsoft.com>
Co-authored-by: David Kutugata <dakutuga@microsoft.com>
Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>
Co-authored-by: Joyce Er <joyceerhuiling@gmail.com>
2021-02-18 09:27:07 -08:00
Rich Chiodo d2064c6cb6
Eliminate unnecessary dupe files and map files in VSIX (#4665)
* Fix vsix being too large

* Add news entry
2021-02-05 09:04:23 -08:00
Rich Chiodo b368ea9326
Migrate to ESLint (#4397)
* Migrate to ESLint

* Update contributing

* Maybe tslint is still required

* Fix merge problem

* Fix prettier errors

* Fix tsx files

* Add promise watching

* Remove bogus code
2021-01-14 16:51:36 -08:00
Joyce Er 266538d4ca
Replace ffi-napi and ref-napi with BCryptGenRandom executable (#4000) 2020-12-07 11:07:32 -08:00
Joyce Er 7401afb076
Run smoke tests with 64-bit VSCode (#3953)
* Bump vscode-test so we can run tests with 64bit vscode

* Don't ship /docs or /images
2020-11-19 11:22:41 -08:00
Don Jayamanne 3b52e6721c
Fixes to debugging with the use of Python Extension API (#70) 2020-09-17 11:17:49 -07:00
Rich Chiodo ed3f29f261
Make it possible to use the LSP to talk to Jedi (#13855)
* Ship language server too

* Remove all jedi code and make copy of LS activation

* Compiling but not working

* Working with intellisense

* Enable the experiment in order to switch

* Fix up registration so LSP works

* Fix version reading

* Write test wrapper to try out lsp

* Let experiments be in a workspace

* Support installing jedi-language-server from custom fork

* Fix sonar problems

* More sonar fixes - dupe code

* Put back the package json changes

* Skip dupe checking for language server proxy classes
2020-09-10 17:26:42 -07:00
Brett Cannon f3151ffbb5
Add a sprint planning issues dashboard (#13028)
Courtesy of https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-github-issue-notebooks
2020-07-20 12:23:18 -07:00
Jake Bailey e42fc1e7bc
Allow LS to be bundled, versioned (#12034)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2020-06-01 13:19:53 -07:00
Brett Cannon 49e23525f9
Remove tpn (#11765)
We now use NOTICED
2020-05-12 16:36:55 -07:00
Rich Chiodo 7d0f2a1197
Add font awesome font and css to our html (#10888)
* Add font-awesome fonts to running UI

* Make font-awesome show up in actual vsix
2020-04-01 12:05:23 -07:00
Don Jayamanne 164727a4e9
Add support for ipywidgets (#10606)
* Widgets
* Fixes
* Misc
* Crap
* Include requirejs
2020-03-16 18:14:23 -07:00
Don Jayamanne d66b6da3a8
Remove ui tests (#10215)
For #10192
* Remove UI tests
* Not required
2020-02-20 08:34:20 -08:00
Don Jayamanne 6e8add6e92
Split bundles for webview using webpack (#9804)
* Split bundles for webview using webpack
* Add comments
* Build index html files
* Fixes to detection of modules used in bundles
* Ignore more files from extension
* Include some map files
* Fixes
2020-01-28 19:32:53 -08:00
Rich Chiodo e2dbe9368f
Skip having sources in our index_bundle (#9616) 2020-01-16 08:55:31 -08:00
Don Jayamanne c30eeae9b6
Smoke tests in nodejs (#7456)
* Smoke tests in nodejs

* Fixes

* oops

* Use a local repo instead of git repo

* Updated readme

* Update readme

* Linter fixes

* News entry

* Refactor

* Fixes

* Refactor

* UI tests

* CI pipeline changes

* ui tests

* No experiment and no insider build

* oops

* Rename

* Fixes

* Verbose logging

* Hack

* Verbose logging of ui tests

* Hacky test

* Disable experiments

* Oops

* Include progress message

* Capture screenshots

* Testing

* More smokes

* More screenshots

* Oops

* Use commands to max and min panels

* Fixes

* Fixes

* Fixes

* Add timeout

* More control over test environment

* Fixes to selector

* Fixes

* No need of comments

* Smoke in insider as well for testing purposes

* Fixes

* Fixes

* Comments

* Fixes
2019-09-28 01:11:44 +04:00
Don Jayamanne 91a97e1325
Exclude .env file from extension (#6872) 2019-08-06 13:13:13 -07:00
Don Jayamanne 20ef954802
UI Tests for the extension using selenium and behave (#5912) 2019-07-01 14:28:16 -07:00
Don Jayamanne 98945c7223
Exclude unnecessary files from extension (#6316) 2019-06-24 14:26:38 -07:00
Rich Chiodo 0b01e95206
Add a data grid control and the infrastructure to support it (#4847)
* Initial layout

* tabulator and react-data-grid

* Implement sorting/filtering/row rendering

* Switch to just AdazzleReactDataGrid

* Merge data explorer config into original

* Fix compilation of webview

* Data Explorer coming up

* Semi working grid

* Use bootstrap to handle correct themeing

* Fix styles and layout

* Fixup themes for hover and fix title

* Fix check datascience dependencies

* Fix webpack for packaging

* Fix hygiene

* Add news entry

* Fix webview compile error caused by hygiene changes

* Put contributing back to what it was before.

* Fix functional tests

* Fix dispose to set disposed flag.
2019-03-20 12:23:01 -07:00
Don Jayamanne 3fc7d5cfdd
Ignore files from extension (#4555)
* Exclude files from extension
* News entry
2019-02-26 18:19:15 -08:00
Don Jayamanne 422dc2d772
Add coverage for unit tests and functional tests (#3651)
* Add coverage for unit tests and functional tests
* Fix anonymous methods
* Fixed tests and linter issues
* News entries
* Remove redundant code
2018-12-12 09:29:03 -08:00
Don Jayamanne 14286f988d
Remove old code related to bundling of extension without webpack (#3619)
* Always package extension using webpack
* Restore pre-publish scripts
* Modify pre-publish script
* Remove pre-publish scripts
2018-12-10 23:06:05 -08:00
Don Jayamanne 20a7bd5ab0
Pin python packages used in extension and remove them repo (#3513)
* Move python dependencies into libs
* Delete parso, isort and jedi
* Deleted experimental folder from pythonFiles
* deleted old ptvsd folder
* rename requirements file
* Updated travis
* Install deps using gulp
* Use CI python
* Fix path to ptvsd
* install distro
* upgrade in place
2018-11-30 14:29:25 -08:00
Don Jayamanne 3d5ae38f75
Exclude files from extension (#3495) 2018-11-28 12:43:20 -08:00
Don Jayamanne 20689d53eb
Add smoke tests for webpack bundled extension (#3417)
For #3021
2018-11-21 14:04:54 -08:00
Don Jayamanne d987489c17
Initial batch of changes to enable bundling of the extension (#3384)
For #3021
* Tests will be tracked here https://github.com/Microsoft/vscode-python/issues/3383
* Will need to update package.json seprately (for CD)
2018-11-20 15:01:01 -08:00
Brett Cannon c36b51fce3
Update .vscodeignore based on 2018.10.0 2018-11-08 14:45:28 -08:00
Don Jayamanne e370a3b949
Remove pre commit hook and disabled mandating copyright headers (#3243)
For #2963
2018-11-08 08:34:53 -08:00
Don Jayamanne cae8a13854
Remove pre-commit hooks and move linters to CI (#2964)
* Linter rules
* add list of old files
* Check new files and message fixes
* Run linters on travis
* Fail travis fast
* Remove pre-commit hooks
* Remove pre-commit hooks from docs and gulp
* Log git cmd used to look for updated files in PR
* News file
2018-10-24 15:06:09 -07:00
Brett Cannon 0eba0a67e3
Ignore virtual environments 2018-10-04 11:35:40 -07:00
Don Jayamanne e77e14cca3
Out of band updates to the language server (#2615)
Fixes #2580
2018-09-19 16:24:34 -07:00
Brett Cannon 39b039bacb
Fix a typo in an ignored file directory for the .vsix 2018-09-05 12:56:04 -07:00
Brett Cannon 540dbbb7fd
Touch up .vscodeignore
Fixes #2443 and #2444
2018-08-27 16:18:39 -07:00
Don Jayamanne 9dc3209a96
Ignore languageServer files from vsix (#2152)
Fixes #2150

This pull request:
- [x] Has a title summarizes what is changing
- [x] Includes a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)
- [ ] Has unit tests & [code coverage](https://codecov.io/gh/Microsoft/vscode-python) is not adversely affected (within reason)
- [ ] Works on all [actively maintained versions of Python](https://devguide.python.org/#status-of-python-branches) (e.g. Python 2.7 & the latest Python 3 release)
- [ ] Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)
2018-07-13 13:10:52 -07:00
Mikhail Arkhipov e07c5fb71d
WIP: Rename LS to 'Microsoft Python Language Server' (#2122)
* LS symbol providers

* Different ready wait

* Progress reporting

* Options hookup

* Add diagnostic trace logging setting (hidden)

* Rename analysis engine -> language server

* Fix language server binary name

* Finish renames

* Add news

* Undo

* Baseline update

* Rename and baseline

* Fix contributions

* Baseline
2018-07-12 11:45:46 -07:00
Mikhail Arkhipov cda34d40f4
LS settings for typeshed and diagnostics (#2065)
* LS symbol providers

* Typeshed paths

* Typeshed submodule

* Add submodule

* New settings

* Add diagnostics control settings

* Add typeshed paths change check

* Exclude some typeshed files from packages
2018-06-29 09:46:30 -07:00
Don Jayamanne 89e6216ac1
Add Tests to measure activation times of extension (#1813)
* Tests to measure activation times of extension

* Code review fixes

* Run performance tests on master
2018-06-05 13:48:28 -07:00
Brett Cannon 27a9d81c57
Ignore .npmrc when building the extension 2018-05-29 11:09:57 -07:00
Don Jayamanne 7cd31031bf remove unwanted file from extension (#1344) 2018-04-09 12:07:12 -07:00
Brett Cannon 72ef2ab508
Exclude appveyor config (#1287) 2018-04-05 12:35:01 -07:00
Mikhail Arkhipov 962c850428
VS Python analysis engine integration (#1231)
* Undo changes

* Test fixes

* Increase timeout

* Remove double event listening

* Remove test

* Revert "Remove test"

This reverts commit e240c3fd117c38b9e6fdcbdd1ba2715789fefe48.

* Revert "Remove double event listening"

This reverts commit af573be27372a79d5589e2134002cc753bb54f2a.

* Undo changes

* Test fixes

* .NET Core check

* Better find dotnet

* Fix pip test

* Linting tests

* Undo accidental changes

* Add clone and build PTVS

* Appveyor PTVS build

* Fix slashes

* Enable build

* Try absolute path

* Fix xcopy switch

* Activate Analysis Engine test on Appveyor

* Temporary only run new tests

* Disable PEP hint tests

* Test fix

* Disable appveyor build and tests for PTVS for now

* Remove analysis engine test from the set

* Remove VS image for now

* Build/sign VSXI project

* Run vsce from cmd

* Rename

* Abs path vsce

* Path

* Move project

* Ignore publishing project

* Try csproj

* Add framework

* Ignore build output folder

* Package before build

* Try batch instead of PS

* Fix path quotes

* #1096 The if statement is automatically formatted incorrectly

* Merge fix

* Add more tests

* More tests

* Typo

* Test

* Also better handle multiline arguments

* Changes lost on squash

* More lost changes

* Restore Jedi/PTVS setting

* Update tests to new PTVS

* Signature tests

* Add PTVS tests task

* Analysis Engine contribution

* Add Mac/Linux info

* Disable csproj build

* Add unzip to dependencies

* Minor fixes to doc

* Change setting type to bool

* Report progress on status bar

* Simplify

* CR feedback

* Fix launching fx-independent code on Mac/Linux

* Add title
2018-03-30 13:44:07 -07:00