Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Sublime Text Keymap Extension #48384

Closed
3 tasks done
tsalinger opened this issue Apr 23, 2018 · 0 comments
Closed
3 tasks done

Test: Sublime Text Keymap Extension #48384

tsalinger opened this issue Apr 23, 2018 · 0 comments

Comments

@tsalinger
Copy link
Contributor

tsalinger commented Apr 23, 2018

Test for #45984

Complexity: 3

Authors: @tsalinger, @sandy081

Note: Please file issues in this repository: https://github.com/Microsoft/vscode-sublime-keybindings

Prerequisite

Known bugs in config API

There are currently two known bugs in the config API that affect this extension:

  1. To reproduce select editor.matchBrackets as the only setting to import.
  2. Use the Import Sublime Text Settings command again and notice that the editor.matchBrackets setting is still visible in the multi-picker

Test

  1. A prompt is shown when the user starts VS Code with the extension for the very first time. Test that the prompt is not shown in any other case.
  2. Import settings from Sublime Text using the command Import Sublime Text Settings
  3. The importer tries to find your sublime settings folder on startup
    3.1 Verify that your settings folder is correctly detected.
    The default locations are:
OS X: ~/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings
Windows: %APPDATA%\Sublime Text 3\Packages\User\Preferences.sublime-settings
Linux: ~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings

3.2 Move your sublime settings file to a different folder. You should be asked to browse to the settings file manually.
4. There exist mappings for the following Sublime Text settings. Pick some and put them into your Sublime Settings file. Verify that they are imported and mapped to valid VS Code settings.

"scroll_speed"
"hot_exit"
"open_files_in_new_window"
"close_windows_when_empty"
"show_full_path"
"preview_on_click"
"show_tab_close_buttons"
"save_on_focus_lost"
"find_selected_text"
"word_separators"
"ensure_newline_at_eof_on_save"
"auto_indent"
"tab_size"
"use_tab_stops"
"trim_automatic_white_space"
"detect_indentation"
"draw_white_space"
"trim_trailing_white_space_on_save"
"tab_completion"
"auto_complete_delay"
"auto_complete_commit_on_tab"
"copy_with_empty_selection"
"auto_find_in_selection"
"drag_text"
"default_encoding"
"font_face"
"font_size"
"line_numbers"
"fade_fold_buttons"
"scroll_past_end"
"word_wrap"
"indent_subsequent_lines"
"match_brackets"
"match_selection"
"draw_indent_guides"
"remember_full_screen"
  1. Check the handling of settings that already exist in your VS Code user settings:
    5.1 Settings which have the same value as the existing one should not show up in the quickpick
    5.2 Settings with a different value should show up in the quickpick but are not selected by default
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants