This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test workspace files * tests need to be async * adding code generation action * changelog * check if the found declaration is already imported * different error message * adding test classes * test cases * changing cases * filter if a command for this class is already there * comment removal * bugfix * fix tests * prepare tests * coding action provider tests * coding fix extension tests * parse method flag if its abstract * only add abstract methods * remove only * adding nullcheck
- Loading branch information
Showing
11 changed files
with
508 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export abstract class CodeFixImplementAbstract { | ||
public pubProperty: string; | ||
|
||
public abstract abstractMethod(): void; | ||
public abstract abstractMethodWithParams(p1: string, p2): number; | ||
} | ||
|
||
export interface CodeFixImplementInterface { | ||
property: number; | ||
|
||
interfaceMethod(): string; | ||
interfaceMethodWithParams(p1: string, p2): number; | ||
} |
24 changes: 24 additions & 0 deletions
24
test/_workspace/codeFixExtension/implementInterfaceOrAbstract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { CodeFixImplementAbstract, CodeFixImplementInterface } from './exportedObjects'; | ||
|
||
|
||
class InterfaceImplement implements CodeFixImplementInterface { | ||
} | ||
|
||
class AbstractImplement extends CodeFixImplementAbstract { | ||
} | ||
|
||
abstract class InternalAbstract { | ||
public method(): void{} | ||
public abstract abstractMethod(): void; | ||
} | ||
|
||
interface InternalInterface { | ||
method(p1: string): void; | ||
methodTwo(); | ||
} | ||
|
||
class InternalInterfaceImplement implements InternalInterface { | ||
} | ||
|
||
class InternalAbstractImplement extends InternalAbstract { | ||
} |
Oops, something went wrong.