Skip to content

Commit

Permalink
style: fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Jul 10, 2024
1 parent c3e342a commit 956863a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { registerConfig } from '~/config'
export async function activate(extCtx: vscode.ExtensionContext) {
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
// eslint-disable-next-line no-console
console.log('Congratulations, your extension "interline-translate" is now active!')

const ctx = createContext()
Expand Down
3 changes: 1 addition & 2 deletions src/model/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export async function RegisterGrammar(ctx: Context) {
if (env.remoteName)
await registerRemoteGrammar(ctx)

// eslint-disable-next-line no-console
console.log('grammarExtensions:', grammarExtensions)

grammarExtensions.forEach((grammarExtension) => {
Expand Down Expand Up @@ -104,8 +105,6 @@ export function useGrammarRegistry() {
? await arrayBufferToString(res)
: res.toString()

// console.log('grammar file:', str)

return parseRawGrammar(str, GrammarUri.fsPath)
})
},
Expand Down
3 changes: 3 additions & 0 deletions src/model/translator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ export async function translateDocument(ctx: Context, options: TranslateDocument
phrasesFromDoc.push(phrase)
}

// eslint-disable-next-line no-console
console.log('phrasesFromDoc:', phrasesFromDoc)
// eslint-disable-next-line no-console
console.log('skip comments:', commentsFromDoc)
// eslint-disable-next-line no-console
console.log('skip strings:', stringsFromDoc)

if (!phrasesFromDoc.length)
Expand Down

0 comments on commit 956863a

Please sign in to comment.