Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a series of changes to enhance the functionality and user experience of the application. The most significant changes include the addition of new settings in
.vscode/settings.json
andmetadata.json
, modification of scripts inpackage.json
, the introduction of a new schema file, and several changes in TypeScript files to accommodate new features and improve code structure.Configuration Updates:
.vscode/settings.json
: Added a newfiles.exclude
setting to hide certain files and directories in the Visual Studio Code editor, such as.git
,.svn
,.hg
,CVS
,.DS_Store
,Thumbs.db
, andnode_modules
.metadata.json
: Added a newsettings-schema
field with the valueorg.gnome.shell.extensions.vscode-search-provider
.Build Process Updates:
package.json
: Modified thepack
andsetup
scripts to include a clean build process, copy schemas to thedist
directory, and compile schemas usingglib-compile-schemas
.New Schema and Settings:
schemas/org.gnome.shell.extensions.vscode-search-provider.gschema.xml
: Introduced a new schema file with asuffix
key, which is a boolean determining whether to show a suffix next to the workspace name.src/extension.ts
andsrc/prefs.ts
: ImportedGio
and created a_settings
object to get settings from the new schema. Insrc/prefs.ts
, a new preferences window is filled with a switch row bound to thesuffix
key in the settings. [1] [2]Code Structure and Functionality Enhancements:
src/provider.ts
: TheVSCodeSearchProvider
class now takes a generic parameterT
that extendsExtension
and includes_settings
. TheactivateResult
method now decodes the workspace path and checks if it starts withvscode-vfs://
in addition tovscode-remote://
. A new_customSuffix
method was added to generate a custom suffix based on the workspace path if thesuffix
setting is true. ThegetResultMetas
method now adds this custom suffix to the workspace name. [1] [2] [3] [4]