Skip to content

Commit

Permalink
fix: adjust Quick Input title
Browse files Browse the repository at this point in the history
  • Loading branch information
z0al committed Aug 16, 2021
1 parent 90ea662 commit 6575fe5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test & Release
name: Test

on: [push, pull_request]

Expand All @@ -14,7 +14,7 @@ jobs:
- run: npm test
release:
needs: test
if: github.ref == 'refs/heads/main'
if: ${{ github.actor != 'dependabot' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
Binary file modified images/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Ours
import { isDefined } from './lib/is';
import { Settings, Window } from './api';
import { ExtensionId } from './constants';
import { getLabel } from './lib/getLabel';
import { categorize } from './lib/categorize';
import { ExtensionId, ExtensionName } from './constants';
import { Command, Configuration, QuickPickItem } from './types';

const stripDoubleQuotes = (str?: string) => {
Expand All @@ -12,7 +12,7 @@ const stripDoubleQuotes = (str?: string) => {

const buildCommand = (mode: 'global' | 'workspace') => {
const isWorkspace = mode === 'workspace';
const title = 'Toggle' + (isWorkspace ? ' (Workspace)' : '');
const title = ExtensionName + (isWorkspace ? ' (Workspace)' : '');

const createConfigurationItem = (config: Configuration) => {
const hasValue = isDefined(
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { Uri } from 'vscode';

export const ExtensionId = 'settings-toggle';
export const ExtensionName = 'Settings Toggle';

export const SettingsSchemaUri = Uri.parse(
'vscode://schemas/settings/default'
Expand Down

0 comments on commit 6575fe5

Please sign in to comment.