Skip to content

support extensionKind ui and workspace - #50

Merged
shardulm94 merged 1 commit into
shardulm94:masterfrom
leighmcculloch:patch-1
Jul 8, 2022
Merged

support extensionKind ui and workspace#50
shardulm94 merged 1 commit into
shardulm94:masterfrom
leighmcculloch:patch-1

Conversation

@leighmcculloch

Copy link
Copy Markdown
Contributor

What

Indicate to VSCode that the extension can run in ui mode or in workspace mode.

Why

When using VSCode with remote containers support VSCode can run extensions locally where the UI is being displayed or remotely where the files live. Many extension can run in either location, although some extension can only run on the ui side and some can only run on the workspace side.

When an extension doesn't indicate where it can be run it always runs at the workspace side.

The trailing spaces extension can run either on the UI or on the workspace and I think it should really be up to the user to choose, by default running in the ui since it works perfectly fine in the UI. The advantage of changing this and indicating it can run in both places is that when using remote dev containers the developer doesn't have to manually install the extension in the container to use it.

@leighmcculloch

Copy link
Copy Markdown
Contributor Author

👋🏻 @shardulm94

@shardulm94
shardulm94 merged commit 0c91897 into shardulm94:master Jul 8, 2022
@shardulm94

Copy link
Copy Markdown
Owner

@leighmcculloch On further testing, I realized that the "Delete Trailing Spaces - Modified Lines Only" feature, which requires access to the persisted file on disk, does not work correctly in UI mode. So I will be marking the extension as workspace only for now.

@leighmcculloch

Copy link
Copy Markdown
Contributor Author

Ahh. Got it!

shardulm94 added a commit that referenced this pull request Jun 20, 2026
Added @leighmcculloch (PR #50, extension kinds) and @dnicolson (PR #78,
isNullOrUndefined deprecation fix) to the Contributions list — the two
merged external contributions that were not yet credited. (Dependabot's
automated dependency bumps are excluded, matching the existing
human-contributor convention.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shardulm94 added a commit that referenced this pull request Jun 20, 2026
Added @leighmcculloch (PR #50, extension kinds) and @dnicolson (PR #78,
isNullOrUndefined deprecation fix) to the Contributions list — the two
merged external contributions that were not yet credited. (Dependabot's
automated dependency bumps are excluded, matching the existing
human-contributor convention.)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants